Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.00115, allocations: 76.08 kB / 21.18 MB, free: 3.383 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001071/0.001071, allocations: 145.1 kB / 24.54 MB, free: 32 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9593/0.9593, allocations: 173.3 MB / 201.1 MB, free: 9.305 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5018,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.523e-06/1.523e-06, allocations: 0 / 268 MB, free: 6.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.362e-05/2.514e-05, allocations: 2.312 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.002429/0.002454, allocations: 1.868 MB / 269.8 MB, free: 4.547 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001289/0.003743, allocations: 1.013 MB / 270.8 MB, free: 3.531 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.003855, allocations: 7.938 kB / 270.9 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0006492/0.004504, allocations: 167.4 kB / 271 MB, free: 3.359 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002763/0.00478, allocations: 131.4 kB / 271.1 MB, free: 3.23 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003889/0.005169, allocations: 179.4 kB / 271.3 MB, free: 3.055 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002433/0.005413, allocations: 211.3 kB / 271.5 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.521e-05/0.005508, allocations: 13.8 kB / 271.5 MB, free: 2.832 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.005636, allocations: 107.7 kB / 271.6 MB, free: 2.727 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.005747, allocations: 79.78 kB / 271.7 MB, free: 2.648 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.389e-05/0.005771, allocations: 12 kB / 271.7 MB, free: 2.637 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001258/0.005897, allocations: 63.88 kB / 271.8 MB, free: 2.574 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.507e-05/0.005962, allocations: 55.77 kB / 271.9 MB, free: 2.52 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.661e-05/0.006019, allocations: 43.86 kB / 271.9 MB, free: 2.477 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002687/0.006287, allocations: 167.3 kB / 272.1 MB, free: 2.312 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.006292, allocations: 4 kB / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.021e-06/0.006293, allocations: 0 / 272.1 MB, free: 2.309 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.078e-06/0.006297, allocations: 0 / 272.1 MB, free: 2.309 MB / 250.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.0006322/0.006929, allocations: 0.5555 MB / 272.6 MB, free: 1.711 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.703e-05/0.006966, allocations: 8.922 kB / 272.6 MB, free: 1.703 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.132e-05/0.007028, allocations: 24.84 kB / 272.7 MB, free: 1.68 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002227/0.00725, allocations: 204.4 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.007267, allocations: 8.375 kB / 272.9 MB, free: 1.441 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.617e-05/0.007284, allocations: 15.92 kB / 272.9 MB, free: 1.426 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001592/0.007443, allocations: 107.5 kB / 273 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.422e-06/0.007449, allocations: 0 / 273 MB, free: 1.301 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.172e-05/0.007461, allocations: 8 kB / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.007468, allocations: 0 / 273 MB, free: 1.293 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.799e-05/0.007526, allocations: 27.91 kB / 273 MB, free: 1.266 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004927/0.008019, allocations: 0.719 MB / 273.7 MB, free: 0.4961 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001609/0.00818, allocations: 121.4 kB / 273.9 MB, free: 348 kB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.483e-05/0.008225, allocations: 43.05 kB / 273.9 MB, free: 292 kB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.008243, allocations: 4 kB / 273.9 MB, free: 288 kB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001313/0.008374, allocations: 124 kB / 274 MB, free: 136 kB / 250.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.008376, allocations: 0 / 274 MB, free: 136 kB / 250.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002553/0.008631, allocations: 138 kB / 274.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.008677, allocations: 110.8 kB / 274.3 MB, free: 15.86 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001814/0.008858, allocations: 292.3 kB / 274.5 MB, free: 15.55 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.561e-05/0.008874, allocations: 33.83 kB / 274.6 MB, free: 15.51 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.275e-05/0.008947, allocations: 170.9 kB / 274.7 MB, free: 15.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.141e-05/0.008978, allocations: 35.75 kB / 274.8 MB, free: 15.3 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.203e-05/0.00902, allocations: 35.38 kB / 274.8 MB, free: 15.26 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001261/0.009146, allocations: 0.5117 MB / 275.3 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.403e-05/0.00918, allocations: 11.98 kB / 275.3 MB, free: 14.73 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.541e-05/0.009246, allocations: 107.8 kB / 275.4 MB, free: 14.59 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.99e-05/0.009325, allocations: 82.36 kB / 275.5 MB, free: 14.49 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.009328, allocations: 4.031 kB / 275.5 MB, free: 14.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0001349/0.009463, allocations: 113.5 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.46e-05/0.009477, allocations: 8 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.919e-06/0.009482, allocations: 0 / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.301e-05/0.009495, allocations: 3.984 kB / 275.7 MB, free: 14.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.993e-05/0.009565, allocations: 16 kB / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.009571, allocations: 0 / 275.7 MB, free: 14.34 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.454e-05/0.009625, allocations: 23.88 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.116e-05/0.009636, allocations: 7.938 kB / 275.7 MB, free: 14.31 MB / 266.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 8.597e-05/0.009722, allocations: 172.7 kB / 275.9 MB, free: 14.13 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.479e-05/0.009747, allocations: 27.86 kB / 275.9 MB, free: 14.1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001444/0.009891, allocations: 99.42 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.009896, allocations: 8 kB / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.0099, allocations: 0 / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.038e-06/0.009904, allocations: 0 / 276 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00015/0.01005, allocations: 192.4 kB / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.01006, allocations: 0 / 276.2 MB, free: 13.77 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.323e-05/0.01008, allocations: 11.98 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.01008, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.798e-06/0.01009, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.103e-06/0.01009, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.01009, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001705/0.01027, allocations: 187.5 kB / 276.4 MB, free: 13.53 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.171e-05/0.01029, allocations: 19.86 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.206e-05/0.01031, allocations: 4 kB / 276.4 MB, free: 13.51 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.476e-05/0.01035, allocations: 11.98 kB / 276.4 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.089e-05/0.0104, allocations: 11.98 kB / 276.4 MB, free: 13.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.598e-05/0.01042, allocations: 11.98 kB / 276.5 MB, free: 13.47 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001103/0.01053, allocations: 209.1 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01053, allocations: 3.938 kB / 276.7 MB, free: 13.27 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.01072, allocations: 39.88 kB / 276.7 MB, free: 13.23 MB / 266.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.0009293/0.01165, allocations: 391.9 kB / 277.1 MB, free: 12.98 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001679/0.01182, allocations: 79.5 kB / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.332e-06/0.01182, allocations: 0 / 277.2 MB, free: 12.9 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.859e-05/0.01188, allocations: 43.61 kB / 277.2 MB, free: 12.86 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002511/0.01213, allocations: 55.78 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004499/0.01258, allocations: 330.2 kB / 277.6 MB, free: 12.45 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.533e-05/0.01262, allocations: 79.98 kB / 277.7 MB, free: 12.35 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.27e-05/0.01268, allocations: 17.48 kB / 277.7 MB, free: 12.33 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.38e-05/0.01272, allocations: 24.48 kB / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of SimCode: time 9.52e-07/0.01272, allocations: 0 / 277.7 MB, free: 12.31 MB / 266.7 MB Notification: Performance of Templates: time 0.005515/0.01824, allocations: 3.082 MB / 280.8 MB, free: 9.262 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/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: 2.8497850340791047]