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.001267/0.001267, allocations: 187 kB / 17.92 MB, free: 3.855 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.297/1.297, allocations: 205.1 MB / 223.7 MB, free: 8.48 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.001027/0.001027, allocations: 106.2 kB / 271.2 MB, free: 8.438 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008397/0.0008397, allocations: 39.94 kB / 327.2 MB, free: 344 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2428/0.2437, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002929/0.2467, allocations: 1.751 MB / 375.6 MB, free: 44.41 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.000631/0.2473, allocations: 282.3 kB / 375.8 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.2474, allocations: 3.906 kB / 375.8 MB, free: 44.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.2476, allocations: 19.14 kB / 375.9 MB, free: 44.2 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.896e-05/0.2476, allocations: 17.06 kB / 375.9 MB, free: 44.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003142/0.248, allocations: 95.19 kB / 376 MB, free: 44.11 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000284/0.2483, allocations: 256.4 kB / 376.2 MB, free: 43.96 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002564/0.2485, allocations: 186.6 kB / 376.4 MB, free: 43.84 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.147e-05/0.2486, allocations: 80.7 kB / 376.5 MB, free: 43.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001109/0.2487, allocations: 99.03 kB / 376.6 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.955e-05/0.2488, allocations: 15.88 kB / 376.6 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.19e-05/0.2488, allocations: 19.44 kB / 376.6 MB, free: 43.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.002e-05/0.2489, allocations: 53.16 kB / 376.7 MB, free: 43.68 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.043e-05/0.249, allocations: 94.59 kB / 376.8 MB, free: 43.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.2492, allocations: 218.7 kB / 377 MB, free: 43.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.002e-06/0.2492, allocations: 5.188 kB / 377 MB, free: 43.43 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.183e-06/0.2492, allocations: 0 / 377 MB, free: 43.43 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.2492, allocations: 0 / 377 MB, free: 43.43 MB / 298.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.0005806/0.2498, allocations: 493.7 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.949e-05/0.2499, allocations: 9.531 kB / 377.5 MB, free: 42.96 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.587e-05/0.2499, allocations: 24.31 kB / 377.5 MB, free: 42.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.2502, allocations: 235.6 kB / 377.7 MB, free: 42.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.519e-05/0.2502, allocations: 21.59 kB / 377.7 MB, free: 42.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.094e-05/0.2502, allocations: 26 kB / 377.8 MB, free: 42.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003968/0.2506, allocations: 271.5 kB / 378 MB, free: 42.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.477e-05/0.2507, allocations: 5.125 kB / 378 MB, free: 42.48 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.2507, allocations: 18.14 kB / 378.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.608e-06/0.2507, allocations: 6.156 kB / 378.1 MB, free: 42.47 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.251, allocations: 162.1 kB / 378.2 MB, free: 42.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009452/0.252, allocations: 0.9772 MB / 379.2 MB, free: 41.49 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002396/0.2522, allocations: 149 kB / 379.3 MB, free: 41.41 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001012/0.2523, allocations: 81.67 kB / 379.4 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.366e-05/0.2523, allocations: 6.75 kB / 379.4 MB, free: 41.36 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001899/0.2525, allocations: 109.7 kB / 379.5 MB, free: 41.27 MB / 298.7 MB Notification: Performance of pre-optimization done (n=23): time 1.482e-06/0.2526, allocations: 0 / 379.5 MB, free: 41.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003853/0.2529, allocations: 214.1 kB / 379.7 MB, free: 41.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.917e-05/0.253, allocations: 55.16 kB / 379.8 MB, free: 41.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.74e-05/0.2531, allocations: 160.5 kB / 380 MB, free: 40.96 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.447e-05/0.2531, allocations: 37.89 kB / 380 MB, free: 40.92 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.258e-05/0.2532, allocations: 143.5 kB / 380.1 MB, free: 40.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.798e-05/0.2532, allocations: 63.47 kB / 380.2 MB, free: 40.73 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.009e-05/0.2533, allocations: 81.44 kB / 380.3 MB, free: 40.68 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.356e-05/0.2534, allocations: 330.5 kB / 380.6 MB, free: 40.35 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000108/0.2535, allocations: 62.5 kB / 380.7 MB, free: 40.32 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001359/0.2537, allocations: 138.3 kB / 380.8 MB, free: 40.2 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002116/0.2539, allocations: 189 kB / 381 MB, free: 40.05 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.096e-06/0.2539, allocations: 4.906 kB / 381 MB, free: 40.05 MB / 298.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003259/0.2542, allocations: 250.5 kB / 381.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.2542, allocations: 7.062 kB / 381.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.882e-06/0.2542, allocations: 6.438 kB / 381.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.772e-05/0.2543, allocations: 3.531 kB / 381.2 MB, free: 39.91 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001316/0.2544, allocations: 35.14 kB / 381.3 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.308e-06/0.2544, allocations: 3.438 kB / 381.3 MB, free: 39.9 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.917e-05/0.2545, allocations: 32.02 kB / 381.3 MB, free: 39.88 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.838e-05/0.2546, allocations: 17.36 kB / 381.3 MB, free: 39.87 MB / 298.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.condition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,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 (40): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.942e-05/0.2547, allocations: 154.4 kB / 381.5 MB, free: 39.72 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.283e-05/0.2547, allocations: 18.33 kB / 381.5 MB, free: 39.71 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002946/0.255, allocations: 198.1 kB / 381.7 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.255, allocations: 2.188 kB / 381.7 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.459e-06/0.255, allocations: 4.891 kB / 381.7 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.255, allocations: 0 / 381.7 MB, free: 39.59 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000569/0.2556, allocations: 0.5912 MB / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2556, allocations: 0 / 382.3 MB, free: 39.08 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.72e-05/0.2557, allocations: 23.11 kB / 382.3 MB, free: 39.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.2557, allocations: 9.188 kB / 382.3 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.2557, allocations: 1.375 kB / 382.3 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.434e-06/0.2557, allocations: 1.344 kB / 382.3 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.212e-06/0.2557, allocations: 0 / 382.3 MB, free: 39.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004426/0.2562, allocations: 0.879 MB / 383.2 MB, free: 38.25 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.712e-05/0.2562, allocations: 97.23 kB / 383.3 MB, free: 38.14 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.2562, allocations: 10.05 kB / 383.3 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.976e-05/0.2563, allocations: 6.906 kB / 383.3 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.985e-05/0.2564, allocations: 25.56 kB / 383.3 MB, free: 38.11 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.474e-05/0.2564, allocations: 4.844 kB / 383.3 MB, free: 38.11 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.897e-05/0.2565, allocations: 99.86 kB / 383.4 MB, free: 38.03 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2565, allocations: 0 / 383.4 MB, free: 38.03 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003894/0.2569, allocations: 51.75 kB / 383.5 MB, free: 38.01 MB / 298.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.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.condition,transition2.enableFire,timer.entryTime,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 (25): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001415/0.257, allocations: 120.3 kB / 383.6 MB, free: 37.9 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003182/0.2574, allocations: 184.3 kB / 383.8 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-06/0.2574, allocations: 0 / 383.8 MB, free: 37.83 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001291/0.2575, allocations: 85.58 kB / 383.9 MB, free: 37.79 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002636/0.2578, allocations: 24.61 kB / 383.9 MB, free: 37.78 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006923/0.2585, allocations: 0.585 MB / 384.5 MB, free: 37.28 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001732/0.2587, allocations: 0.7444 MB / 385.2 MB, free: 36.56 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.006e-05/0.2587, allocations: 27.16 kB / 385.2 MB, free: 36.55 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.397e-05/0.2588, allocations: 19.44 kB / 385.3 MB, free: 36.54 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2588, allocations: 0 / 385.3 MB, free: 36.54 MB / 298.7 MB Notification: Performance of Templates: time 0.004378/0.2632, allocations: 1.817 MB / 387.1 MB, free: 35.64 MB / 298.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@2/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