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.00122/0.00122, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.566/1.566, allocations: 225.4 MB / 240.1 MB, free: 15.06 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009239/0.0009239, allocations: 85.81 kB / 292.1 MB, free: 6.031 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.851e-05/2.873e-05, allocations: 7.984 kB / 350.5 MB, free: 2.551 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 51.48 MB / 402 MB, free: 15.02 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3265/0.4322, allocations: 77.41 MB / 479.4 MB, free: 12.02 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001715/0.4324, allocations: 67.58 kB / 479.5 MB, free: 11.98 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006748/0.4392, allocations: 3.075 MB / 482.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.593e-06/0.4392, allocations: 0 / 482.6 MB, free: 9.355 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.4393, allocations: 6.062 kB / 482.6 MB, free: 9.352 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.000418/0.4397, allocations: 438.4 kB / 483 MB, free: 8.902 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.4397, allocations: 12.03 kB / 483 MB, free: 8.891 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.359e-05/0.4398, allocations: 23.72 kB / 483 MB, free: 8.867 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.44, allocations: 231.4 kB / 483.3 MB, free: 8.625 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.978e-05/0.44, allocations: 22 kB / 483.3 MB, free: 8.613 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.289e-05/0.4401, allocations: 24.25 kB / 483.3 MB, free: 8.598 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000362/0.4404, allocations: 271.1 kB / 483.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.07e-05/0.4405, allocations: 0 / 483.6 MB, free: 8.383 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.504e-05/0.4405, allocations: 10.88 kB / 483.6 MB, free: 8.379 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.887e-06/0.4405, allocations: 9.359 kB / 483.6 MB, free: 8.371 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002392/0.4408, allocations: 156.3 kB / 483.7 MB, free: 8.266 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008589/0.4416, allocations: 0.9694 MB / 484.7 MB, free: 7.363 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002212/0.4419, allocations: 174.5 kB / 484.9 MB, free: 7.219 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.461e-05/0.442, allocations: 83.44 kB / 485 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.972e-05/0.442, allocations: 192 / 485 MB, free: 7.16 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000177/0.4422, allocations: 144.9 kB / 485.1 MB, free: 7.031 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.424e-06/0.4422, allocations: 2.906 kB / 485.1 MB, free: 7.031 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002801/0.4425, allocations: 160.7 kB / 485.3 MB, free: 6.898 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.952e-05/0.4425, allocations: 88.78 kB / 485.3 MB, free: 6.797 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.441e-05/0.4426, allocations: 137.8 kB / 485.5 MB, free: 6.672 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.295e-05/0.4426, allocations: 40.89 kB / 485.5 MB, free: 6.633 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.189e-05/0.4427, allocations: 139.1 kB / 485.7 MB, free: 6.504 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.505e-05/0.4427, allocations: 66.17 kB / 485.7 MB, free: 6.449 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.03e-05/0.4428, allocations: 11.16 kB / 485.7 MB, free: 6.445 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.078e-05/0.4428, allocations: 322.6 kB / 486.1 MB, free: 6.125 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.165e-05/0.4429, allocations: 61.44 kB / 486.1 MB, free: 6.086 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001112/0.443, allocations: 133.3 kB / 486.2 MB, free: 5.953 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001032/0.4431, allocations: 66.22 kB / 486.3 MB, free: 5.906 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.196e-06/0.4431, allocations: 0 / 486.3 MB, free: 5.906 MB / 346.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000296/0.4434, allocations: 265.5 kB / 486.6 MB, free: 5.691 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.4435, allocations: 4 kB / 486.6 MB, free: 5.688 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.4435, allocations: 4 kB / 486.6 MB, free: 5.684 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.4435, allocations: 4 kB / 486.6 MB, free: 5.68 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001276/0.4436, allocations: 35.61 kB / 486.6 MB, free: 5.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.967e-06/0.4436, allocations: 4 kB / 486.6 MB, free: 5.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.006e-05/0.4437, allocations: 20.42 kB / 486.6 MB, free: 5.629 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.503e-05/0.4438, allocations: 15.06 kB / 486.6 MB, free: 5.617 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,greaterEqual.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 6.801e-05/0.4439, allocations: 138.2 kB / 486.8 MB, free: 5.484 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.977e-05/0.4439, allocations: 15.77 kB / 486.8 MB, free: 5.469 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002652/0.4441, allocations: 185.3 kB / 487 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.4442, allocations: 4 kB / 487 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.879e-06/0.4442, allocations: 0.625 kB / 487 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.64e-06/0.4442, allocations: 3.984 kB / 487 MB, free: 5.324 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005278/0.4447, allocations: 0.5966 MB / 487.6 MB, free: 4.754 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.4447, allocations: 4 kB / 487.6 MB, free: 4.75 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.705e-05/0.4448, allocations: 17.62 kB / 487.6 MB, free: 4.738 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.4448, allocations: 4 kB / 487.6 MB, free: 4.734 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.397e-05/0.4448, allocations: 3.984 kB / 487.6 MB, free: 4.73 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.4448, allocations: 4 kB / 487.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.4448, allocations: 0 / 487.6 MB, free: 4.727 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002269/0.4451, allocations: 295 kB / 487.9 MB, free: 4.449 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.61e-05/0.4451, allocations: 92.36 kB / 488 MB, free: 4.344 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.557e-05/0.4451, allocations: 7.188 kB / 488 MB, free: 4.34 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.378e-05/0.4452, allocations: 12.39 kB / 488 MB, free: 4.328 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.257e-05/0.4453, allocations: 25.86 kB / 488 MB, free: 4.309 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.412e-05/0.4453, allocations: 11.44 kB / 488.1 MB, free: 4.301 MB / 346.7 MB Notification: Performance of sorting global known variables: time 3.527e-05/0.4454, allocations: 102.3 kB / 488.2 MB, free: 4.207 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4454, allocations: 0 / 488.2 MB, free: 4.207 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002604/0.4456, allocations: 41.56 kB / 488.2 MB, free: 4.172 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,greaterEqual.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.000126/0.4458, allocations: 105.5 kB / 488.3 MB, free: 4.062 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002572/0.446, allocations: 187.5 kB / 488.5 MB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.446, allocations: 4.188 kB / 488.5 MB, free: 3.918 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001245/0.4462, allocations: 81.61 kB / 488.6 MB, free: 3.859 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001934/0.4464, allocations: 21.67 kB / 488.6 MB, free: 3.844 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000392/0.4468, allocations: 253.3 kB / 488.8 MB, free: 3.609 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001395/0.4469, allocations: 0.7444 MB / 489.6 MB, free: 2.84 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.372e-05/0.447, allocations: 18.7 kB / 489.6 MB, free: 2.824 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.4471, allocations: 23.42 kB / 489.6 MB, free: 2.801 MB / 346.7 MB Notification: Performance of SimCode: time 4e-07/0.4471, allocations: 4 kB / 489.6 MB, free: 2.797 MB / 346.7 MB Notification: Performance of Templates: time 0.003973/0.451, allocations: 1.684 MB / 491.3 MB, free: 1.176 MB / 346.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/jenkins/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