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.00146/0.00146, allocations: 175.4 kB / 17.4 MB, free: 4.422 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.668/1.668, allocations: 223.3 MB / 241.4 MB, free: 9.859 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009287/0.0009281, allocations: 107.4 kB / 292.6 MB, free: 10.55 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003255/0.0003255, allocations: 12 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2826, allocations: 50.4 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09914/0.3818, allocations: 76.73 MB / 479.5 MB, free: 3.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002208/0.3821, allocations: 63.97 kB / 479.5 MB, free: 3.539 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00797/0.3901, allocations: 3.074 MB / 482.6 MB, free: 456 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.865e-06/0.3901, allocations: 0 / 482.6 MB, free: 456 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.681e-05/0.3902, allocations: 4 kB / 482.6 MB, free: 452 kB / 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.0006203/0.3908, allocations: 445 kB / 483 MB, free: 15.96 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.058e-05/0.3908, allocations: 8.031 kB / 483 MB, free: 15.95 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.17e-05/0.3909, allocations: 25.09 kB / 483.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002698/0.3912, allocations: 228 kB / 483.3 MB, free: 15.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.3912, allocations: 20.94 kB / 483.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.103e-05/0.3913, allocations: 28.38 kB / 483.3 MB, free: 15.61 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004436/0.3917, allocations: 278.5 kB / 483.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.3918, allocations: 192 / 483.6 MB, free: 15.32 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.975e-05/0.3918, allocations: 15.94 kB / 483.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.446e-06/0.3918, allocations: 4 kB / 483.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003016/0.3921, allocations: 165.6 kB / 483.8 MB, free: 15.14 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001163/0.3933, allocations: 0.9634 MB / 484.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000298/0.3936, allocations: 176.6 kB / 484.9 MB, free: 13.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000122/0.3937, allocations: 81.62 kB / 485 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.3938, allocations: 4 kB / 485 MB, free: 13.84 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002036/0.394, allocations: 138.1 kB / 485.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.352e-06/0.394, allocations: 0 / 485.1 MB, free: 13.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004541/0.3944, allocations: 226.5 kB / 485.4 MB, free: 13.46 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.56e-05/0.3945, allocations: 85.11 kB / 485.5 MB, free: 13.36 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001212/0.3946, allocations: 152.5 kB / 485.6 MB, free: 13.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.061e-05/0.3947, allocations: 41.83 kB / 485.6 MB, free: 13.15 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.442e-05/0.3948, allocations: 140.5 kB / 485.8 MB, free: 13.01 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.375e-05/0.3949, allocations: 59.25 kB / 485.8 MB, free: 12.95 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.384e-05/0.3949, allocations: 11.94 kB / 485.9 MB, free: 12.94 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001393/0.395, allocations: 330.7 kB / 486.2 MB, free: 12.61 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.3951, allocations: 63.95 kB / 486.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001723/0.3953, allocations: 140.5 kB / 486.4 MB, free: 12.38 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002617/0.3956, allocations: 196.9 kB / 486.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3956, allocations: 0 / 486.6 MB, free: 12.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003624/0.396, allocations: 257.4 kB / 486.8 MB, free: 11.9 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.594e-05/0.396, allocations: 4 kB / 486.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.444e-06/0.396, allocations: 4 kB / 486.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.439e-05/0.396, allocations: 4 kB / 486.8 MB, free: 11.89 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001406/0.3962, allocations: 31.92 kB / 486.9 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.3962, allocations: 4 kB / 486.9 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.499e-05/0.3963, allocations: 19.84 kB / 486.9 MB, free: 11.83 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.545e-05/0.3963, allocations: 19.98 kB / 486.9 MB, free: 11.81 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,SetBoolean1.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.0001684/0.3965, allocations: 162.4 kB / 487.1 MB, free: 11.64 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.447e-05/0.3965, allocations: 11.91 kB / 487.1 MB, free: 11.63 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000364/0.3969, allocations: 194.3 kB / 487.3 MB, free: 11.44 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.181e-06/0.3969, allocations: 4 kB / 487.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.78e-06/0.3969, allocations: 0 / 487.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.751e-06/0.397, allocations: 0 / 487.3 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007843/0.3977, allocations: 0.5885 MB / 487.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.3978, allocations: 0 / 487.9 MB, free: 10.79 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.325e-05/0.3978, allocations: 19.92 kB / 487.9 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.3978, allocations: 3.938 kB / 487.9 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.669e-05/0.3979, allocations: 8 kB / 487.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.074e-06/0.3979, allocations: 0 / 487.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.3979, allocations: 0 / 487.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003199/0.3982, allocations: 288.6 kB / 488.2 MB, free: 10.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.794e-05/0.3983, allocations: 96.84 kB / 488.3 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.3983, allocations: 7.938 kB / 488.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.536e-05/0.3984, allocations: 4 kB / 488.3 MB, free: 10.33 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.062e-05/0.3985, allocations: 27.95 kB / 488.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.614e-05/0.3985, allocations: 8 kB / 488.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.233e-05/0.3986, allocations: 103.1 kB / 488.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.3986, allocations: 0 / 488.4 MB, free: 10.19 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002859/0.3989, allocations: 47.98 kB / 488.5 MB, free: 10.14 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,SetBoolean1.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.0001632/0.3991, allocations: 107.8 kB / 488.6 MB, free: 10.03 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003166/0.3994, allocations: 187.7 kB / 488.7 MB, free: 9.844 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/0.3994, allocations: 4 kB / 488.7 MB, free: 9.84 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001288/0.3995, allocations: 79.91 kB / 488.8 MB, free: 9.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00029/0.3998, allocations: 20.61 kB / 488.8 MB, free: 9.742 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006447/0.4005, allocations: 399.7 kB / 489.2 MB, free: 9.324 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.4009, allocations: 0.7365 MB / 490 MB, free: 8.562 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 9.385e-05/0.401, allocations: 25.94 kB / 490 MB, free: 8.535 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.497e-05/0.401, allocations: 27.38 kB / 490 MB, free: 8.508 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.401, allocations: 0 / 490 MB, free: 8.508 MB / 362.7 MB Notification: Performance of Templates: time 0.004666/0.4057, allocations: 1.677 MB / 491.7 MB, free: 6.844 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/jenkins1/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