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.001669/0.00167, allocations: 179.9 kB / 16.38 MB, free: 5.766 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.416/1.416, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.0009491/0.0009491, allocations: 99.42 kB / 291.5 MB, free: 10.91 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002692/0.0002694, allocations: 7.938 kB / 351.1 MB, free: 15.33 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2972/0.2974, allocations: 50.4 MB / 401.5 MB, free: 32.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.108/0.4055, allocations: 76.69 MB / 478.2 MB, free: 3.809 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002443/0.4058, allocations: 70.47 kB / 478.2 MB, free: 3.742 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008826/0.4147, allocations: 3.08 MB / 481.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.506e-06/0.4148, allocations: 0 / 481.3 MB, free: 0.6367 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.4148, allocations: 4 kB / 481.3 MB, free: 0.6328 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: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0008417/0.4157, allocations: 456.7 kB / 481.8 MB, free: 148 kB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.841e-05/0.4157, allocations: 8.469 kB / 481.8 MB, free: 140 kB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.561e-05/0.4158, allocations: 23.81 kB / 481.8 MB, free: 116 kB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004239/0.4162, allocations: 230.7 kB / 482 MB, free: 15.85 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.543e-05/0.4163, allocations: 20.56 kB / 482 MB, free: 15.82 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.158e-05/0.4164, allocations: 28 kB / 482.1 MB, free: 15.8 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006027/0.417, allocations: 277.9 kB / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.53e-05/0.417, allocations: 0 / 482.3 MB, free: 15.51 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.694e-05/0.4171, allocations: 12 kB / 482.4 MB, free: 15.5 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.22e-05/0.4171, allocations: 4 kB / 482.4 MB, free: 15.49 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003634/0.4175, allocations: 169.5 kB / 482.5 MB, free: 15.33 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001403/0.4189, allocations: 0.9636 MB / 483.5 MB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003615/0.4193, allocations: 174 kB / 483.7 MB, free: 14.11 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.201e-05/0.4193, allocations: 4.188 kB / 483.7 MB, free: 14.1 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002391/0.4195, allocations: 138.2 kB / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.903e-06/0.4195, allocations: 0 / 483.8 MB, free: 13.95 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004488/0.42, allocations: 238.1 kB / 484 MB, free: 13.71 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.643e-05/0.4201, allocations: 81.11 kB / 484.1 MB, free: 13.62 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001302/0.4202, allocations: 148.1 kB / 484.2 MB, free: 13.47 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.464e-05/0.4202, allocations: 37.7 kB / 484.3 MB, free: 13.43 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.745e-05/0.4204, allocations: 144.5 kB / 484.4 MB, free: 13.28 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.708e-05/0.4204, allocations: 55.25 kB / 484.5 MB, free: 13.23 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.283e-05/0.4204, allocations: 11.94 kB / 484.5 MB, free: 13.21 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.4206, allocations: 322.8 kB / 484.8 MB, free: 12.89 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000111/0.4207, allocations: 67.97 kB / 484.9 MB, free: 12.82 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000159/0.4208, allocations: 144.5 kB / 485 MB, free: 12.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001277/0.421, allocations: 68.47 kB / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.421, allocations: 0 / 485.1 MB, free: 12.59 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.000352/0.4213, allocations: 249.2 kB / 485.3 MB, free: 12.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.009e-05/0.4214, allocations: 8 kB / 485.3 MB, free: 12.33 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.928e-06/0.4214, allocations: 4 kB / 485.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.4214, allocations: 4 kB / 485.3 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001548/0.4216, allocations: 40.12 kB / 485.4 MB, free: 12.28 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.107e-05/0.4216, allocations: 11.95 kB / 485.4 MB, free: 12.27 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001093/0.4217, allocations: 15.91 kB / 485.4 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.191e-05/0.4218, allocations: 12 kB / 485.4 MB, free: 12.24 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.0001728/0.4219, allocations: 162.4 kB / 485.6 MB, free: 12.07 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.537e-05/0.422, allocations: 11.91 kB / 485.6 MB, free: 12.06 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000378/0.4223, allocations: 198.3 kB / 485.8 MB, free: 11.86 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.4224, allocations: 8 kB / 485.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.946e-06/0.4224, allocations: 0 / 485.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.4224, allocations: 3.953 kB / 485.8 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008578/0.4233, allocations: 0.5843 MB / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.4233, allocations: 0 / 486.4 MB, free: 11.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.2e-05/0.4234, allocations: 15.98 kB / 486.4 MB, free: 11.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.4234, allocations: 4 kB / 486.4 MB, free: 11.18 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.938e-05/0.4234, allocations: 11.95 kB / 486.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.314e-06/0.4234, allocations: 4 kB / 486.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.164e-06/0.4234, allocations: 0 / 486.4 MB, free: 11.17 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003248/0.4237, allocations: 299 kB / 486.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.881e-05/0.4238, allocations: 92.91 kB / 486.8 MB, free: 10.74 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.139e-05/0.4238, allocations: 15.92 kB / 486.8 MB, free: 10.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.905e-05/0.4239, allocations: 12 kB / 486.8 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.075e-05/0.424, allocations: 19.97 kB / 486.8 MB, free: 10.7 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.965e-05/0.4241, allocations: 11.98 kB / 486.9 MB, free: 10.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 5.949e-05/0.4241, allocations: 99.2 kB / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4241, allocations: 0 / 487 MB, free: 10.59 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002957/0.4244, allocations: 44 kB / 487 MB, free: 10.54 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.0001652/0.4246, allocations: 111.2 kB / 487.1 MB, free: 10.43 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000329/0.4249, allocations: 187.7 kB / 487.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.425, allocations: 0 / 487.3 MB, free: 10.24 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001343/0.4251, allocations: 83.84 kB / 487.4 MB, free: 10.16 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002138/0.4253, allocations: 18.92 kB / 487.4 MB, free: 10.14 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006657/0.426, allocations: 404.4 kB / 487.8 MB, free: 9.719 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003371/0.4263, allocations: 0.7406 MB / 488.5 MB, free: 8.953 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.609e-05/0.4264, allocations: 21.95 kB / 488.5 MB, free: 8.934 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.22e-05/0.4265, allocations: 23.42 kB / 488.6 MB, free: 8.91 MB / 362.7 MB Notification: Performance of SimCode: time 2.41e-07/0.4265, allocations: 4 kB / 488.6 MB, free: 8.906 MB / 362.7 MB Notification: Performance of Templates: time 0.004842/0.4314, allocations: 1.677 MB / 490.2 MB, free: 7.242 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/jenkins/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