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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") translateModel(Modelica.Blocks.Examples.ShowLogicalSources,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|table.y",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001017/0.001017, allocations: 181.2 kB / 17.01 MB, free: 5.125 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.672/1.672, allocations: 205.4 MB / 223.1 MB, free: 9.125 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009299/0.0009299, allocations: 96.83 kB / 271.5 MB, free: 8.375 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003772/0.0003772, allocations: 4 kB / 328.2 MB, free: 15.55 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.338/0.3384, allocations: 47.57 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.115/0.4535, allocations: 79.37 MB / 455.2 MB, free: 1.305 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.00026/0.4538, allocations: 75.91 kB / 455.2 MB, free: 1.23 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01643/0.4702, allocations: 5.71 MB / 461 MB, free: 11.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4703, allocations: 0 / 461 MB, free: 11.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.766e-05/0.4703, allocations: 0 / 461 MB, free: 11.52 MB / 346.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.0008636/0.4712, allocations: 0.5197 MB / 461.5 MB, free: 10.95 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.38e-05/0.4713, allocations: 15.95 kB / 461.5 MB, free: 10.93 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.725e-05/0.4713, allocations: 15.81 kB / 461.5 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004358/0.4718, allocations: 257.7 kB / 461.8 MB, free: 10.62 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.633e-05/0.4718, allocations: 8 kB / 461.8 MB, free: 10.61 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.058e-05/0.4718, allocations: 8 kB / 461.8 MB, free: 10.6 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002647/0.4721, allocations: 129.8 kB / 461.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.4721, allocations: 4 kB / 461.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.4722, allocations: 0 / 461.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4722, allocations: 0 / 461.9 MB, free: 10.45 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001575/0.4723, allocations: 51.91 kB / 462 MB, free: 10.4 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000875/0.4732, allocations: 0.6222 MB / 462.6 MB, free: 9.715 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002657/0.4735, allocations: 131.8 kB / 462.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.418e-05/0.4735, allocations: 4.062 kB / 462.7 MB, free: 9.555 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.4738, allocations: 125.9 kB / 462.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of pre-optimization done (n=12): time 1.533e-06/0.4738, allocations: 0 / 462.8 MB, free: 9.41 MB / 346.7 MB Notification: Performance of matching and sorting (n=12): time 0.0004641/0.4743, allocations: 181.3 kB / 463 MB, free: 9.227 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.017e-05/0.4743, allocations: 128.5 kB / 463.1 MB, free: 9.07 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003236/0.4747, allocations: 268 kB / 463.4 MB, free: 8.801 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.33e-05/0.4747, allocations: 29.7 kB / 463.4 MB, free: 8.766 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.301e-05/0.4748, allocations: 124.5 kB / 463.5 MB, free: 8.637 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.568e-05/0.4749, allocations: 27.72 kB / 463.6 MB, free: 8.609 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.838e-06/0.4749, allocations: 8 kB / 463.6 MB, free: 8.602 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001547/0.475, allocations: 330.8 kB / 463.9 MB, free: 8.27 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.698e-05/0.4751, allocations: 27.98 kB / 463.9 MB, free: 8.242 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001539/0.4753, allocations: 97.3 kB / 464 MB, free: 8.129 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001025/0.4754, allocations: 35.98 kB / 464.1 MB, free: 8.094 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.34e-06/0.4754, allocations: 3.953 kB / 464.1 MB, free: 8.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002658/0.4757, allocations: 145.2 kB / 464.2 MB, free: 7.941 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.929e-05/0.4757, allocations: 12.12 kB / 464.2 MB, free: 7.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.517e-06/0.4757, allocations: 4.609 kB / 464.2 MB, free: 7.926 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.206e-05/0.4758, allocations: 4 kB / 464.2 MB, free: 7.922 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.994e-05/0.4759, allocations: 15.98 kB / 464.2 MB, free: 7.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.067e-06/0.4759, allocations: 3.984 kB / 464.2 MB, free: 7.902 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001095/0.476, allocations: 16 kB / 464.3 MB, free: 7.887 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.383e-05/0.476, allocations: 8 kB / 464.3 MB, free: 7.879 MB / 346.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.0001569/0.4762, allocations: 149.6 kB / 464.4 MB, free: 7.723 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.536e-05/0.4762, allocations: 35.66 kB / 464.5 MB, free: 7.688 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002739/0.4765, allocations: 111.4 kB / 464.6 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.4765, allocations: 0 / 464.6 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.4765, allocations: 0 / 464.6 MB, free: 7.574 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.813e-06/0.4766, allocations: 4 kB / 464.6 MB, free: 7.57 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002968/0.4769, allocations: 253.5 kB / 464.8 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.4769, allocations: 0 / 464.8 MB, free: 7.273 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.698e-05/0.4769, allocations: 11.89 kB / 464.8 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.499e-06/0.4769, allocations: 4 kB / 464.8 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.402e-05/0.4769, allocations: 4 kB / 464.8 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.036e-06/0.477, allocations: 7.984 kB / 464.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.477, allocations: 0 / 464.8 MB, free: 7.246 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003514/0.4773, allocations: 213.8 kB / 465.1 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001093/0.4774, allocations: 104.9 kB / 465.2 MB, free: 6.879 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.481e-05/0.4775, allocations: 4 kB / 465.2 MB, free: 6.875 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001048/0.4776, allocations: 15.98 kB / 465.2 MB, free: 6.859 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.457e-05/0.4777, allocations: 15.98 kB / 465.2 MB, free: 6.844 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.471e-05/0.4777, allocations: 7.984 kB / 465.2 MB, free: 6.836 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002324/0.4779, allocations: 212.4 kB / 465.4 MB, free: 6.633 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.478, allocations: 4 kB / 465.4 MB, free: 6.629 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002783/0.4782, allocations: 44 kB / 465.4 MB, free: 6.586 MB / 346.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.001002/0.4792, allocations: 421.7 kB / 465.9 MB, free: 6.195 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003013/0.4796, allocations: 99.83 kB / 466 MB, free: 6.098 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.4796, allocations: 4.125 kB / 466 MB, free: 6.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001394/0.4797, allocations: 63.92 kB / 466 MB, free: 6.031 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003073/0.48, allocations: 50 kB / 466.1 MB, free: 5.98 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006988/0.4807, allocations: 375.8 kB / 466.4 MB, free: 5.582 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003781/0.4811, allocations: 0.74 MB / 467.2 MB, free: 4.816 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 9.56e-05/0.4812, allocations: 33.66 kB / 467.2 MB, free: 4.785 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.378e-05/0.4813, allocations: 23.44 kB / 467.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of SimCode: time 2.2e-07/0.4813, allocations: 0 / 467.2 MB, free: 4.766 MB / 346.7 MB Notification: Performance of Templates: time 0.006209/0.4875, allocations: 2.622 MB / 469.9 MB, free: 2.152 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) 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","../files/Modelica_3.2.3_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches