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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001225/0.001225, allocations: 181.7 kB / 16.39 MB, free: 5.762 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.369/1.369, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008215/0.0008211, allocations: 89.98 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002757/0.0002757, allocations: 8 kB / 351.1 MB, free: 15.13 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.258, allocations: 50.42 MB / 401.5 MB, free: 32.57 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09738/0.3555, allocations: 80.61 MB / 482.1 MB, free: 15.86 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002091/0.3557, allocations: 67.97 kB / 482.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01676/0.3725, allocations: 5.872 MB / 488 MB, free: 9.926 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.442e-06/0.3726, allocations: 0 / 488 MB, free: 9.926 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.193e-05/0.3726, allocations: 4.125 kB / 488 MB, free: 9.922 MB / 362.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.0008507/0.3734, allocations: 0.5235 MB / 488.6 MB, free: 9.344 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.168e-05/0.3735, allocations: 8.031 kB / 488.6 MB, free: 9.336 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.698e-05/0.3736, allocations: 27.67 kB / 488.6 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004725/0.3741, allocations: 257.8 kB / 488.8 MB, free: 9.016 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.247e-05/0.3741, allocations: 4 kB / 488.9 MB, free: 9.012 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.425e-05/0.3742, allocations: 8 kB / 488.9 MB, free: 9.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002477/0.3744, allocations: 125.8 kB / 489 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.344e-06/0.3744, allocations: 0 / 489 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.3745, allocations: 0 / 489 MB, free: 8.859 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.154e-06/0.3745, allocations: 4 kB / 489 MB, free: 8.855 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001507/0.3746, allocations: 59.86 kB / 489 MB, free: 8.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006692/0.3753, allocations: 0.6155 MB / 489.7 MB, free: 8.121 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002483/0.3756, allocations: 131.9 kB / 489.8 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.074e-05/0.3756, allocations: 0 / 489.8 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002193/0.3758, allocations: 126 kB / 489.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of pre-optimization done (n=12): time 1.302e-06/0.3758, allocations: 0 / 489.9 MB, free: 7.82 MB / 362.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004305/0.3763, allocations: 177.8 kB / 490.1 MB, free: 7.641 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.198e-05/0.3764, allocations: 132.5 kB / 490.2 MB, free: 7.48 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.3767, allocations: 264.1 kB / 490.5 MB, free: 7.215 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.074e-05/0.3767, allocations: 29.69 kB / 490.5 MB, free: 7.18 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.437e-05/0.3768, allocations: 124.5 kB / 490.6 MB, free: 7.051 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.144e-05/0.3768, allocations: 31.72 kB / 490.7 MB, free: 7.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.173e-06/0.3768, allocations: 4 kB / 490.7 MB, free: 7.016 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001248/0.377, allocations: 330.8 kB / 491 MB, free: 6.684 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.107e-05/0.3771, allocations: 35.98 kB / 491 MB, free: 6.648 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001151/0.3772, allocations: 89.86 kB / 491.1 MB, free: 6.539 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.009e-05/0.3773, allocations: 40.05 kB / 491.1 MB, free: 6.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.3773, allocations: 0 / 491.1 MB, free: 6.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002888/0.3776, allocations: 149.2 kB / 491.3 MB, free: 6.348 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.419e-05/0.3776, allocations: 4.125 kB / 491.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.77e-06/0.3776, allocations: 8 kB / 491.3 MB, free: 6.336 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.3776, allocations: 3.953 kB / 491.3 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.271e-05/0.3777, allocations: 16 kB / 491.3 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.3777, allocations: 0 / 491.3 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001143/0.3779, allocations: 19.92 kB / 491.3 MB, free: 6.297 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.124e-05/0.3779, allocations: 7.938 kB / 491.3 MB, free: 6.289 MB / 362.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 ($whenCondition2,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,$PRE.pulse.pulseStart,pulse.pulseStart,booleanExpression.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000142/0.378, allocations: 149.8 kB / 491.5 MB, free: 6.133 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.637e-05/0.3781, allocations: 19.72 kB / 491.5 MB, free: 6.113 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002464/0.3783, allocations: 123.2 kB / 491.6 MB, free: 5.988 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.3783, allocations: 3.953 kB / 491.6 MB, free: 5.984 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.324e-06/0.3784, allocations: 4 kB / 491.6 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.3784, allocations: 0 / 491.6 MB, free: 5.98 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002635/0.3786, allocations: 249.5 kB / 491.9 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3786, allocations: 0 / 491.9 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.561e-05/0.3787, allocations: 8 kB / 491.9 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.3787, allocations: 0 / 491.9 MB, free: 5.68 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.3787, allocations: 15.98 kB / 491.9 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.903e-06/0.3787, allocations: 0 / 491.9 MB, free: 5.664 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.447e-06/0.3787, allocations: 3.953 kB / 491.9 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003237/0.3791, allocations: 218 kB / 492.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.733e-05/0.3792, allocations: 104.9 kB / 492.2 MB, free: 5.289 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.772e-05/0.3792, allocations: 7.953 kB / 492.2 MB, free: 5.281 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001079/0.3793, allocations: 15.98 kB / 492.3 MB, free: 5.266 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.971e-05/0.3794, allocations: 11.98 kB / 492.3 MB, free: 5.254 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.153e-05/0.3794, allocations: 4 kB / 492.3 MB, free: 5.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002233/0.3796, allocations: 216.4 kB / 492.5 MB, free: 5.039 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3797, allocations: 4 kB / 492.5 MB, free: 5.035 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000278/0.3799, allocations: 40 kB / 492.5 MB, free: 4.996 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008794/0.3808, allocations: 436 kB / 492.9 MB, free: 4.723 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002776/0.3811, allocations: 103.9 kB / 493.1 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3811, allocations: 0 / 493.1 MB, free: 4.621 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000132/0.3813, allocations: 56.11 kB / 493.1 MB, free: 4.566 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003041/0.3816, allocations: 40.39 kB / 493.1 MB, free: 4.523 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005939/0.3822, allocations: 379.9 kB / 493.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002675/0.3825, allocations: 0.7361 MB / 494.3 MB, free: 3.355 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.054e-05/0.3826, allocations: 33.67 kB / 494.3 MB, free: 3.324 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.535e-05/0.3826, allocations: 19.44 kB / 494.3 MB, free: 3.309 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.3826, allocations: 0 / 494.3 MB, free: 3.309 MB / 362.7 MB Notification: Performance of Templates: time 0.005413/0.388, allocations: 2.621 MB / 496.9 MB, free: 0.7188 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) 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","../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches