Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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 3.2.3+maint.om/package.mo", uses=false) 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 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001128/0.001128, allocations: 103.6 kB / 18.39 MB, free: 4.641 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.001092/0.001092, allocations: 187 kB / 19.33 MB, free: 3.715 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.366/1.366, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00135/0.00135, allocations: 51.92 kB / 329.2 MB, free: 3.34 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.089/0.09036, allocations: 46.62 MB / 375.8 MB, free: 4.605 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003134/0.09354, allocations: 1.688 MB / 377.5 MB, free: 2.906 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007379/0.09431, allocations: 267.2 kB / 377.7 MB, free: 2.645 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.09447, allocations: 3.938 kB / 377.7 MB, free: 2.641 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001459/0.09466, allocations: 19.75 kB / 377.8 MB, free: 2.621 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.902e-05/0.09476, allocations: 23.73 kB / 377.8 MB, free: 2.598 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004905/0.09526, allocations: 115.8 kB / 377.9 MB, free: 2.484 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003752/0.09565, allocations: 267.5 kB / 378.2 MB, free: 2.223 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004041/0.09606, allocations: 181.5 kB / 378.3 MB, free: 2.043 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001302/0.0962, allocations: 91.7 kB / 378.4 MB, free: 1.953 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001583/0.09636, allocations: 103.5 kB / 378.5 MB, free: 1.852 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.432e-05/0.09642, allocations: 24 kB / 378.6 MB, free: 1.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.893e-05/0.0965, allocations: 27.98 kB / 378.6 MB, free: 1.801 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 7.086e-05/0.09658, allocations: 55.84 kB / 378.6 MB, free: 1.746 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001119/0.0967, allocations: 103.5 kB / 378.7 MB, free: 1.645 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003175/0.09702, allocations: 247.1 kB / 379 MB, free: 1.402 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.09703, allocations: 3.938 kB / 379 MB, free: 1.398 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.09704, allocations: 4 kB / 379 MB, free: 1.395 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.09706, allocations: 0 / 379 MB, free: 1.395 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0007064/0.09778, allocations: 486.2 kB / 379.5 MB, free: 0.8711 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.09783, allocations: 15.89 kB / 379.5 MB, free: 0.8555 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.104e-05/0.09791, allocations: 28.69 kB / 379.5 MB, free: 0.8281 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003688/0.09828, allocations: 232 kB / 379.7 MB, free: 0.5625 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.073e-05/0.09833, allocations: 28.92 kB / 379.8 MB, free: 0.5352 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.494e-05/0.09838, allocations: 24.38 kB / 379.8 MB, free: 0.5117 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004597/0.09885, allocations: 282.5 kB / 380.1 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.298e-05/0.09888, allocations: 192 / 380.1 MB, free: 224 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.749e-05/0.09891, allocations: 11.94 kB / 380.1 MB, free: 212 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.09892, allocations: 8 kB / 380.1 MB, free: 204 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003163/0.09925, allocations: 165.6 kB / 380.2 MB, free: 36 kB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1826/0.2818, allocations: 0.9522 MB / 381.2 MB, free: 12.5 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002809/0.2821, allocations: 155.6 kB / 381.3 MB, free: 12.48 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001133/0.2823, allocations: 73.5 kB / 381.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.2823, allocations: 8.047 kB / 381.4 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.2825, allocations: 126 kB / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 3.216e-06/0.2825, allocations: 0 / 381.5 MB, free: 12.41 MB / 318.1 MB Notification: Performance of matching and sorting (n=23): time 0.00041/0.2829, allocations: 211.1 kB / 381.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.686e-05/0.283, allocations: 57.97 kB / 381.8 MB, free: 12.31 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001056/0.2831, allocations: 154.2 kB / 382 MB, free: 12.2 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.585e-05/0.2831, allocations: 38.69 kB / 382 MB, free: 12.17 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.142e-05/0.2832, allocations: 136.9 kB / 382.1 MB, free: 12.06 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.69e-05/0.2833, allocations: 65.73 kB / 382.2 MB, free: 12.03 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.51e-05/0.2834, allocations: 76.95 kB / 382.3 MB, free: 12.01 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.349e-05/0.2834, allocations: 326.4 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001171/0.2835, allocations: 62.94 kB / 382.6 MB, free: 11.7 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.2837, allocations: 146.2 kB / 382.8 MB, free: 11.61 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002151/0.2839, allocations: 184.4 kB / 383 MB, free: 11.53 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.2839, allocations: 8.344 kB / 383 MB, free: 11.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003971/0.2843, allocations: 249.6 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.44e-05/0.2844, allocations: 7.406 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.605e-06/0.2844, allocations: 2.75 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.088e-05/0.2844, allocations: 4.125 kB / 383.2 MB, free: 11.46 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001549/0.2846, allocations: 39.47 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.189e-05/0.2846, allocations: 4.828 kB / 383.3 MB, free: 11.45 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001197/0.2847, allocations: 28.73 kB / 383.3 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.941e-05/0.2847, allocations: 15.19 kB / 383.3 MB, free: 11.42 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001433/0.2849, allocations: 160.1 kB / 383.5 MB, free: 11.28 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.006e-05/0.2849, allocations: 14.53 kB / 383.5 MB, free: 11.27 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003846/0.2853, allocations: 197.9 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.2853, allocations: 2.75 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.2854, allocations: 1.438 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.2854, allocations: 1.828 kB / 383.7 MB, free: 11.18 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007706/0.2861, allocations: 0.5901 MB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.2862, allocations: 0 / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.665e-05/0.2862, allocations: 13.66 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.2863, allocations: 2 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.628e-05/0.2863, allocations: 9.375 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.957e-06/0.2863, allocations: 7.109 kB / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.2863, allocations: 0 / 384.3 MB, free: 10.73 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002743/0.2866, allocations: 277.5 kB / 384.6 MB, free: 10.54 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.227e-05/0.2866, allocations: 93.98 kB / 384.7 MB, free: 10.44 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.842e-05/0.2866, allocations: 6.812 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.057e-05/0.2867, allocations: 12.02 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.42e-05/0.2868, allocations: 17.84 kB / 384.7 MB, free: 10.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.698e-05/0.2868, allocations: 10.25 kB / 384.7 MB, free: 10.42 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.82e-05/0.2869, allocations: 96.44 kB / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2869, allocations: 3.5 kB / 384.8 MB, free: 10.34 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0003461/0.2873, allocations: 52.28 kB / 384.9 MB, free: 10.33 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (step.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0001251/0.2874, allocations: 114.5 kB / 385 MB, free: 10.23 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.2877, allocations: 189.1 kB / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.2877, allocations: 0 / 385.2 MB, free: 10.16 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001177/0.2878, allocations: 75.36 kB / 385.2 MB, free: 10.14 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002835/0.2881, allocations: 28.08 kB / 385.3 MB, free: 10.13 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000543/0.2887, allocations: 361.8 kB / 385.6 MB, free: 9.875 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001551/0.2889, allocations: 0.7301 MB / 386.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.977e-05/0.2889, allocations: 26.97 kB / 386.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of SimCode: time 3.11e-07/0.2889, allocations: 0 / 386.4 MB, free: 9.168 MB / 318.1 MB Notification: Performance of Templates: time 0.004962/0.2939, allocations: 2.419 MB / 388.8 MB, free: 8.926 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches