Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_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_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001306/0.001306, allocations: 195.3 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.404/1.404, allocations: 226.5 MB / 244.7 MB, free: 6.457 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008164/0.0008162, allocations: 95.72 kB / 296.8 MB, free: 6.672 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002669/0.0002672, allocations: 8 kB / 356.7 MB, free: 10.7 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2602/0.2605, allocations: 51.3 MB / 408 MB, free: 27.69 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.001466/0.262, allocations: 1.386 MB / 409.4 MB, free: 26.29 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004985/0.2625, allocations: 303.2 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.857e-05/0.2626, allocations: 4 kB / 409.7 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001014/0.2627, allocations: 23.73 kB / 409.7 MB, free: 25.97 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.134e-05/0.2628, allocations: 17.23 kB / 409.8 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003115/0.2631, allocations: 95.89 kB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002168/0.2633, allocations: 239.5 kB / 410.1 MB, free: 25.62 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002361/0.2636, allocations: 160.2 kB / 410.2 MB, free: 25.46 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.701e-05/0.2637, allocations: 73.55 kB / 410.3 MB, free: 25.39 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.072e-05/0.2638, allocations: 71.62 kB / 410.4 MB, free: 25.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.2638, allocations: 12 kB / 410.4 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.672e-05/0.2639, allocations: 15.98 kB / 410.4 MB, free: 25.29 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.504e-05/0.2639, allocations: 47.83 kB / 410.5 MB, free: 25.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.995e-05/0.264, allocations: 106.1 kB / 410.6 MB, free: 25.14 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000148/0.2641, allocations: 159.6 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.2641, allocations: 0.9688 kB / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.274e-06/0.2642, allocations: 0 / 410.7 MB, free: 24.98 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.899e-06/0.2642, allocations: 3.938 kB / 410.7 MB, free: 24.98 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.0005015/0.2647, allocations: 461.5 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.283e-05/0.2647, allocations: 8.031 kB / 411.2 MB, free: 24.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.121e-05/0.2648, allocations: 20.75 kB / 411.2 MB, free: 24.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001863/0.265, allocations: 232.6 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.405e-05/0.265, allocations: 25.56 kB / 411.5 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.998e-05/0.265, allocations: 28.38 kB / 411.5 MB, free: 24.13 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003501/0.2654, allocations: 275.9 kB / 411.8 MB, free: 23.85 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.2654, allocations: 7.875 kB / 411.8 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.2655, allocations: 8 kB / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.552e-06/0.2655, allocations: 4 kB / 411.8 MB, free: 23.83 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000251/0.2657, allocations: 165.6 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008816/0.2666, allocations: 0.9828 MB / 412.9 MB, free: 22.62 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002308/0.2669, allocations: 173.3 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.739e-05/0.267, allocations: 77.69 kB / 413.2 MB, free: 22.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.136e-05/0.267, allocations: 4 kB / 413.2 MB, free: 22.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001976/0.2672, allocations: 138.1 kB / 413.3 MB, free: 22.19 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.244e-06/0.2672, allocations: 0 / 413.3 MB, free: 22.19 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003654/0.2676, allocations: 229.8 kB / 413.5 MB, free: 21.96 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.408e-05/0.2676, allocations: 85.05 kB / 413.6 MB, free: 21.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.371e-05/0.2677, allocations: 157.6 kB / 413.8 MB, free: 21.7 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.293e-05/0.2677, allocations: 41.81 kB / 413.8 MB, free: 21.65 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.095e-05/0.2678, allocations: 140.5 kB / 413.9 MB, free: 21.51 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.2678, allocations: 63.19 kB / 414 MB, free: 21.45 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.159e-05/0.2679, allocations: 4 kB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.446e-05/0.2679, allocations: 334.8 kB / 414.3 MB, free: 21.11 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.555e-05/0.268, allocations: 63.97 kB / 414.4 MB, free: 21.04 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001204/0.2682, allocations: 144.3 kB / 414.5 MB, free: 20.87 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002026/0.2684, allocations: 181 kB / 414.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.2684, allocations: 0 / 414.7 MB, free: 20.66 MB / 298.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002986/0.2687, allocations: 261.4 kB / 415 MB, free: 20.4 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.2687, allocations: 8 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.111e-06/0.2687, allocations: 4 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.406e-05/0.2687, allocations: 4 kB / 415 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001223/0.2689, allocations: 31.92 kB / 415 MB, free: 20.36 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.167e-06/0.2689, allocations: 4 kB / 415 MB, free: 20.35 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.538e-05/0.269, allocations: 27.83 kB / 415 MB, free: 20.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.495e-05/0.269, allocations: 12 kB / 415.1 MB, free: 20.31 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.0001067/0.2691, allocations: 170.3 kB / 415.2 MB, free: 20.14 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.983e-05/0.2691, allocations: 15.81 kB / 415.2 MB, free: 20.12 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002748/0.2694, allocations: 190.3 kB / 415.4 MB, free: 19.93 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.767e-06/0.2694, allocations: 7.984 kB / 415.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.2694, allocations: 0 / 415.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.2694, allocations: 3.984 kB / 415.4 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005392/0.27, allocations: 0.5947 MB / 416 MB, free: 19.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.27, allocations: 4 kB / 416 MB, free: 19.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.579e-05/0.2701, allocations: 15.94 kB / 416.1 MB, free: 19.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.456e-06/0.2701, allocations: 11.88 kB / 416.1 MB, free: 19.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.2701, allocations: 7.984 kB / 416.1 MB, free: 19.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2701, allocations: 4 kB / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.2701, allocations: 0 / 416.1 MB, free: 19.21 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002306/0.2704, allocations: 284.5 kB / 416.4 MB, free: 18.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.465e-05/0.2704, allocations: 92.89 kB / 416.4 MB, free: 18.81 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.358e-05/0.2704, allocations: 4 kB / 416.4 MB, free: 18.8 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.2705, allocations: 15.92 kB / 416.5 MB, free: 18.79 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.053e-05/0.2706, allocations: 23.97 kB / 416.5 MB, free: 18.77 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.261e-05/0.2706, allocations: 4 kB / 416.5 MB, free: 18.76 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.951e-05/0.2706, allocations: 101 kB / 416.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2706, allocations: 0 / 416.6 MB, free: 18.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002709/0.2709, allocations: 55.75 kB / 416.6 MB, free: 18.61 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,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: 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.0001134/0.271, allocations: 111.2 kB / 416.8 MB, free: 18.49 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002629/0.2713, allocations: 195.8 kB / 416.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2713, allocations: 0 / 416.9 MB, free: 18.3 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001066/0.2714, allocations: 79.91 kB / 417 MB, free: 18.22 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000267/0.2717, allocations: 30.94 kB / 417.1 MB, free: 18.2 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004915/0.2722, allocations: 429.5 kB / 417.5 MB, free: 17.74 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001464/0.2724, allocations: 0.7326 MB / 418.2 MB, free: 16.98 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.473e-05/0.2724, allocations: 23.42 kB / 418.2 MB, free: 16.96 MB / 298.7 MB Notification: Performance of SimCode: time 6.11e-07/0.2724, allocations: 4 kB / 418.2 MB, free: 16.96 MB / 298.7 MB Notification: Performance of Templates: time 0.003481/0.2759, allocations: 2.388 MB / 420.6 MB, free: 14.58 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2 --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_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_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches