Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001/0.001, allocations: 201.2 kB / 18.1 MB, free: 3.621 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.459/1.459, allocations: 226.5 MB / 245.4 MB, free: 8.223 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008668/0.0008667, allocations: 101.3 kB / 297.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003086/0.000309, allocations: 7.984 kB / 358.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3023/0.3026, allocations: 51.29 MB / 409.4 MB, free: 27.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1363/0.439, allocations: 77.42 MB / 486.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000325/0.4394, allocations: 70.31 kB / 486.8 MB, free: 14.05 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01076/0.4502, allocations: 3.072 MB / 489.9 MB, free: 10.96 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.035e-06/0.4502, allocations: 3.938 kB / 489.9 MB, free: 10.95 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.276e-05/0.4503, allocations: 8 kB / 489.9 MB, free: 10.95 MB / 362.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.0008579/0.4511, allocations: 457.2 kB / 490.4 MB, free: 10.45 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.483e-05/0.4512, allocations: 12.03 kB / 490.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001163/0.4513, allocations: 24.73 kB / 490.4 MB, free: 10.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003466/0.4517, allocations: 224.1 kB / 490.6 MB, free: 10.15 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.686e-05/0.4518, allocations: 24.94 kB / 490.7 MB, free: 10.13 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.91e-05/0.4518, allocations: 28.38 kB / 490.7 MB, free: 10.1 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006319/0.4525, allocations: 274.5 kB / 490.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.468e-05/0.4525, allocations: 192 / 490.9 MB, free: 9.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.566e-05/0.4525, allocations: 19.94 kB / 491 MB, free: 9.797 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.4526, allocations: 8 kB / 491 MB, free: 9.789 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004398/0.453, allocations: 157.6 kB / 491.1 MB, free: 9.633 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001527/0.4546, allocations: 0.9674 MB / 492.1 MB, free: 8.602 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003888/0.455, allocations: 165.4 kB / 492.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001876/0.4552, allocations: 85.72 kB / 492.3 MB, free: 8.332 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.823e-05/0.4552, allocations: 4 kB / 492.3 MB, free: 8.328 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003092/0.4555, allocations: 152.5 kB / 492.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 4.618e-06/0.4555, allocations: 0 / 492.5 MB, free: 8.164 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0006004/0.4561, allocations: 229.1 kB / 492.7 MB, free: 7.934 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.553e-05/0.4562, allocations: 85.23 kB / 492.8 MB, free: 7.832 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00016/0.4564, allocations: 149.6 kB / 492.9 MB, free: 7.676 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.419e-05/0.4565, allocations: 37.7 kB / 493 MB, free: 7.633 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001182/0.4566, allocations: 140.5 kB / 493.1 MB, free: 7.492 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.768e-05/0.4567, allocations: 59.25 kB / 493.2 MB, free: 7.434 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.69e-05/0.4567, allocations: 8 kB / 493.2 MB, free: 7.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001535/0.4569, allocations: 330.8 kB / 493.5 MB, free: 7.094 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001773/0.457, allocations: 59.97 kB / 493.6 MB, free: 7.035 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000239/0.4573, allocations: 148.2 kB / 493.7 MB, free: 6.859 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00037/0.4577, allocations: 185 kB / 493.9 MB, free: 6.648 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.491e-06/0.4577, allocations: 4 kB / 493.9 MB, free: 6.645 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0005996/0.4583, allocations: 249.2 kB / 494.1 MB, free: 6.395 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.266e-05/0.4583, allocations: 8 kB / 494.2 MB, free: 6.387 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4584, allocations: 3.938 kB / 494.2 MB, free: 6.383 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.359e-05/0.4584, allocations: 7.984 kB / 494.2 MB, free: 6.375 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001981/0.4586, allocations: 35.92 kB / 494.2 MB, free: 6.34 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.561e-05/0.4586, allocations: 7.938 kB / 494.2 MB, free: 6.332 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001566/0.4588, allocations: 15.91 kB / 494.2 MB, free: 6.316 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.205e-05/0.4588, allocations: 12.28 kB / 494.2 MB, free: 6.305 MB / 362.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,greaterEqual.y,stateGraphRoot.activeSteps,$PRE.transition2.t_start,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002198/0.4591, allocations: 174.3 kB / 494.4 MB, free: 6.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.603e-05/0.4591, allocations: 15.81 kB / 494.4 MB, free: 6.109 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004711/0.4596, allocations: 190.3 kB / 494.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.521e-06/0.4596, allocations: 0 / 494.6 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.123e-06/0.4596, allocations: 4 kB / 494.6 MB, free: 5.91 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4596, allocations: 3.938 kB / 494.6 MB, free: 5.906 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001051/0.4607, allocations: 0.587 MB / 495.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.386e-06/0.4607, allocations: 0 / 495.2 MB, free: 5.258 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001057/0.4608, allocations: 23.98 kB / 495.2 MB, free: 5.234 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.772e-06/0.4608, allocations: 3.938 kB / 495.2 MB, free: 5.23 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.1e-05/0.4609, allocations: 8 kB / 495.2 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.209e-06/0.4609, allocations: 0 / 495.2 MB, free: 5.223 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.744e-06/0.4609, allocations: 3.938 kB / 495.2 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004718/0.4614, allocations: 288.5 kB / 495.5 MB, free: 4.918 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.528e-05/0.4615, allocations: 96.84 kB / 495.6 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.156e-05/0.4615, allocations: 11.94 kB / 495.6 MB, free: 4.793 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001373/0.4617, allocations: 8 kB / 495.6 MB, free: 4.785 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.351e-05/0.4618, allocations: 23.95 kB / 495.7 MB, free: 4.762 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.789e-05/0.4618, allocations: 8 kB / 495.7 MB, free: 4.754 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000118/0.4619, allocations: 98.5 kB / 495.8 MB, free: 4.66 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4619, allocations: 0 / 495.8 MB, free: 4.66 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000513/0.4625, allocations: 48 kB / 495.8 MB, free: 4.613 MB / 362.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,greaterEqual.y,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 (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.0002019/0.4627, allocations: 111.2 kB / 495.9 MB, free: 4.496 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004793/0.4632, allocations: 187.9 kB / 496.1 MB, free: 4.312 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.826e-06/0.4632, allocations: 0.5625 kB / 496.1 MB, free: 4.312 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002037/0.4634, allocations: 91.84 kB / 496.2 MB, free: 4.223 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004506/0.4639, allocations: 28.69 kB / 496.2 MB, free: 4.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009245/0.4648, allocations: 396.3 kB / 496.6 MB, free: 3.781 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003843/0.4652, allocations: 0.7404 MB / 497.3 MB, free: 3.016 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001397/0.4653, allocations: 21.89 kB / 497.4 MB, free: 2.996 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.603e-05/0.4654, allocations: 23.42 kB / 497.4 MB, free: 2.973 MB / 362.7 MB Notification: Performance of SimCode: time 2.9e-07/0.4654, allocations: 0 / 497.4 MB, free: 2.973 MB / 362.7 MB Notification: Performance of Templates: time 0.007063/0.4725, allocations: 1.687 MB / 499.1 MB, free: 1.297 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches