Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.001294/0.001294, allocations: 84.39 kB / 22.21 MB, free: 2.289 MB / 18.57 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.001745/0.001745, allocations: 165.8 kB / 25.6 MB, free: 8.422 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.098/1.098, allocations: 158.6 MB / 187.5 MB, free: 2.816 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.976e-06/2.976e-06, allocations: 0 / 251.4 MB, free: 7.273 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.93e-05/3.227e-05, allocations: 2.312 kB / 251.4 MB, free: 7.27 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003117/0.003149, allocations: 1.853 MB / 253.3 MB, free: 5.398 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001678/0.004827, allocations: 0.9204 MB / 254.2 MB, free: 4.465 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001346/0.004962, allocations: 7.938 kB / 254.2 MB, free: 4.457 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0007121/0.005674, allocations: 183.3 kB / 254.4 MB, free: 4.277 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003493/0.006023, allocations: 131.4 kB / 254.5 MB, free: 4.148 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004627/0.006486, allocations: 151.6 kB / 254.7 MB, free: 4 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.006785, allocations: 211.2 kB / 254.9 MB, free: 3.793 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001211/0.006906, allocations: 17.8 kB / 254.9 MB, free: 3.777 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001768/0.007083, allocations: 111.7 kB / 255 MB, free: 3.668 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001278/0.007211, allocations: 75.84 kB / 255.1 MB, free: 3.594 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 2.376e-05/0.007235, allocations: 11.94 kB / 255.1 MB, free: 3.582 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001474/0.007382, allocations: 63.88 kB / 255.2 MB, free: 3.52 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.157e-05/0.007454, allocations: 47.84 kB / 255.2 MB, free: 3.473 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.592e-05/0.00751, allocations: 43.84 kB / 255.3 MB, free: 3.43 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002841/0.007794, allocations: 171.3 kB / 255.4 MB, free: 3.262 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.089e-06/0.007799, allocations: 4 kB / 255.4 MB, free: 3.258 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.883e-06/0.007801, allocations: 0 / 255.4 MB, free: 3.258 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.825e-06/0.007809, allocations: 0 / 255.4 MB, free: 3.258 MB / 234.7 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.0006804/0.008489, allocations: 0.5477 MB / 256 MB, free: 2.668 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.722e-05/0.008536, allocations: 11.98 kB / 256 MB, free: 2.656 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.204e-05/0.008598, allocations: 32.78 kB / 256 MB, free: 2.625 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002515/0.00885, allocations: 204.4 kB / 256.2 MB, free: 2.395 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.458e-05/0.008874, allocations: 8.375 kB / 256.2 MB, free: 2.387 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.249e-05/0.008887, allocations: 4.375 kB / 256.2 MB, free: 2.383 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001815/0.009068, allocations: 105 kB / 256.3 MB, free: 2.258 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.009079, allocations: 7.938 kB / 256.3 MB, free: 2.25 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.926e-06/0.009088, allocations: 0 / 256.3 MB, free: 2.25 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.009095, allocations: 0 / 256.3 MB, free: 2.25 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.962e-05/0.009144, allocations: 27.91 kB / 256.4 MB, free: 2.223 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005768/0.009721, allocations: 0.6845 MB / 257.1 MB, free: 1.496 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001612/0.009882, allocations: 113.4 kB / 257.2 MB, free: 1.348 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.098e-05/0.009923, allocations: 47 kB / 257.2 MB, free: 1.289 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.009951, allocations: 7.984 kB / 257.2 MB, free: 1.281 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001547/0.01011, allocations: 116 kB / 257.3 MB, free: 1.141 MB / 234.7 MB Notification: Performance of pre-optimization done (n=12): time 9.41e-07/0.01011, allocations: 0 / 257.3 MB, free: 1.141 MB / 234.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002395/0.01035, allocations: 133.4 kB / 257.5 MB, free: 1.004 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.738e-05/0.0104, allocations: 114.7 kB / 257.6 MB, free: 0.8672 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001857/0.01059, allocations: 280.2 kB / 257.8 MB, free: 0.5781 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.012e-05/0.01061, allocations: 29.7 kB / 257.9 MB, free: 0.543 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.823e-05/0.0107, allocations: 178.8 kB / 258.1 MB, free: 372 kB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.206e-05/0.01073, allocations: 31.95 kB / 258.1 MB, free: 340 kB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.204e-05/0.01078, allocations: 43.28 kB / 258.1 MB, free: 288 kB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000156/0.01094, allocations: 0.5001 MB / 258.6 MB, free: 15.77 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.422e-05/0.01097, allocations: 15.98 kB / 258.6 MB, free: 15.75 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.732e-05/0.01104, allocations: 91.8 kB / 258.7 MB, free: 15.63 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.967e-05/0.01112, allocations: 86.84 kB / 258.8 MB, free: 15.53 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.01112, allocations: 0 / 258.8 MB, free: 15.53 MB / 250.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001401/0.01126, allocations: 121.4 kB / 258.9 MB, free: 15.4 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.663e-05/0.01128, allocations: 8 kB / 258.9 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.034e-06/0.01129, allocations: 0 / 258.9 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.0113, allocations: 4 kB / 258.9 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.308e-05/0.01137, allocations: 19.94 kB / 259 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.06e-06/0.01138, allocations: 3.984 kB / 259 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.63e-05/0.01144, allocations: 11.95 kB / 259 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.015e-06/0.01144, allocations: 4 kB / 259 MB, free: 15.35 MB / 250.7 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 0.0001032/0.01155, allocations: 168.7 kB / 259.1 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.907e-05/0.01158, allocations: 35.78 kB / 259.2 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001529/0.01173, allocations: 83.45 kB / 259.3 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.895e-06/0.01173, allocations: 0 / 259.3 MB, free: 15.05 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.01174, allocations: 4 kB / 259.3 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.631e-06/0.01174, allocations: 3.984 kB / 259.3 MB, free: 15.04 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000158/0.0119, allocations: 153.1 kB / 259.4 MB, free: 14.86 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.745e-06/0.0119, allocations: 4 kB / 259.4 MB, free: 14.86 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.374e-05/0.01193, allocations: 7.984 kB / 259.4 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.112e-06/0.01193, allocations: 3.938 kB / 259.4 MB, free: 14.85 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.01194, allocations: 4 kB / 259.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.816e-06/0.01195, allocations: 8.062 kB / 259.4 MB, free: 14.84 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.847e-06/0.01195, allocations: 8 kB / 259.5 MB, free: 14.83 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001603/0.01211, allocations: 167.7 kB / 259.6 MB, free: 14.63 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.201e-05/0.01213, allocations: 15.86 kB / 259.6 MB, free: 14.62 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.111e-05/0.01215, allocations: 15.88 kB / 259.7 MB, free: 14.6 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.587e-05/0.0122, allocations: 7.984 kB / 259.7 MB, free: 14.59 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.762e-05/0.01225, allocations: 15.98 kB / 259.7 MB, free: 14.58 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.53e-05/0.01226, allocations: 7.984 kB / 259.7 MB, free: 14.57 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.000101/0.01236, allocations: 197.1 kB / 259.9 MB, free: 14.38 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01236, allocations: 0 / 259.9 MB, free: 14.38 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001996/0.01256, allocations: 43.88 kB / 259.9 MB, free: 14.34 MB / 250.7 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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 10 * 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.0008929/0.01346, allocations: 391.6 kB / 260.3 MB, free: 14 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001597/0.01362, allocations: 71.58 kB / 260.4 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.01362, allocations: 0 / 260.4 MB, free: 13.93 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 5.698e-05/0.01368, allocations: 39.59 kB / 260.4 MB, free: 13.89 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002556/0.01393, allocations: 56.55 kB / 260.5 MB, free: 13.83 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000465/0.0144, allocations: 317 kB / 260.8 MB, free: 13.48 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.131e-05/0.01445, allocations: 84.22 kB / 260.9 MB, free: 13.38 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.51e-05/0.0145, allocations: 21.48 kB / 260.9 MB, free: 13.36 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.951e-05/0.0146, allocations: 106.2 kB / 261 MB, free: 13.26 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.0146, allocations: 0 / 261 MB, free: 13.26 MB / 250.7 MB Notification: Performance of Templates: time 0.005589/0.02019, allocations: 3.137 MB / 264.1 MB, free: 10.12 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.091004170011729]