Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001192/0.001192, allocations: 197 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.353/1.353, allocations: 226.6 MB / 244.7 MB, free: 6.355 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008172/0.0008172, allocations: 96.97 kB / 296.8 MB, free: 6.625 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002565/0.0002566, allocations: 8 kB / 356.7 MB, free: 10.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2552/0.2555, allocations: 51.29 MB / 408 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001475/0.257, allocations: 1.417 MB / 409.4 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005763/0.2576, allocations: 313.3 kB / 409.8 MB, free: 25.93 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000107/0.2577, allocations: 4 kB / 409.8 MB, free: 25.92 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001373/0.2579, allocations: 19.8 kB / 409.8 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.396e-05/0.2579, allocations: 11.86 kB / 409.8 MB, free: 25.89 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003573/0.2583, allocations: 95.89 kB / 409.9 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002479/0.2586, allocations: 236.6 kB / 410.1 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002732/0.2588, allocations: 153.7 kB / 410.3 MB, free: 25.42 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.699e-05/0.2589, allocations: 80.34 kB / 410.3 MB, free: 25.34 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.259, allocations: 73.38 kB / 410.4 MB, free: 25.27 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.816e-05/0.2591, allocations: 12 kB / 410.4 MB, free: 25.26 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.975e-05/0.2592, allocations: 15.98 kB / 410.4 MB, free: 25.24 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.602e-05/0.2592, allocations: 43.89 kB / 410.5 MB, free: 25.2 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.192e-05/0.2593, allocations: 109.2 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.2595, allocations: 148.3 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.414e-06/0.2595, allocations: 0 / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.943e-06/0.2595, allocations: 0.5312 kB / 410.7 MB, free: 24.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2595, allocations: 0.8125 kB / 410.7 MB, free: 24.94 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.0005296/0.2601, allocations: 458.6 kB / 411.2 MB, free: 24.44 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.2601, allocations: 8.031 kB / 411.2 MB, free: 24.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.285e-05/0.2602, allocations: 24.66 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001897/0.2604, allocations: 240 kB / 411.4 MB, free: 24.14 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.901e-05/0.2604, allocations: 24.94 kB / 411.5 MB, free: 24.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.442e-05/0.2604, allocations: 28.38 kB / 411.5 MB, free: 24.08 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003649/0.2608, allocations: 278.3 kB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.2608, allocations: 192 / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.244e-05/0.2609, allocations: 15.94 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.283e-06/0.2609, allocations: 4 kB / 411.8 MB, free: 23.78 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000248/0.2611, allocations: 165.6 kB / 412 MB, free: 23.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008902/0.262, allocations: 0.9761 MB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.2623, allocations: 165.5 kB / 413.1 MB, free: 22.39 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.697e-05/0.2624, allocations: 85.56 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.191e-05/0.2624, allocations: 4 kB / 413.2 MB, free: 22.3 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001879/0.2626, allocations: 142 kB / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.453e-06/0.2626, allocations: 0 / 413.3 MB, free: 22.14 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003572/0.263, allocations: 225.9 kB / 413.5 MB, free: 21.92 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.17e-05/0.263, allocations: 89.03 kB / 413.6 MB, free: 21.81 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.259e-05/0.2631, allocations: 157.4 kB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.2631, allocations: 41.81 kB / 413.8 MB, free: 21.61 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.127e-05/0.2632, allocations: 140.5 kB / 414 MB, free: 21.46 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.485e-05/0.2632, allocations: 55.36 kB / 414 MB, free: 21.41 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.156e-05/0.2632, allocations: 4 kB / 414 MB, free: 21.41 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.339e-05/0.2633, allocations: 334.8 kB / 414.3 MB, free: 21.07 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.81e-05/0.2634, allocations: 59.97 kB / 414.4 MB, free: 21.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001206/0.2635, allocations: 144.3 kB / 414.5 MB, free: 20.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.2637, allocations: 181 kB / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2638, allocations: 0 / 414.7 MB, free: 20.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002944/0.2641, allocations: 253.4 kB / 415 MB, free: 20.38 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.283e-05/0.2641, allocations: 12 kB / 415 MB, free: 20.37 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.2641, allocations: 4 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.726e-05/0.2641, allocations: 4 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.2642, allocations: 31.92 kB / 415 MB, free: 20.33 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.765e-06/0.2643, allocations: 4 kB / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.121e-05/0.2644, allocations: 31.67 kB / 415.1 MB, free: 20.29 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.5e-05/0.2644, allocations: 16 kB / 415.1 MB, free: 20.28 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: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$whenCondition2,$whenCondition1,initialStep.active,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,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.condition,transition2.enableFire,$PRE.timer.entryTime,timer.entryTime,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.0001045/0.2645, allocations: 170.3 kB / 415.2 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.871e-05/0.2645, allocations: 11.81 kB / 415.2 MB, free: 20.09 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002695/0.2648, allocations: 186.3 kB / 415.4 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.2648, allocations: 4 kB / 415.4 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2648, allocations: 0 / 415.4 MB, free: 19.9 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.22e-06/0.2648, allocations: 3.984 kB / 415.4 MB, free: 19.89 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005454/0.2654, allocations: 0.5986 MB / 416 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2654, allocations: 7.984 kB / 416 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.505e-05/0.2655, allocations: 23.94 kB / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2655, allocations: 3.938 kB / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.306e-05/0.2655, allocations: 0 / 416.1 MB, free: 19.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.417e-06/0.2655, allocations: 7.984 kB / 416.1 MB, free: 19.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.2655, allocations: 3.938 kB / 416.1 MB, free: 19.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002248/0.2657, allocations: 288.5 kB / 416.4 MB, free: 18.88 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.418e-05/0.2658, allocations: 92.95 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.765e-05/0.2658, allocations: 7.938 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.931e-05/0.2659, allocations: 11.98 kB / 416.5 MB, free: 18.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.518e-05/0.266, allocations: 19.97 kB / 416.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.366e-05/0.266, allocations: 8 kB / 416.5 MB, free: 18.73 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.449e-05/0.2661, allocations: 95.27 kB / 416.6 MB, free: 18.63 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2661, allocations: 0 / 416.6 MB, free: 18.63 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002629/0.2663, allocations: 51.84 kB / 416.6 MB, free: 18.58 MB / 298.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,transition1.enableFire,step.localActive,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: 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.0001198/0.2665, allocations: 115.1 kB / 416.8 MB, free: 18.46 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002633/0.2667, allocations: 183.9 kB / 416.9 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.2667, allocations: 0 / 416.9 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001087/0.2668, allocations: 83.91 kB / 417 MB, free: 18.2 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000265/0.2671, allocations: 26.95 kB / 417 MB, free: 18.18 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004886/0.2676, allocations: 429.3 kB / 417.5 MB, free: 17.72 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001517/0.2678, allocations: 0.7363 MB / 418.2 MB, free: 16.96 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.431e-05/0.2678, allocations: 27.42 kB / 418.2 MB, free: 16.93 MB / 298.7 MB Notification: Performance of SimCode: time 4.81e-07/0.2678, allocations: 0 / 418.2 MB, free: 16.93 MB / 298.7 MB Notification: Performance of Templates: time 0.003318/0.2712, allocations: 2.377 MB / 420.6 MB, free: 14.56 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches