Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001248/0.001248, allocations: 123.4 kB / 17.79 MB, free: 5.227 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001377/0.001377, allocations: 208.3 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.399/1.399, allocations: 230.6 MB / 254.1 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 56.06 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09414/0.09581, allocations: 53.33 MB / 426.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003692/0.09951, allocations: 1.856 MB / 428.2 MB, free: 2.934 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002052/0.1016, allocations: 1.188 MB / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00013/0.1017, allocations: 0 / 429.4 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006213/0.1023, allocations: 175.5 kB / 429.5 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004771/0.1028, allocations: 163.3 kB / 429.7 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004255/0.1032, allocations: 139.1 kB / 429.8 MB, free: 1.273 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003357/0.1035, allocations: 223.3 kB / 430 MB, free: 1.055 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001088/0.1037, allocations: 17.56 kB / 430.1 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.1038, allocations: 87.67 kB / 430.1 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001739/0.104, allocations: 99.53 kB / 430.2 MB, free: 0.8555 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.104, allocations: 8 kB / 430.2 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001759/0.1042, allocations: 55.97 kB / 430.3 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.628e-05/0.1043, allocations: 51.77 kB / 430.4 MB, free: 0.7422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001001/0.1044, allocations: 75.53 kB / 430.4 MB, free: 0.668 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003907/0.1048, allocations: 235 kB / 430.7 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.607e-06/0.1048, allocations: 0 / 430.7 MB, free: 448 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.233e-06/0.1048, allocations: 0 / 430.7 MB, free: 448 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.542e-06/0.1048, allocations: 4 kB / 430.7 MB, free: 444 kB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.1706/0.2754, allocations: 0.5244 MB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4e-05/0.2754, allocations: 9.406 kB / 431.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.526e-05/0.2755, allocations: 37 kB / 431.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.634e-05/0.2755, allocations: 28.12 kB / 431.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002978/0.2758, allocations: 267.2 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.812e-05/0.2758, allocations: 4.5 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.932e-05/0.2759, allocations: 11.16 kB / 431.5 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000242/0.2761, allocations: 115.6 kB / 431.6 MB, free: 10.96 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.029e-05/0.2761, allocations: 5.281 kB / 431.6 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.498e-05/0.2761, allocations: 3.031 kB / 431.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.2761, allocations: 1.188 kB / 431.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001564/0.2763, allocations: 53.56 kB / 431.7 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005306/0.2768, allocations: 0.6044 MB / 432.3 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000238/0.2771, allocations: 123.5 kB / 432.4 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.511e-05/0.2772, allocations: 45.91 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.87e-05/0.2772, allocations: 3.359 kB / 432.5 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000208/0.2774, allocations: 123.5 kB / 432.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.363e-06/0.2774, allocations: 1.125 kB / 432.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004449/0.2778, allocations: 175.1 kB / 432.8 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.378e-05/0.2779, allocations: 139.2 kB / 432.9 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002798/0.2782, allocations: 294.9 kB / 433.2 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.2782, allocations: 27.17 kB / 433.2 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.254e-05/0.2783, allocations: 130 kB / 433.3 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.818e-05/0.2783, allocations: 33.34 kB / 433.4 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.923e-05/0.2783, allocations: 27.56 kB / 433.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 5.406e-05/0.2784, allocations: 338.6 kB / 433.7 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.926e-05/0.2785, allocations: 36.3 kB / 433.8 MB, free: 9.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001012/0.2786, allocations: 84.11 kB / 433.9 MB, free: 9.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000156/0.2787, allocations: 104.9 kB / 434 MB, free: 9.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.2787, allocations: 3.812 kB / 434 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002391/0.279, allocations: 145.4 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.266e-05/0.279, allocations: 5.734 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.279, allocations: 3.25 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.279, allocations: 3.375 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.033e-05/0.2791, allocations: 16.52 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.142e-06/0.2791, allocations: 3.469 kB / 434.1 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.2792, allocations: 15.89 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.849e-06/0.2792, allocations: 4.375 kB / 434.2 MB, free: 9.367 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.095e-05/0.2793, allocations: 151.4 kB / 434.3 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.289e-05/0.2793, allocations: 23.64 kB / 434.3 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.085e-05/0.2794, allocations: 21.52 kB / 434.3 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.294e-06/0.2794, allocations: 2.938 kB / 434.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.2794, allocations: 3.562 kB / 434.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.55e-06/0.2794, allocations: 8.719 kB / 434.4 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001639/0.2796, allocations: 248 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.593e-06/0.2796, allocations: 1.031 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.801e-05/0.2796, allocations: 11.67 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.2796, allocations: 1.094 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.173e-05/0.2796, allocations: 5.375 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2796, allocations: 1.094 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2796, allocations: 1.188 kB / 434.6 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000276/0.2799, allocations: 188.9 kB / 434.8 MB, free: 8.93 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.2799, allocations: 99.11 kB / 434.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.289e-05/0.28, allocations: 5.875 kB / 434.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.2801, allocations: 12.25 kB / 434.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.2801, allocations: 14.23 kB / 434.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.2801, allocations: 4.562 kB / 434.9 MB, free: 8.824 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001699/0.2803, allocations: 218.5 kB / 435.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2803, allocations: 0 / 435.2 MB, free: 8.746 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002739/0.2806, allocations: 42.47 kB / 435.2 MB, free: 8.738 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001784/0.2823, allocations: 1.025 MB / 436.2 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.2826, allocations: 90.09 kB / 436.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2826, allocations: 0 / 436.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.2827, allocations: 53.84 kB / 436.4 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000337/0.2831, allocations: 49.41 kB / 436.4 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002041/0.2851, allocations: 2.186 MB / 438.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001305/0.2852, allocations: 0.7353 MB / 439.3 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 7.777e-05/0.2853, allocations: 35.38 kB / 439.4 MB, free: 5.855 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.253e-05/0.2854, allocations: 57.42 kB / 439.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2854, allocations: 1.094 kB / 439.4 MB, free: 5.816 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02879/0.3142, allocations: 5.225 MB / 444.6 MB, free: 4.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.979/8.293, allocations: 26.41 kB / 444.7 MB, free: 4.941 MB / 350.1 MB " [Timeout remaining time 652] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 10.636400019051507]