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) 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) 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=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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 107.1 kB / 17.74 MB, free: 5.188 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001908/0.001908, allocations: 193.6 kB / 18.67 MB, free: 4.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.502/1.502, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001291/0.001291, allocations: 43.94 kB / 352 MB, free: 3.254 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3601/0.3614, allocations: 49.44 MB / 401.4 MB, free: 8.742 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.004395/0.3659, allocations: 1.829 MB / 403.2 MB, free: 7.039 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002163/0.3681, allocations: 1.033 MB / 404.3 MB, free: 6.004 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001888/0.3683, allocations: 4 kB / 404.3 MB, free: 6 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008605/0.3691, allocations: 167.1 kB / 404.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.3696, allocations: 127.5 kB / 404.5 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006249/0.3702, allocations: 171.5 kB / 404.7 MB, free: 5.547 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000393/0.3706, allocations: 211.4 kB / 404.9 MB, free: 5.34 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.3708, allocations: 25.5 kB / 404.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001952/0.371, allocations: 83.67 kB / 405 MB, free: 5.234 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001949/0.3712, allocations: 79.67 kB / 405.1 MB, free: 5.156 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.842e-05/0.3712, allocations: 15.94 kB / 405.1 MB, free: 5.141 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002205/0.3715, allocations: 55.97 kB / 405.2 MB, free: 5.086 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001023/0.3716, allocations: 47.83 kB / 405.2 MB, free: 5.039 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001297/0.3717, allocations: 75.53 kB / 405.3 MB, free: 4.965 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000474/0.3722, allocations: 220.4 kB / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3722, allocations: 0 / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3722, allocations: 0 / 405.5 MB, free: 4.754 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.3723, allocations: 0 / 405.5 MB, free: 4.754 MB / 318.1 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.001177/0.3734, allocations: 0.5236 MB / 406 MB, free: 4.176 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.878e-05/0.3735, allocations: 8.031 kB / 406 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.128e-05/0.3736, allocations: 24.66 kB / 406.1 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004029/0.374, allocations: 258.6 kB / 406.3 MB, free: 3.852 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.374, allocations: 8 kB / 406.3 MB, free: 3.844 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.451e-05/0.3741, allocations: 4 kB / 406.3 MB, free: 3.84 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.3744, allocations: 120.1 kB / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.186e-05/0.3744, allocations: 0 / 406.4 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.891e-05/0.3744, allocations: 7.938 kB / 406.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.3744, allocations: 0 / 406.5 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001559/0.3746, allocations: 47.91 kB / 406.5 MB, free: 3.648 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008795/0.3755, allocations: 0.6143 MB / 407.1 MB, free: 2.973 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003102/0.3758, allocations: 119.9 kB / 407.2 MB, free: 2.828 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001124/0.3759, allocations: 58.56 kB / 407.3 MB, free: 2.762 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.376, allocations: 7.984 kB / 407.3 MB, free: 2.754 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000263/0.3762, allocations: 121.9 kB / 407.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.383e-06/0.3763, allocations: 0 / 407.4 MB, free: 2.613 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.000516/0.3768, allocations: 173.3 kB / 407.6 MB, free: 2.438 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3769, allocations: 144.4 kB / 407.7 MB, free: 2.266 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.3773, allocations: 281 kB / 408 MB, free: 1.977 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.976e-05/0.3773, allocations: 33.7 kB / 408 MB, free: 1.938 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001259/0.3774, allocations: 132.4 kB / 408.2 MB, free: 1.801 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.185e-05/0.3775, allocations: 23.66 kB / 408.2 MB, free: 1.777 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.752e-05/0.3776, allocations: 33.7 kB / 408.2 MB, free: 1.738 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3778, allocations: 334.8 kB / 408.5 MB, free: 1.402 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.803e-05/0.3779, allocations: 31.98 kB / 408.6 MB, free: 1.371 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001317/0.378, allocations: 78 kB / 408.7 MB, free: 1.273 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002001/0.3782, allocations: 96.2 kB / 408.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3782, allocations: 0 / 408.7 MB, free: 1.164 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003154/0.3786, allocations: 142.1 kB / 408.9 MB, free: 1.02 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.204e-05/0.3786, allocations: 8 kB / 408.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.3786, allocations: 0 / 408.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.367e-05/0.3787, allocations: 0 / 408.9 MB, free: 1.012 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001042/0.3788, allocations: 23.86 kB / 408.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.298e-05/0.3788, allocations: 4 kB / 408.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001259/0.3789, allocations: 27.83 kB / 408.9 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.209e-05/0.3789, allocations: 4 kB / 409 MB, free: 0.9531 MB / 318.1 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.0001717/0.3791, allocations: 145.7 kB / 409.1 MB, free: 0.8008 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.512e-05/0.3792, allocations: 23.72 kB / 409.1 MB, free: 0.7773 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.204e-05/0.3793, allocations: 33.64 kB / 409.1 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.3793, allocations: 3.938 kB / 409.2 MB, free: 0.7383 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.887e-06/0.3793, allocations: 4 kB / 409.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.689e-06/0.3793, allocations: 0 / 409.2 MB, free: 0.7344 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002726/0.3796, allocations: 241.5 kB / 409.4 MB, free: 460 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.348e-06/0.3796, allocations: 4 kB / 409.4 MB, free: 456 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.127e-05/0.3796, allocations: 7.938 kB / 409.4 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.636e-06/0.3797, allocations: 0 / 409.4 MB, free: 448 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.512e-05/0.3797, allocations: 4 kB / 409.4 MB, free: 444 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.509e-06/0.3797, allocations: 7.938 kB / 409.4 MB, free: 436 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.496e-06/0.3797, allocations: 3.984 kB / 409.4 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003328/0.38, allocations: 178.4 kB / 409.6 MB, free: 228 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.28e-05/0.3801, allocations: 96.83 kB / 409.7 MB, free: 112 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.703e-05/0.3802, allocations: 4 kB / 409.7 MB, free: 108 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001197/0.3803, allocations: 19.92 kB / 409.7 MB, free: 88 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.884e-05/0.3804, allocations: 11.98 kB / 409.7 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.916e-05/0.3804, allocations: 15.92 kB / 409.7 MB, free: 60 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002605/0.3807, allocations: 212.5 kB / 409.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3807, allocations: 0 / 409.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002876/0.381, allocations: 36 kB / 410 MB, free: 15.82 MB / 334.1 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.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * 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.001344/0.3823, allocations: 415.6 kB / 410.4 MB, free: 15.56 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003261/0.3826, allocations: 95.84 kB / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.3827, allocations: 0 / 410.5 MB, free: 15.47 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.3828, allocations: 51.97 kB / 410.5 MB, free: 15.42 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003854/0.3832, allocations: 52.77 kB / 410.6 MB, free: 15.37 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007159/0.3839, allocations: 370.6 kB / 410.9 MB, free: 14.97 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004309/0.3844, allocations: 0.7395 MB / 411.7 MB, free: 14.2 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.251e-05/0.3845, allocations: 23.42 kB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3845, allocations: 0 / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of Templates: time 0.006018/0.3905, allocations: 2.9 MB / 414.6 MB, free: 11.3 MB / 334.1 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/ShowLogicalSources/ShowLogicalSources.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches