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.001695/0.001695, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.3 MB / 214.4 MB, free: 1.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008023/0.0008023, allocations: 86.38 kB / 262.4 MB, free: 1.688 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.303e-05/1.305e-05, allocations: 4 kB / 315.5 MB, free: 22.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08677/0.0868, allocations: 47.59 MB / 363.1 MB, free: 7.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2774/0.3642, allocations: 78.85 MB / 441.9 MB, free: 0.7773 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001853/0.3645, allocations: 67.09 kB / 442 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01515/0.3796, allocations: 5.659 MB / 447.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.3797, allocations: 0 / 447.6 MB, free: 12.07 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.212e-05/0.3797, allocations: 4 kB / 447.6 MB, free: 12.07 MB / 330.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.0006444/0.3803, allocations: 493.9 kB / 448.1 MB, free: 11.55 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.196e-05/0.3804, allocations: 12.03 kB / 448.1 MB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.44e-05/0.3805, allocations: 15.81 kB / 448.2 MB, free: 11.52 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004185/0.3809, allocations: 261.4 kB / 448.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.332e-05/0.3809, allocations: 4 kB / 448.4 MB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.756e-05/0.3809, allocations: 7.938 kB / 448.4 MB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001195/0.3811, allocations: 40.56 kB / 448.5 MB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001741/0.3813, allocations: 114.5 kB / 448.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3813, allocations: 0 / 448.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.422e-05/0.3813, allocations: 0 / 448.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.989e-06/0.3813, allocations: 0 / 448.6 MB, free: 11.09 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006317/0.3819, allocations: 0.5936 MB / 449.2 MB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001553/0.3821, allocations: 112.9 kB / 449.3 MB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.112e-05/0.3822, allocations: 44.08 kB / 449.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.078e-05/0.3822, allocations: 3.984 kB / 449.3 MB, free: 10.33 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001497/0.3824, allocations: 110.6 kB / 449.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of pre-optimization done (n=12): time 6.682e-06/0.3824, allocations: 0 / 449.4 MB, free: 10.21 MB / 330.7 MB Notification: Performance of matching and sorting (n=12): time 0.0002614/0.3826, allocations: 137.2 kB / 449.6 MB, free: 10.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.851e-05/0.3827, allocations: 136.5 kB / 449.7 MB, free: 9.934 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002518/0.383, allocations: 245.5 kB / 449.9 MB, free: 9.734 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.85e-05/0.383, allocations: 25.7 kB / 450 MB, free: 9.703 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.509e-05/0.3831, allocations: 124.3 kB / 450.1 MB, free: 9.605 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.595e-05/0.3831, allocations: 35.3 kB / 450.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-06/0.3831, allocations: 0 / 450.1 MB, free: 9.574 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001125/0.3833, allocations: 325.6 kB / 450.4 MB, free: 9.254 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.153e-05/0.3833, allocations: 38.39 kB / 450.5 MB, free: 9.227 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.738e-05/0.3834, allocations: 74.56 kB / 450.5 MB, free: 9.148 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.485e-05/0.3835, allocations: 23.88 kB / 450.6 MB, free: 9.133 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.316e-06/0.3835, allocations: 7.922 kB / 450.6 MB, free: 9.125 MB / 330.7 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002067/0.3837, allocations: 124.9 kB / 450.7 MB, free: 9.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.592e-05/0.3837, allocations: 4 kB / 450.7 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.889e-06/0.3837, allocations: 0 / 450.7 MB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.474e-05/0.3838, allocations: 7.984 kB / 450.7 MB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.432e-05/0.3838, allocations: 19.38 kB / 450.7 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.789e-06/0.3839, allocations: 0 / 450.7 MB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001114/0.384, allocations: 15.98 kB / 450.7 MB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.036e-05/0.384, allocations: 8.094 kB / 450.8 MB, free: 8.965 MB / 330.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 () * 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 7.579e-05/0.3841, allocations: 105 kB / 450.9 MB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.049e-05/0.3841, allocations: 31.66 kB / 450.9 MB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001935/0.3843, allocations: 106.5 kB / 451 MB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.3843, allocations: 4 kB / 451 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.01e-06/0.3844, allocations: 0 / 451 MB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.003e-06/0.3844, allocations: 7.984 kB / 451 MB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002092/0.3846, allocations: 222.2 kB / 451.2 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.3846, allocations: 0 / 451.2 MB, free: 8.5 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.989e-05/0.3846, allocations: 16 kB / 451.2 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.696e-06/0.3846, allocations: 0 / 451.2 MB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.296e-05/0.3847, allocations: 7.891 kB / 451.2 MB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.098e-06/0.3847, allocations: 7.984 kB / 451.3 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.3847, allocations: 0 / 451.3 MB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002265/0.3849, allocations: 191.6 kB / 451.4 MB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.208e-05/0.385, allocations: 111.6 kB / 451.5 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.395e-05/0.385, allocations: 0 / 451.5 MB, free: 8.148 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001095/0.3852, allocations: 15.98 kB / 451.6 MB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.664e-05/0.3852, allocations: 15.72 kB / 451.6 MB, free: 8.121 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.162e-05/0.3852, allocations: 4 kB / 451.6 MB, free: 8.117 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001732/0.3854, allocations: 199.4 kB / 451.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3854, allocations: 0 / 451.8 MB, free: 7.961 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002774/0.3857, allocations: 39.56 kB / 451.8 MB, free: 7.926 MB / 330.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) * 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.000769/0.3865, allocations: 365.7 kB / 452.2 MB, free: 7.566 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001937/0.3867, allocations: 84.92 kB / 452.3 MB, free: 7.508 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.3867, allocations: 4.062 kB / 452.3 MB, free: 7.504 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.205e-05/0.3868, allocations: 46.12 kB / 452.3 MB, free: 7.473 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.3871, allocations: 42.34 kB / 452.3 MB, free: 7.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004628/0.3876, allocations: 252.9 kB / 452.6 MB, free: 7.191 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003017/0.3879, allocations: 0.7429 MB / 453.3 MB, free: 6.426 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 8.67e-05/0.388, allocations: 28.78 kB / 453.4 MB, free: 6.402 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.274e-05/0.388, allocations: 19.44 kB / 453.4 MB, free: 6.383 MB / 330.7 MB Notification: Performance of SimCode: time 2.5e-07/0.3881, allocations: 0 / 453.4 MB, free: 6.383 MB / 330.7 MB Notification: Performance of Templates: time 0.00549/0.3936, allocations: 2.45 MB / 455.8 MB, free: 3.941 MB / 330.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