Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001066/0.001066, 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.183/1.183, 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.001049/0.001049, allocations: 106 kB / 271.2 MB, free: 8.43 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000814/0.0008141, allocations: 39.94 kB / 327.2 MB, free: 348 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2459/0.2467, allocations: 46.62 MB / 373.8 MB, free: 45.64 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002617/0.2494, allocations: 1.562 MB / 375.4 MB, free: 44.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005584/0.2499, allocations: 269 kB / 375.6 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.294e-05/0.25, allocations: 3.844 kB / 375.6 MB, free: 44.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001211/0.2502, allocations: 16.52 kB / 375.6 MB, free: 44.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.09e-05/0.2502, allocations: 18.7 kB / 375.7 MB, free: 44.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003159/0.2505, allocations: 93.56 kB / 375.8 MB, free: 44.27 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002708/0.2508, allocations: 245.1 kB / 376 MB, free: 44.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002589/0.2511, allocations: 148.1 kB / 376.1 MB, free: 44.04 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.483e-05/0.2512, allocations: 82.61 kB / 376.2 MB, free: 43.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001108/0.2513, allocations: 91.41 kB / 376.3 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.765e-05/0.2513, allocations: 14.34 kB / 376.3 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.083e-05/0.2514, allocations: 18.53 kB / 376.3 MB, free: 43.92 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.48e-05/0.2515, allocations: 49.48 kB / 376.4 MB, free: 43.88 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.284e-05/0.2516, allocations: 88.67 kB / 376.5 MB, free: 43.81 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002019/0.2518, allocations: 206.5 kB / 376.7 MB, free: 43.65 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.2518, allocations: 9.031 kB / 376.7 MB, free: 43.64 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.62e-07/0.2518, allocations: 4 kB / 376.7 MB, free: 43.64 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.579e-06/0.2518, allocations: 0 / 376.7 MB, free: 43.64 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005563/0.2524, allocations: 480.8 kB / 377.2 MB, free: 43.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.17e-05/0.2524, allocations: 10.22 kB / 377.2 MB, free: 43.18 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.397e-05/0.2525, allocations: 27.97 kB / 377.2 MB, free: 43.16 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.2527, allocations: 222.5 kB / 377.4 MB, free: 42.93 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.656e-05/0.2527, allocations: 19.72 kB / 377.4 MB, free: 42.92 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.994e-05/0.2528, allocations: 29.83 kB / 377.5 MB, free: 42.91 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000382/0.2532, allocations: 246.3 kB / 377.7 MB, free: 42.74 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.218e-05/0.2532, allocations: 4.172 kB / 377.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.256e-05/0.2532, allocations: 10.12 kB / 377.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.078e-05/0.2532, allocations: 5.406 kB / 377.7 MB, free: 42.73 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.2535, allocations: 155.3 kB / 377.9 MB, free: 42.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008295/0.2544, allocations: 0.7079 MB / 378.6 MB, free: 42.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002719/0.2546, allocations: 169.2 kB / 378.8 MB, free: 41.93 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.2548, allocations: 84.33 kB / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.06e-05/0.2548, allocations: 6.766 kB / 378.8 MB, free: 41.88 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001813/0.255, allocations: 122.7 kB / 379 MB, free: 41.78 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.255, allocations: 0 / 379 MB, free: 41.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004086/0.2554, allocations: 218 kB / 379.2 MB, free: 41.67 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.012e-05/0.2555, allocations: 59.41 kB / 379.2 MB, free: 41.6 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.038e-05/0.2556, allocations: 144.6 kB / 379.4 MB, free: 41.47 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.182e-05/0.2556, allocations: 42.08 kB / 379.4 MB, free: 41.43 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.441e-05/0.2556, allocations: 125.7 kB / 379.5 MB, free: 41.31 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.614e-05/0.2557, allocations: 64.83 kB / 379.6 MB, free: 41.25 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.223e-05/0.2558, allocations: 74.62 kB / 379.7 MB, free: 41.2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.083e-05/0.2558, allocations: 331.5 kB / 380 MB, free: 40.88 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001047/0.2559, allocations: 61.94 kB / 380.1 MB, free: 40.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001262/0.2561, allocations: 132.4 kB / 380.2 MB, free: 40.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001988/0.2563, allocations: 174 kB / 380.4 MB, free: 40.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.606e-06/0.2563, allocations: 1.406 kB / 380.4 MB, free: 40.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003076/0.2566, allocations: 246 kB / 380.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.685e-05/0.2566, allocations: 5.75 kB / 380.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.692e-06/0.2566, allocations: 3 kB / 380.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2567, allocations: 3.562 kB / 380.6 MB, free: 40.48 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001202/0.2568, allocations: 34.86 kB / 380.6 MB, free: 40.46 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.001e-05/0.2568, allocations: 7.656 kB / 380.7 MB, free: 40.46 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.075e-05/0.2569, allocations: 19.75 kB / 380.7 MB, free: 40.45 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.156e-05/0.2569, allocations: 16.77 kB / 380.7 MB, free: 40.44 MB / 298.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,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.994e-05/0.257, allocations: 155.4 kB / 380.8 MB, free: 40.29 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.145e-05/0.2571, allocations: 16.91 kB / 380.9 MB, free: 40.28 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003073/0.2574, allocations: 196.5 kB / 381 MB, free: 40.17 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.136e-06/0.2574, allocations: 7.375 kB / 381.1 MB, free: 40.17 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.088e-06/0.2574, allocations: 0 / 381.1 MB, free: 40.17 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2574, allocations: 5.219 kB / 381.1 MB, free: 40.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005823/0.258, allocations: 0.5693 MB / 381.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.258, allocations: 0 / 381.6 MB, free: 39.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.283e-05/0.2581, allocations: 28.58 kB / 381.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.895e-06/0.2581, allocations: 1.156 kB / 381.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.337e-05/0.2581, allocations: 1 kB / 381.7 MB, free: 39.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.076e-06/0.2581, allocations: 6.531 kB / 381.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.2581, allocations: 3.938 kB / 381.7 MB, free: 39.66 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005086/0.2586, allocations: 0.8861 MB / 382.6 MB, free: 38.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.881e-05/0.2587, allocations: 96.69 kB / 382.6 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.215e-05/0.2587, allocations: 6.438 kB / 382.7 MB, free: 38.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.061e-05/0.2588, allocations: 11.41 kB / 382.7 MB, free: 38.72 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.921e-05/0.2589, allocations: 26.84 kB / 382.7 MB, free: 38.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.39e-05/0.2589, allocations: 9.141 kB / 382.7 MB, free: 38.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.884e-05/0.2589, allocations: 96.09 kB / 382.8 MB, free: 38.62 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.259, allocations: 1.906 kB / 382.8 MB, free: 38.62 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003962/0.2594, allocations: 48.7 kB / 382.8 MB, free: 38.61 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 (transition2.enableFire,step.localActive,transition1.enableFire,initialStep.localActive,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.active,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.active,step.newActive,step.oldActive,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 (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.0001328/0.2595, allocations: 114.1 kB / 383 MB, free: 38.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003169/0.2598, allocations: 176.6 kB / 383.1 MB, free: 38.43 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2598, allocations: 0 / 383.1 MB, free: 38.43 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001466/0.26, allocations: 84.72 kB / 383.2 MB, free: 38.4 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000284/0.2603, allocations: 41.59 kB / 383.3 MB, free: 38.37 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007179/0.261, allocations: 0.578 MB / 383.8 MB, free: 37.88 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002194/0.2612, allocations: 0.7395 MB / 384.6 MB, free: 37.16 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.667e-05/0.2613, allocations: 22.91 kB / 384.6 MB, free: 37.15 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.135e-05/0.2614, allocations: 25.22 kB / 384.6 MB, free: 37.14 MB / 298.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2614, allocations: 0 / 384.6 MB, free: 37.14 MB / 298.7 MB Notification: Performance of Templates: time 0.005122/0.2665, allocations: 1.821 MB / 386.4 MB, free: 36.24 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches