Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009399/0.0009399, allocations: 171 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.449/1.449, allocations: 223.3 MB / 241.4 MB, free: 9.875 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.0008415/0.0008414, allocations: 105.1 kB / 292.6 MB, free: 10.54 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003531/0.0003533, allocations: 8 kB / 352.3 MB, free: 14.82 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2706/0.271, allocations: 50.41 MB / 402.7 MB, free: 32.44 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3712, allocations: 76.72 MB / 479.4 MB, free: 3.613 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002506/0.3715, allocations: 67.97 kB / 479.5 MB, free: 3.547 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008149/0.3797, allocations: 3.079 MB / 482.6 MB, free: 456 kB / 346.7 MB Notification: Performance of FrontEnd: time 2.765e-06/0.3798, allocations: 4 kB / 482.6 MB, free: 452 kB / 346.7 MB Notification: Performance of Transformations before backend: time 1.366e-05/0.3798, allocations: 4 kB / 482.6 MB, free: 448 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.0006163/0.3804, allocations: 452.8 kB / 483 MB, free: 15.95 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.3805, allocations: 16.41 kB / 483.1 MB, free: 15.93 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.432e-05/0.3805, allocations: 20.75 kB / 483.1 MB, free: 15.91 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003052/0.3809, allocations: 224.1 kB / 483.3 MB, free: 15.65 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.083e-05/0.3809, allocations: 24.94 kB / 483.3 MB, free: 15.62 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.542e-05/0.381, allocations: 36.3 kB / 483.4 MB, free: 15.59 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004845/0.3815, allocations: 266.6 kB / 483.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.45e-05/0.3815, allocations: 4.188 kB / 483.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.71e-05/0.3815, allocations: 7.938 kB / 483.6 MB, free: 15.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.3815, allocations: 8 kB / 483.6 MB, free: 15.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003194/0.3819, allocations: 169.6 kB / 483.8 MB, free: 15.13 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001248/0.3831, allocations: 0.9711 MB / 484.8 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002963/0.3834, allocations: 168.8 kB / 484.9 MB, free: 13.91 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000125/0.3836, allocations: 81.62 kB / 485 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3836, allocations: 8 kB / 485 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002243/0.3838, allocations: 139.4 kB / 485.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.603e-06/0.3838, allocations: 0 / 485.2 MB, free: 13.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004532/0.3843, allocations: 228.8 kB / 485.4 MB, free: 13.44 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3844, allocations: 85.09 kB / 485.5 MB, free: 13.34 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001154/0.3845, allocations: 152.4 kB / 485.6 MB, free: 13.18 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.3845, allocations: 41.64 kB / 485.7 MB, free: 13.13 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.478e-05/0.3846, allocations: 144.5 kB / 485.8 MB, free: 12.99 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.417e-05/0.3847, allocations: 67.17 kB / 485.9 MB, free: 12.92 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.259e-05/0.3847, allocations: 8 kB / 485.9 MB, free: 12.91 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000151/0.3849, allocations: 330.8 kB / 486.2 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001107/0.385, allocations: 59.97 kB / 486.3 MB, free: 12.52 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001554/0.3851, allocations: 140.5 kB / 486.4 MB, free: 12.36 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002498/0.3854, allocations: 189 kB / 486.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.3854, allocations: 4 kB / 486.6 MB, free: 12.14 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003641/0.3858, allocations: 253.3 kB / 486.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.3858, allocations: 8 kB / 486.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3858, allocations: 0 / 486.8 MB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.3858, allocations: 4 kB / 486.8 MB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001398/0.386, allocations: 35.92 kB / 486.9 MB, free: 11.84 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.179e-05/0.386, allocations: 11.92 kB / 486.9 MB, free: 11.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.841e-05/0.3861, allocations: 15.91 kB / 486.9 MB, free: 11.81 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.173e-05/0.3861, allocations: 16 kB / 486.9 MB, free: 11.79 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,greaterEqual.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.0001488/0.3863, allocations: 166.4 kB / 487.1 MB, free: 11.62 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.368e-05/0.3863, allocations: 19.75 kB / 487.1 MB, free: 11.6 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003558/0.3867, allocations: 190.4 kB / 487.3 MB, free: 11.41 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.621e-06/0.3867, allocations: 4 kB / 487.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.3867, allocations: 0 / 487.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.988e-06/0.3867, allocations: 3.984 kB / 487.3 MB, free: 11.4 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000743/0.3875, allocations: 0.5846 MB / 487.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.3875, allocations: 0 / 487.9 MB, free: 10.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.513e-05/0.3876, allocations: 23.92 kB / 487.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.859e-06/0.3876, allocations: 3.938 kB / 487.9 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.47e-05/0.3876, allocations: 4 kB / 487.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.924e-06/0.3876, allocations: 0 / 487.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3876, allocations: 0 / 487.9 MB, free: 10.72 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003225/0.388, allocations: 292.5 kB / 488.2 MB, free: 10.42 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.771e-05/0.388, allocations: 92.86 kB / 488.3 MB, free: 10.31 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.079e-05/0.3881, allocations: 11.94 kB / 488.3 MB, free: 10.3 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.095e-05/0.3882, allocations: 11.98 kB / 488.3 MB, free: 10.29 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.253e-05/0.3883, allocations: 19.91 kB / 488.3 MB, free: 10.27 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.774e-05/0.3883, allocations: 15.94 kB / 488.3 MB, free: 10.25 MB / 362.7 MB Notification: Performance of sorting global known variables: time 6.187e-05/0.3883, allocations: 99.25 kB / 488.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3884, allocations: 0 / 488.4 MB, free: 10.15 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000287/0.3886, allocations: 48 kB / 488.5 MB, free: 10.11 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,greaterEqual.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.0001906/0.3888, allocations: 111.2 kB / 488.6 MB, free: 9.988 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003152/0.3892, allocations: 187.7 kB / 488.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.3892, allocations: 0 / 488.8 MB, free: 9.805 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001274/0.3893, allocations: 79.92 kB / 488.9 MB, free: 9.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002903/0.3896, allocations: 24.61 kB / 488.9 MB, free: 9.703 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006485/0.3903, allocations: 408.2 kB / 489.3 MB, free: 9.273 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003027/0.3906, allocations: 0.7404 MB / 490 MB, free: 8.508 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.105e-05/0.3907, allocations: 21.94 kB / 490 MB, free: 8.488 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.389e-05/0.3907, allocations: 23.44 kB / 490.1 MB, free: 8.465 MB / 362.7 MB Notification: Performance of SimCode: time 2.3e-07/0.3907, allocations: 0 / 490.1 MB, free: 8.465 MB / 362.7 MB Notification: Performance of Templates: time 0.004704/0.3954, allocations: 1.702 MB / 491.8 MB, free: 6.781 MB / 362.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches