Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009138/0.0009138, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.347/1.347, allocations: 221.5 MB / 230.3 MB, free: 7.559 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.00111/0.00111, allocations: 93.25 kB / 281.2 MB, free: 5.324 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.283e-05/2.285e-05, allocations: 4 kB / 337 MB, free: 10.04 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.106, allocations: 50.41 MB / 387.4 MB, free: 7.59 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.334/0.44, allocations: 75.34 MB / 462.8 MB, free: 3.555 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002234/0.4402, allocations: 63.97 kB / 462.8 MB, free: 3.492 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007096/0.4474, allocations: 2.852 MB / 465.7 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.305e-06/0.4474, allocations: 0 / 465.7 MB, free: 0.6172 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.494e-05/0.4474, allocations: 4 kB / 465.7 MB, free: 0.6133 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005632/0.448, allocations: 439.5 kB / 466.1 MB, free: 144 kB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.576e-05/0.4481, allocations: 12.03 kB / 466.1 MB, free: 132 kB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.403e-05/0.4481, allocations: 23.75 kB / 466.2 MB, free: 108 kB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002643/0.4484, allocations: 218.8 kB / 466.4 MB, free: 15.85 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.772e-05/0.4484, allocations: 8 kB / 466.4 MB, free: 15.84 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.401e-05/0.4485, allocations: 16 kB / 466.4 MB, free: 15.83 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002769/0.4488, allocations: 149 kB / 466.5 MB, free: 15.68 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003391/0.4491, allocations: 210.3 kB / 466.7 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.077e-05/0.4491, allocations: 3.938 kB / 466.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.106e-05/0.4492, allocations: 0 / 466.8 MB, free: 15.46 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.909e-06/0.4492, allocations: 4 kB / 466.8 MB, free: 15.45 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000962/0.4501, allocations: 0.6428 MB / 467.4 MB, free: 14.77 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002666/0.4504, allocations: 151.2 kB / 467.5 MB, free: 14.61 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/0.4505, allocations: 73.23 kB / 467.6 MB, free: 14.54 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.619e-05/0.4506, allocations: 4.188 kB / 467.6 MB, free: 14.53 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001881/0.4508, allocations: 106.2 kB / 467.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 1.383e-06/0.4508, allocations: 0 / 467.7 MB, free: 14.42 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002966/0.4511, allocations: 149.3 kB / 467.9 MB, free: 14.27 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.479e-05/0.4511, allocations: 63.33 kB / 467.9 MB, free: 14.19 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001089/0.4512, allocations: 133.8 kB / 468.1 MB, free: 14.05 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.395e-05/0.4513, allocations: 29.7 kB / 468.1 MB, free: 14.02 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.913e-05/0.4514, allocations: 136.4 kB / 468.2 MB, free: 13.88 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.52e-05/0.4514, allocations: 51.27 kB / 468.3 MB, free: 13.83 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.337e-06/0.4514, allocations: 0 / 468.3 MB, free: 13.83 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001251/0.4516, allocations: 334.8 kB / 468.6 MB, free: 13.49 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.868e-05/0.4517, allocations: 52.66 kB / 468.7 MB, free: 13.44 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001335/0.4518, allocations: 115.8 kB / 468.8 MB, free: 13.3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.63e-05/0.4519, allocations: 59.95 kB / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.4519, allocations: 0 / 468.8 MB, free: 13.24 MB / 346.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000301/0.4522, allocations: 209.2 kB / 469 MB, free: 13.03 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.4523, allocations: 9.25 kB / 469 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.453e-06/0.4523, allocations: 0 / 469 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.555e-05/0.4523, allocations: 7.938 kB / 469 MB, free: 13.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001315/0.4524, allocations: 27.92 kB / 469.1 MB, free: 12.99 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.4524, allocations: 4 kB / 469.1 MB, free: 12.98 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.619e-05/0.4525, allocations: 15.88 kB / 469.1 MB, free: 12.97 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.963e-05/0.4526, allocations: 20.2 kB / 469.1 MB, free: 12.95 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($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,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 39 * 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.0001074/0.4527, allocations: 128 kB / 469.2 MB, free: 12.82 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.3e-05/0.4527, allocations: 11.81 kB / 469.3 MB, free: 12.8 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003102/0.453, allocations: 178.2 kB / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.453, allocations: 0 / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.758e-06/0.4531, allocations: 0 / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.711e-05/0.4531, allocations: 7.984 kB / 469.4 MB, free: 12.62 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006652/0.4537, allocations: 0.4952 MB / 469.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.4538, allocations: 0 / 469.9 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.003e-05/0.4539, allocations: 19.98 kB / 469.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.755e-06/0.4539, allocations: 0 / 469.9 MB, free: 12.06 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.379e-05/0.4539, allocations: 4 kB / 470 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.4539, allocations: 0 / 470 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.358e-06/0.4539, allocations: 4 kB / 470 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002808/0.4542, allocations: 271.1 kB / 470.2 MB, free: 11.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.019e-05/0.4542, allocations: 92.86 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.337e-05/0.4543, allocations: 0 / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.4544, allocations: 4 kB / 470.3 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.4544, allocations: 27.95 kB / 470.3 MB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.4545, allocations: 4 kB / 470.3 MB, free: 11.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.339e-05/0.4545, allocations: 98.02 kB / 470.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.4545, allocations: 4 kB / 470.4 MB, free: 11.53 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0002628/0.4548, allocations: 32 kB / 470.5 MB, free: 11.5 MB / 346.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 (transition2.enableFire,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,step.active,transition2.fire,transition2.t_start,stateGraphRoot.activeSteps) * Number of discrete states: 2 (initialStep.newActive,step.newActive) * Top-level inputs: 0 Notification: Strong component statistics for simulation (26): * Single equations (assignments): 22 * 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.0001541/0.4549, allocations: 107.1 kB / 470.6 MB, free: 11.38 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002636/0.4552, allocations: 156.5 kB / 470.7 MB, free: 11.23 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.523e-06/0.4552, allocations: 3.938 kB / 470.7 MB, free: 11.22 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001111/0.4553, allocations: 79.86 kB / 470.8 MB, free: 11.14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000188/0.4555, allocations: 16.39 kB / 470.8 MB, free: 11.13 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004246/0.456, allocations: 229.3 kB / 471.1 MB, free: 10.89 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003162/0.4563, allocations: 0.7323 MB / 471.8 MB, free: 10.13 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 7.875e-05/0.4564, allocations: 26.06 kB / 471.8 MB, free: 10.11 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.325e-05/0.4565, allocations: 23.38 kB / 471.8 MB, free: 10.08 MB / 346.7 MB Notification: Performance of SimCode: time 2.5e-07/0.4565, allocations: 0 / 471.8 MB, free: 10.08 MB / 346.7 MB Notification: Performance of Templates: time 0.004157/0.4606, allocations: 1.621 MB / 473.5 MB, free: 8.473 MB / 346.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches