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.001132/0.001132, allocations: 109.8 kB / 17.74 MB, free: 5.359 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.001217/0.001217, allocations: 185.5 kB / 18.67 MB, free: 4.441 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.334/1.334, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009433/0.0009434, allocations: 47.94 kB / 352 MB, free: 3.262 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2567/0.2576, allocations: 49.44 MB / 401.4 MB, free: 8.734 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003242/0.2609, allocations: 1.836 MB / 403.2 MB, free: 7.016 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00167/0.2626, allocations: 1.029 MB / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.621e-05/0.2627, allocations: 0 / 404.3 MB, free: 5.984 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005989/0.2633, allocations: 163.5 kB / 404.4 MB, free: 5.824 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003218/0.2636, allocations: 127.5 kB / 404.5 MB, free: 5.699 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004486/0.2641, allocations: 181.8 kB / 404.7 MB, free: 5.523 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002398/0.2643, allocations: 211.4 kB / 404.9 MB, free: 5.316 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001031/0.2645, allocations: 17.56 kB / 404.9 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001234/0.2646, allocations: 87.67 kB / 405 MB, free: 5.215 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001274/0.2647, allocations: 83.62 kB / 405.1 MB, free: 5.133 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.644e-05/0.2648, allocations: 12 kB / 405.1 MB, free: 5.121 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001276/0.2649, allocations: 51.95 kB / 405.2 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.253e-05/0.265, allocations: 51.84 kB / 405.2 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 8.661e-05/0.2651, allocations: 79.53 kB / 405.3 MB, free: 4.941 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002906/0.2654, allocations: 220.4 kB / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.446e-06/0.2654, allocations: 0 / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.2654, allocations: 0 / 405.5 MB, free: 4.73 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2654, allocations: 0 / 405.5 MB, free: 4.73 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.0008335/0.2662, allocations: 0.5197 MB / 406 MB, free: 4.156 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.678e-05/0.2663, allocations: 8.031 kB / 406 MB, free: 4.148 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.323e-05/0.2663, allocations: 24.66 kB / 406.1 MB, free: 4.125 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003078/0.2667, allocations: 262.6 kB / 406.3 MB, free: 3.828 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.794e-05/0.2667, allocations: 4 kB / 406.3 MB, free: 3.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.898e-05/0.2667, allocations: 8 kB / 406.3 MB, free: 3.816 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002356/0.267, allocations: 113.8 kB / 406.5 MB, free: 3.688 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.098e-05/0.267, allocations: 4 kB / 406.5 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.267, allocations: 7.938 kB / 406.5 MB, free: 3.676 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.267, allocations: 7.938 kB / 406.5 MB, free: 3.668 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001435/0.2672, allocations: 43.97 kB / 406.5 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00066/0.2678, allocations: 0.6104 MB / 407.1 MB, free: 2.953 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002494/0.2681, allocations: 123.9 kB / 407.2 MB, free: 2.805 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001211/0.2682, allocations: 50.56 kB / 407.3 MB, free: 2.746 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.584e-05/0.2683, allocations: 8 kB / 407.3 MB, free: 2.738 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.2685, allocations: 117.9 kB / 407.4 MB, free: 2.602 MB / 318.1 MB Notification: Performance of pre-optimization done (n=12): time 1.503e-06/0.2685, allocations: 3.938 kB / 407.4 MB, free: 2.598 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004658/0.269, allocations: 189.3 kB / 407.6 MB, free: 2.406 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.878e-05/0.269, allocations: 132.5 kB / 407.7 MB, free: 2.246 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002961/0.2694, allocations: 285 kB / 408 MB, free: 1.953 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.342e-05/0.2694, allocations: 29.7 kB / 408 MB, free: 1.918 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.276e-05/0.2695, allocations: 128.3 kB / 408.2 MB, free: 1.785 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.106e-05/0.2695, allocations: 31.7 kB / 408.2 MB, free: 1.754 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.706e-05/0.2696, allocations: 33.7 kB / 408.2 MB, free: 1.715 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.2697, allocations: 326.9 kB / 408.6 MB, free: 1.387 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.21e-05/0.2698, allocations: 35.98 kB / 408.6 MB, free: 1.352 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001148/0.27, allocations: 77.98 kB / 408.7 MB, free: 1.254 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.2701, allocations: 96.25 kB / 408.8 MB, free: 1.145 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.2702, allocations: 4 kB / 408.8 MB, free: 1.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002635/0.2704, allocations: 141.3 kB / 408.9 MB, free: 0.9961 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.2704, allocations: 4 kB / 408.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2705, allocations: 0 / 408.9 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.329e-05/0.2705, allocations: 4 kB / 408.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.114e-05/0.2706, allocations: 24.58 kB / 408.9 MB, free: 0.9648 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.512e-06/0.2706, allocations: 4 kB / 408.9 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001097/0.2707, allocations: 19.83 kB / 409 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.169e-05/0.2707, allocations: 8 kB / 409 MB, free: 0.9336 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.0001199/0.2709, allocations: 153.6 kB / 409.1 MB, free: 0.7734 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.57e-05/0.2709, allocations: 19.72 kB / 409.1 MB, free: 0.7539 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.105e-05/0.271, allocations: 25.7 kB / 409.2 MB, free: 0.7266 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.891e-06/0.271, allocations: 7.938 kB / 409.2 MB, free: 0.7188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.271, allocations: 4 kB / 409.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.271, allocations: 0 / 409.2 MB, free: 0.7148 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002225/0.2712, allocations: 241.5 kB / 409.4 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.727e-06/0.2712, allocations: 0 / 409.4 MB, free: 440 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.794e-05/0.2713, allocations: 7.938 kB / 409.4 MB, free: 432 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.908e-06/0.2713, allocations: 4 kB / 409.4 MB, free: 428 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.21e-05/0.2713, allocations: 4 kB / 409.4 MB, free: 424 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.198e-06/0.2713, allocations: 7.938 kB / 409.4 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2713, allocations: 0 / 409.4 MB, free: 416 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003098/0.2716, allocations: 174.6 kB / 409.6 MB, free: 216 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.895e-05/0.2717, allocations: 96.81 kB / 409.7 MB, free: 100 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.719e-05/0.2717, allocations: 8 kB / 409.7 MB, free: 92 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001017/0.2718, allocations: 15.86 kB / 409.7 MB, free: 76 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.392e-05/0.2719, allocations: 15.98 kB / 409.7 MB, free: 60 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.587e-05/0.2719, allocations: 4 kB / 409.7 MB, free: 56 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002191/0.2722, allocations: 212.5 kB / 409.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.21e-07/0.2722, allocations: 0 / 409.9 MB, free: 15.85 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002662/0.2724, allocations: 47.92 kB / 410 MB, free: 15.8 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.00101/0.2735, allocations: 413.9 kB / 410.4 MB, free: 15.55 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002928/0.2738, allocations: 95.83 kB / 410.5 MB, free: 15.46 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/0.2738, allocations: 4.188 kB / 410.5 MB, free: 15.45 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001354/0.2739, allocations: 55.92 kB / 410.5 MB, free: 15.4 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003713/0.2743, allocations: 59.06 kB / 410.6 MB, free: 15.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006342/0.2749, allocations: 366.9 kB / 411 MB, free: 14.95 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.2753, allocations: 0.7396 MB / 411.7 MB, free: 14.18 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.308e-05/0.2753, allocations: 23.44 kB / 411.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2753, allocations: 0 / 411.7 MB, free: 14.16 MB / 334.1 MB Notification: Performance of Templates: time 0.004575/0.2799, allocations: 2.9 MB / 414.6 MB, free: 11.27 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