Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/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_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001528/0.001528, allocations: 172.5 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.52/1.52, allocations: 205.2 MB / 219.8 MB, free: 14.26 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008693/0.0008698, allocations: 82.69 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.131e-05/3.135e-05, allocations: 0 / 322.4 MB, free: 17.37 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1105, allocations: 47.58 MB / 370 MB, free: 1.727 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3782/0.4888, allocations: 75.7 MB / 445.7 MB, free: 1.57 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002709/0.4891, allocations: 63.28 kB / 445.8 MB, free: 1.539 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007693/0.4968, allocations: 2.993 MB / 448.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.292e-06/0.4968, allocations: 0 / 448.8 MB, free: 14.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.388e-05/0.4969, allocations: 12 kB / 448.8 MB, free: 14.94 MB / 330.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.0005578/0.4974, allocations: 448.8 kB / 449.2 MB, free: 14.47 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.4975, allocations: 8.031 kB / 449.2 MB, free: 14.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.525e-05/0.4975, allocations: 23.72 kB / 449.3 MB, free: 14.44 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002727/0.4978, allocations: 228.5 kB / 449.5 MB, free: 14.19 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.788e-05/0.4979, allocations: 23.12 kB / 449.5 MB, free: 14.18 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.297e-05/0.4979, allocations: 27.44 kB / 449.5 MB, free: 14.16 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004163/0.4983, allocations: 265.2 kB / 449.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.4984, allocations: 0 / 449.8 MB, free: 13.95 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.854e-05/0.4984, allocations: 14.36 kB / 449.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.777e-06/0.4984, allocations: 4 kB / 449.8 MB, free: 13.94 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002718/0.4987, allocations: 166.3 kB / 450 MB, free: 13.83 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001035/0.4997, allocations: 0.956 MB / 450.9 MB, free: 12.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002455/0.5, allocations: 155.2 kB / 451.1 MB, free: 12.81 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000105/0.5001, allocations: 69.48 kB / 451.1 MB, free: 12.77 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.165e-05/0.5001, allocations: 7.438 kB / 451.1 MB, free: 12.76 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001745/0.5003, allocations: 117.5 kB / 451.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of pre-optimization done (n=23): time 1.633e-06/0.5003, allocations: 0 / 451.3 MB, free: 12.66 MB / 330.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003124/0.5006, allocations: 162.7 kB / 451.4 MB, free: 12.52 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.448e-05/0.5007, allocations: 55.39 kB / 451.5 MB, free: 12.45 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001246/0.5008, allocations: 149.6 kB / 451.6 MB, free: 12.32 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.577e-05/0.5009, allocations: 36.39 kB / 451.7 MB, free: 12.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.501, allocations: 147.8 kB / 451.8 MB, free: 12.14 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.073e-05/0.5011, allocations: 52.84 kB / 451.8 MB, free: 12.1 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.076e-05/0.5011, allocations: 7.188 kB / 451.9 MB, free: 12.1 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001389/0.5012, allocations: 328.3 kB / 452.2 MB, free: 11.78 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001094/0.5014, allocations: 59.53 kB / 452.2 MB, free: 11.73 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001665/0.5015, allocations: 132.4 kB / 452.4 MB, free: 11.6 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001132/0.5016, allocations: 69.22 kB / 452.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.848e-06/0.5017, allocations: 4 kB / 452.4 MB, free: 11.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003422/0.502, allocations: 252.3 kB / 452.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.546e-05/0.502, allocations: 4 kB / 452.7 MB, free: 11.34 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.115e-06/0.502, allocations: 4 kB / 452.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.802e-05/0.5021, allocations: 4 kB / 452.7 MB, free: 11.33 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.5022, allocations: 34.73 kB / 452.7 MB, free: 11.3 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.184e-05/0.5022, allocations: 4 kB / 452.7 MB, free: 11.29 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.178e-05/0.5023, allocations: 22.73 kB / 452.8 MB, free: 11.28 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.072e-05/0.5024, allocations: 19.06 kB / 452.8 MB, free: 11.26 MB / 330.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: 30 ($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,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 40 * 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.0001067/0.5025, allocations: 129.9 kB / 452.9 MB, free: 11.14 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.536e-05/0.5025, allocations: 19.77 kB / 452.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003045/0.5028, allocations: 187.7 kB / 453.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.465e-06/0.5028, allocations: 0 / 453.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.13e-06/0.5029, allocations: 0 / 453.1 MB, free: 10.98 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.5029, allocations: 7.984 kB / 453.1 MB, free: 10.97 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006315/0.5035, allocations: 0.5829 MB / 453.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.532e-06/0.5035, allocations: 0 / 453.7 MB, free: 10.41 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.114e-05/0.5036, allocations: 15.98 kB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.5036, allocations: 0 / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.568e-05/0.5036, allocations: 7.875 kB / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.5036, allocations: 0 / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.5036, allocations: 0 / 453.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002617/0.5039, allocations: 276.7 kB / 454 MB, free: 10.14 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.292e-05/0.504, allocations: 92.86 kB / 454.1 MB, free: 10.03 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.51e-05/0.504, allocations: 7.562 kB / 454.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.435e-05/0.5041, allocations: 11.92 kB / 454.1 MB, free: 10.02 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.563e-05/0.5042, allocations: 19.84 kB / 454.1 MB, free: 10 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.562e-05/0.5042, allocations: 15.94 kB / 454.1 MB, free: 9.984 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.487e-05/0.5042, allocations: 107.6 kB / 454.2 MB, free: 9.887 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.5042, allocations: 4 kB / 454.2 MB, free: 9.883 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002524/0.5045, allocations: 39.75 kB / 454.3 MB, free: 9.852 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 19 (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: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.000148/0.5047, allocations: 114.9 kB / 454.4 MB, free: 9.73 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002639/0.5049, allocations: 174.4 kB / 454.6 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.5049, allocations: 0 / 454.6 MB, free: 9.602 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.5051, allocations: 78.8 kB / 454.6 MB, free: 9.543 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001924/0.5053, allocations: 23.89 kB / 454.7 MB, free: 9.527 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004397/0.5058, allocations: 237.8 kB / 454.9 MB, free: 9.309 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002799/0.5061, allocations: 0.74 MB / 455.6 MB, free: 8.547 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 9.139e-05/0.5062, allocations: 30.06 kB / 455.7 MB, free: 8.516 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.777e-05/0.5062, allocations: 19.44 kB / 455.7 MB, free: 8.496 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5062, allocations: 0 / 455.7 MB, free: 8.496 MB / 330.7 MB Notification: Performance of Templates: time 0.004673/0.5109, allocations: 1.663 MB / 457.3 MB, free: 6.848 MB / 330.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches