Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001529/0.001529, allocations: 113.1 kB / 17.06 MB, free: 5.973 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.001536/0.001536, allocations: 200 kB / 18 MB, free: 5.055 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.553/1.553, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001204/0.001204, allocations: 55.91 kB / 351.3 MB, free: 3.293 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3564/0.3576, allocations: 49.42 MB / 400.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002713/0.3604, allocations: 1.703 MB / 402.4 MB, free: 7.188 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006488/0.3611, allocations: 295.1 kB / 402.7 MB, free: 6.898 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.143e-05/0.3612, allocations: 7.938 kB / 402.7 MB, free: 6.891 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001471/0.3613, allocations: 23.73 kB / 402.7 MB, free: 6.867 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 5.973e-05/0.3614, allocations: 23.73 kB / 402.7 MB, free: 6.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003671/0.3618, allocations: 119.8 kB / 402.8 MB, free: 6.727 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.3621, allocations: 275.4 kB / 403.1 MB, free: 6.457 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002714/0.3624, allocations: 179.2 kB / 403.3 MB, free: 6.285 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.941e-05/0.3625, allocations: 91.69 kB / 403.4 MB, free: 6.195 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001205/0.3626, allocations: 91.61 kB / 403.5 MB, free: 6.105 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.175e-05/0.3626, allocations: 24 kB / 403.5 MB, free: 6.082 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.499e-05/0.3627, allocations: 43.86 kB / 403.5 MB, free: 6.039 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 5.942e-05/0.3628, allocations: 51.89 kB / 403.6 MB, free: 5.988 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.642e-05/0.3629, allocations: 99.47 kB / 403.7 MB, free: 5.891 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000274/0.3632, allocations: 259.1 kB / 403.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.3632, allocations: 0 / 403.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3632, allocations: 0 / 403.9 MB, free: 5.637 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.3e-06/0.3632, allocations: 0 / 403.9 MB, free: 5.637 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.000609/0.3638, allocations: 498.5 kB / 404.4 MB, free: 5.102 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.197e-05/0.3639, allocations: 11.89 kB / 404.4 MB, free: 5.09 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.635e-05/0.3639, allocations: 28.59 kB / 404.5 MB, free: 5.062 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.3642, allocations: 236 kB / 404.7 MB, free: 4.793 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.3642, allocations: 24.94 kB / 404.7 MB, free: 4.77 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.655e-05/0.3643, allocations: 28.38 kB / 404.7 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004068/0.3647, allocations: 270.6 kB / 405 MB, free: 4.457 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.202e-05/0.3647, allocations: 4.125 kB / 405 MB, free: 4.453 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.741e-05/0.3647, allocations: 15.94 kB / 405 MB, free: 4.438 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.3647, allocations: 11.98 kB / 405 MB, free: 4.426 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.365, allocations: 165.6 kB / 405.2 MB, free: 4.266 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001044/0.3661, allocations: 0.9594 MB / 406.2 MB, free: 3.242 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000273/0.3664, allocations: 184.8 kB / 406.3 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3665, allocations: 81.62 kB / 406.4 MB, free: 2.961 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.168e-05/0.3665, allocations: 4 kB / 406.4 MB, free: 2.957 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001905/0.3667, allocations: 140.7 kB / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.755e-06/0.3667, allocations: 0 / 406.6 MB, free: 2.805 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004115/0.3671, allocations: 221.3 kB / 406.8 MB, free: 2.582 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.3672, allocations: 85.05 kB / 406.9 MB, free: 2.48 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001162/0.3673, allocations: 155.9 kB / 407 MB, free: 2.32 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.734e-05/0.3674, allocations: 37.64 kB / 407.1 MB, free: 2.277 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.532e-05/0.3675, allocations: 148.5 kB / 407.2 MB, free: 2.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.554e-05/0.3675, allocations: 55.48 kB / 407.3 MB, free: 2.074 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.943e-05/0.3676, allocations: 81.58 kB / 407.3 MB, free: 1.988 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.3677, allocations: 330.8 kB / 407.7 MB, free: 1.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3679, allocations: 63.97 kB / 407.7 MB, free: 1.594 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001706/0.3681, allocations: 140.3 kB / 407.9 MB, free: 1.426 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002623/0.3683, allocations: 196.8 kB / 408 MB, free: 1.203 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.424e-06/0.3683, allocations: 3.938 kB / 408.1 MB, free: 1.199 MB / 318.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003827/0.3687, allocations: 257.2 kB / 408.3 MB, free: 0.9414 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.469e-05/0.3688, allocations: 8 kB / 408.3 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.3688, allocations: 4.281 kB / 408.3 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.3688, allocations: 4 kB / 408.3 MB, free: 0.9258 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000146/0.3689, allocations: 35.92 kB / 408.4 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.015e-05/0.369, allocations: 4 kB / 408.4 MB, free: 0.8867 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.676e-05/0.3691, allocations: 27.77 kB / 408.4 MB, free: 0.8594 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.3691, allocations: 12 kB / 408.4 MB, free: 0.8477 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: 32 ($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,transition2.t_start,$PRE.transition2.t_start,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 (41): * Single equations (assignments): 41 * 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.0001372/0.3692, allocations: 165.6 kB / 408.6 MB, free: 0.6758 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.3693, allocations: 15.81 kB / 408.6 MB, free: 0.6602 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003206/0.3696, allocations: 190.4 kB / 408.8 MB, free: 480 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.973e-06/0.3696, allocations: 4 kB / 408.8 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3696, allocations: 0 / 408.8 MB, free: 476 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3696, allocations: 3.984 kB / 408.8 MB, free: 472 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006836/0.3703, allocations: 0.5948 MB / 409.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.3704, allocations: 0 / 409.4 MB, free: 15.8 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.165e-05/0.3704, allocations: 15.94 kB / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.3704, allocations: 0 / 409.4 MB, free: 15.79 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.906e-05/0.3705, allocations: 15.92 kB / 409.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.347e-06/0.3705, allocations: 8 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.3705, allocations: 4 kB / 409.4 MB, free: 15.76 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002958/0.3708, allocations: 283.9 kB / 409.7 MB, free: 15.46 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.466e-05/0.3708, allocations: 88.95 kB / 409.8 MB, free: 15.36 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.766e-05/0.3709, allocations: 7.938 kB / 409.8 MB, free: 15.35 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.106e-05/0.371, allocations: 15.92 kB / 409.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.371, allocations: 23.97 kB / 409.8 MB, free: 15.31 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.922e-05/0.3711, allocations: 8 kB / 409.8 MB, free: 15.3 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.028e-05/0.3711, allocations: 99.27 kB / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3711, allocations: 0 / 409.9 MB, free: 15.2 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003022/0.3714, allocations: 51.84 kB / 410 MB, free: 15.15 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 20 (transition2.t_start,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: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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.000194/0.3716, allocations: 103.2 kB / 410.1 MB, free: 15.04 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003416/0.372, allocations: 196.3 kB / 410.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.372, allocations: 3.938 kB / 410.3 MB, free: 14.85 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001377/0.3721, allocations: 88.28 kB / 410.4 MB, free: 14.76 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002858/0.3724, allocations: 22.59 kB / 410.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006086/0.3731, allocations: 360.8 kB / 410.7 MB, free: 14.36 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3734, allocations: 0.7366 MB / 411.5 MB, free: 13.59 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.692e-05/0.3735, allocations: 21.95 kB / 411.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.58e-05/0.3735, allocations: 27.42 kB / 411.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3736, allocations: 0 / 411.5 MB, free: 13.54 MB / 334.1 MB Notification: Performance of Templates: time 0.004926/0.3785, allocations: 1.903 MB / 413.4 MB, free: 11.64 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches