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/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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001226/0.001226, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.274/1.274, allocations: 221.3 MB / 235.5 MB, free: 2.973 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008256/0.0008258, allocations: 99.73 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.798e-05/2.801e-05, allocations: 0 / 343.8 MB, free: 4.328 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1161/0.1161, allocations: 50.42 MB / 394.2 MB, free: 1.867 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3046/0.4208, allocations: 76.63 MB / 470.9 MB, free: 10.94 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001977/0.421, allocations: 63.97 kB / 470.9 MB, free: 10.88 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00774/0.4288, allocations: 3.05 MB / 474 MB, free: 7.816 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.863e-06/0.4288, allocations: 0 / 474 MB, free: 7.816 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.408e-05/0.4288, allocations: 7.938 kB / 474 MB, free: 7.809 MB / 346.7 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.0004923/0.4293, allocations: 436.4 kB / 474.4 MB, free: 7.344 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.808e-05/0.4294, allocations: 12.03 kB / 474.4 MB, free: 7.332 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.989e-05/0.4295, allocations: 27.7 kB / 474.4 MB, free: 7.305 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/0.4297, allocations: 222.9 kB / 474.7 MB, free: 7.047 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.614e-05/0.4298, allocations: 24.55 kB / 474.7 MB, free: 7.02 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.168e-05/0.4298, allocations: 28 kB / 474.7 MB, free: 6.992 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004188/0.4302, allocations: 266 kB / 475 MB, free: 6.711 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.4303, allocations: 7.938 kB / 475 MB, free: 6.703 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.433e-05/0.4303, allocations: 15.98 kB / 475 MB, free: 6.688 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.042e-05/0.4303, allocations: 8 kB / 475 MB, free: 6.68 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002701/0.4306, allocations: 157.7 kB / 475.2 MB, free: 6.527 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001094/0.4317, allocations: 0.9558 MB / 476.1 MB, free: 5.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002575/0.432, allocations: 177.9 kB / 476.3 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001209/0.4321, allocations: 82.06 kB / 476.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.943e-05/0.4321, allocations: 192 / 476.4 MB, free: 5.223 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001987/0.4323, allocations: 140.3 kB / 476.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.203e-06/0.4323, allocations: 0 / 476.5 MB, free: 5.07 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003142/0.4327, allocations: 169.2 kB / 476.7 MB, free: 4.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.944e-05/0.4327, allocations: 85.11 kB / 476.8 MB, free: 4.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001035/0.4328, allocations: 137.3 kB / 476.9 MB, free: 4.656 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.278e-05/0.4329, allocations: 37.7 kB / 476.9 MB, free: 4.613 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.557e-05/0.433, allocations: 140.3 kB / 477.1 MB, free: 4.473 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.841e-05/0.433, allocations: 63.28 kB / 477.1 MB, free: 4.41 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.262e-05/0.433, allocations: 8 kB / 477.1 MB, free: 4.402 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001352/0.4332, allocations: 326.8 kB / 477.4 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.4333, allocations: 59.98 kB / 477.5 MB, free: 4.016 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001693/0.4335, allocations: 132.5 kB / 477.6 MB, free: 3.855 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001219/0.4336, allocations: 71.94 kB / 477.7 MB, free: 3.785 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.4336, allocations: 4 kB / 477.7 MB, free: 3.781 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003552/0.434, allocations: 249.2 kB / 478 MB, free: 3.531 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.434, allocations: 8 kB / 478 MB, free: 3.523 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.353e-06/0.434, allocations: 4 kB / 478 MB, free: 3.52 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.434, allocations: 4 kB / 478 MB, free: 3.516 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.4342, allocations: 35.84 kB / 478 MB, free: 3.48 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.263e-05/0.4342, allocations: 7.953 kB / 478 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001178/0.4343, allocations: 28.12 kB / 478 MB, free: 3.445 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.849e-05/0.4344, allocations: 15.94 kB / 478.1 MB, free: 3.43 MB / 346.7 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,$whenCondition2,$whenCondition1,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,step.active,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.359e-05/0.4345, allocations: 132.7 kB / 478.2 MB, free: 3.293 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.401e-05/0.4345, allocations: 15.89 kB / 478.2 MB, free: 3.277 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003217/0.4348, allocations: 190.2 kB / 478.4 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.4348, allocations: 0 / 478.4 MB, free: 3.082 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.362e-06/0.4349, allocations: 4 kB / 478.4 MB, free: 3.078 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.901e-06/0.4349, allocations: 7.953 kB / 478.4 MB, free: 3.07 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000666/0.4355, allocations: 0.5797 MB / 479 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.774e-06/0.4356, allocations: 0 / 479 MB, free: 2.43 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.736e-05/0.4356, allocations: 23.92 kB / 479 MB, free: 2.406 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.027e-06/0.4356, allocations: 3.953 kB / 479 MB, free: 2.402 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.458e-05/0.4357, allocations: 4 kB / 479 MB, free: 2.398 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.4357, allocations: 4 kB / 479 MB, free: 2.395 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.4357, allocations: 4 kB / 479 MB, free: 2.391 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000278/0.436, allocations: 286.8 kB / 479.3 MB, free: 2.086 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.595e-05/0.436, allocations: 92.91 kB / 479.4 MB, free: 1.977 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.569e-05/0.4361, allocations: 8 kB / 479.4 MB, free: 1.969 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.337e-05/0.4362, allocations: 11.98 kB / 479.4 MB, free: 1.957 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.614e-05/0.4362, allocations: 27.97 kB / 479.4 MB, free: 1.93 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.751e-05/0.4363, allocations: 8 kB / 479.4 MB, free: 1.922 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.286e-05/0.4363, allocations: 104.1 kB / 479.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4363, allocations: 0 / 479.5 MB, free: 1.82 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002707/0.4366, allocations: 40 kB / 479.6 MB, free: 1.781 MB / 346.7 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.active,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,SetBoolean1.y,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * 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 (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.000144/0.4367, allocations: 113.4 kB / 479.7 MB, free: 1.664 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002956/0.437, allocations: 192.3 kB / 479.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.4371, allocations: 0 / 479.9 MB, free: 1.477 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001188/0.4372, allocations: 75.94 kB / 480 MB, free: 1.402 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001791/0.4374, allocations: 15.98 kB / 480 MB, free: 1.387 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004329/0.4378, allocations: 247.1 kB / 480.2 MB, free: 1.117 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002764/0.4381, allocations: 0.7445 MB / 481 MB, free: 356 kB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.189e-05/0.4382, allocations: 18.08 kB / 481 MB, free: 340 kB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.573e-05/0.4382, allocations: 35.36 kB / 481 MB, free: 304 kB / 346.7 MB Notification: Performance of SimCode: time 2.4e-07/0.4383, allocations: 0 / 481 MB, free: 304 kB / 346.7 MB Notification: Performance of Templates: time 0.004558/0.4428, allocations: 1.667 MB / 482.7 MB, free: 14.64 MB / 362.7 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","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches