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.0009873/0.0009874, allocations: 180.7 kB / 16.38 MB, free: 5.762 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.405/1.405, allocations: 223.2 MB / 240.3 MB, free: 11.86 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.0009356/0.0009348, allocations: 98.86 kB / 291.5 MB, free: 10.9 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.000257, allocations: 4 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2726/0.2729, allocations: 50.42 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1013/0.3742, allocations: 76.06 MB / 477.5 MB, free: 4.422 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002662/0.3745, allocations: 65.25 kB / 477.6 MB, free: 4.359 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007489/0.382, allocations: 2.914 MB / 480.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.614e-06/0.3821, allocations: 0 / 480.5 MB, free: 1.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.3821, allocations: 8 kB / 480.5 MB, free: 1.414 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0006014/0.3827, allocations: 435.8 kB / 481 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.903e-05/0.3828, allocations: 12.03 kB / 481 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.595e-05/0.3828, allocations: 28.14 kB / 481 MB, free: 0.9023 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002447/0.3831, allocations: 222.8 kB / 481.2 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.035e-05/0.3831, allocations: 24.55 kB / 481.2 MB, free: 0.6172 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.885e-05/0.3832, allocations: 28 kB / 481.3 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004044/0.3836, allocations: 243.4 kB / 481.5 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.3836, allocations: 0 / 481.5 MB, free: 352 kB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.305e-05/0.3836, allocations: 4 kB / 481.5 MB, free: 348 kB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.606e-06/0.3837, allocations: 8 kB / 481.5 MB, free: 340 kB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.3839, allocations: 161.6 kB / 481.7 MB, free: 180 kB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001056/0.385, allocations: 0.6899 MB / 482.4 MB, free: 15.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003006/0.3853, allocations: 175.3 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.374e-05/0.3854, allocations: 4.188 kB / 482.5 MB, free: 15.24 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002108/0.3856, allocations: 114 kB / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.613e-06/0.3856, allocations: 0 / 482.6 MB, free: 15.12 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004917/0.3861, allocations: 220.9 kB / 482.9 MB, free: 14.9 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3861, allocations: 59.41 kB / 482.9 MB, free: 14.83 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001219/0.3863, allocations: 137 kB / 483.1 MB, free: 14.69 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.388e-05/0.3863, allocations: 37.7 kB / 483.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.359e-05/0.3864, allocations: 120.7 kB / 483.2 MB, free: 14.52 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.462e-05/0.3865, allocations: 59.25 kB / 483.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.058e-05/0.3865, allocations: 4 kB / 483.3 MB, free: 14.46 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001695/0.3867, allocations: 338.8 kB / 483.6 MB, free: 14.12 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001227/0.3868, allocations: 64.62 kB / 483.7 MB, free: 14.05 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001919/0.387, allocations: 136 kB / 483.8 MB, free: 13.9 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001355/0.3872, allocations: 68.47 kB / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.3872, allocations: 0 / 483.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003638/0.3875, allocations: 237.3 kB / 484.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.116e-05/0.3876, allocations: 4 kB / 484.1 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.556e-06/0.3876, allocations: 8.156 kB / 484.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.249e-05/0.3876, allocations: 8 kB / 484.1 MB, free: 13.57 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001265/0.3877, allocations: 23.92 kB / 484.1 MB, free: 13.55 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.008e-05/0.3878, allocations: 7.984 kB / 484.1 MB, free: 13.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.25e-05/0.3879, allocations: 23.84 kB / 484.2 MB, free: 13.52 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.09e-05/0.3879, allocations: 15.94 kB / 484.2 MB, free: 13.5 MB / 362.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 () * Number of clocked 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.0001571/0.3881, allocations: 161.7 kB / 484.3 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.28e-05/0.3881, allocations: 7.906 kB / 484.4 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003516/0.3884, allocations: 202.2 kB / 484.6 MB, free: 13.13 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.3885, allocations: 4 kB / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.764e-06/0.3885, allocations: 3.984 kB / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.242e-06/0.3885, allocations: 0 / 484.6 MB, free: 13.12 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000713/0.3892, allocations: 0.5576 MB / 485.1 MB, free: 12.51 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3892, allocations: 4 kB / 485.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.583e-05/0.3893, allocations: 20 kB / 485.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.594e-06/0.3893, allocations: 0 / 485.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.663e-05/0.3893, allocations: 7.984 kB / 485.1 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.3893, allocations: 4 kB / 485.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.445e-06/0.3894, allocations: 3.953 kB / 485.2 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002905/0.3896, allocations: 284.4 kB / 485.4 MB, free: 12.18 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.744e-05/0.3897, allocations: 88.95 kB / 485.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.3897, allocations: 4 kB / 485.5 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.072e-05/0.3898, allocations: 11.98 kB / 485.5 MB, free: 12.05 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.557e-05/0.3899, allocations: 23.97 kB / 485.6 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.68e-05/0.3899, allocations: 11.95 kB / 485.6 MB, free: 12.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.723e-05/0.39, allocations: 100.3 kB / 485.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.39, allocations: 0 / 485.7 MB, free: 11.92 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002728/0.3903, allocations: 43.94 kB / 485.7 MB, free: 11.88 MB / 362.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) * Number of clocked states: 0 () * 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.0001861/0.3905, allocations: 115.2 kB / 485.8 MB, free: 11.75 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003184/0.3908, allocations: 179.8 kB / 486 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.563e-06/0.3908, allocations: 0 / 486 MB, free: 11.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000124/0.3909, allocations: 83.91 kB / 486.1 MB, free: 11.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001964/0.3912, allocations: 15.98 kB / 486.1 MB, free: 11.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006245/0.3918, allocations: 375.4 kB / 486.5 MB, free: 11.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003062/0.3921, allocations: 0.7367 MB / 487.2 MB, free: 10.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.026e-05/0.3922, allocations: 21.95 kB / 487.2 MB, free: 10.3 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.149e-05/0.3923, allocations: 27.42 kB / 487.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.3923, allocations: 0 / 487.2 MB, free: 10.28 MB / 362.7 MB Notification: Performance of Templates: time 0.004644/0.3969, allocations: 1.655 MB / 488.9 MB, free: 8.637 MB / 362.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