Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001133/0.001133, allocations: 195.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.318/1.318, allocations: 226.6 MB / 244.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007335/0.0007332, allocations: 105.4 kB / 296.4 MB, free: 6.992 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002474/0.0002474, allocations: 7.984 kB / 356.2 MB, free: 11.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2579/0.2581, allocations: 51.29 MB / 407.5 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001836/0.26, allocations: 1.201 MB / 408.7 MB, free: 26.64 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007171/0.2608, allocations: 303.1 kB / 409 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001611/0.261, allocations: 7.938 kB / 409 MB, free: 26.34 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00013/0.2611, allocations: 15.86 kB / 409 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.371e-05/0.2612, allocations: 7.875 kB / 409 MB, free: 26.32 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004603/0.2616, allocations: 88.44 kB / 409.1 MB, free: 26.23 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002878/0.2619, allocations: 220.4 kB / 409.3 MB, free: 26.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000288/0.2622, allocations: 148.7 kB / 409.5 MB, free: 25.87 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001067/0.2624, allocations: 64.62 kB / 409.5 MB, free: 25.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001202/0.2625, allocations: 67.67 kB / 409.6 MB, free: 25.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.181e-05/0.2625, allocations: 12.69 kB / 409.6 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.815e-05/0.2626, allocations: 19.98 kB / 409.6 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.965e-05/0.2627, allocations: 37.09 kB / 409.7 MB, free: 25.67 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.952e-05/0.2627, allocations: 57.58 kB / 409.7 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001816/0.2629, allocations: 151.7 kB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.192e-06/0.2629, allocations: 2.094 kB / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.2629, allocations: 0 / 409.9 MB, free: 25.46 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.528e-06/0.263, allocations: 0 / 409.9 MB, free: 25.46 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.0006337/0.2636, allocations: 450.4 kB / 410.3 MB, free: 24.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.039e-05/0.2637, allocations: 8.031 kB / 410.3 MB, free: 24.97 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.924e-05/0.2637, allocations: 23.72 kB / 410.3 MB, free: 24.95 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002281/0.264, allocations: 218.8 kB / 410.5 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.907e-05/0.264, allocations: 20.56 kB / 410.6 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.264, allocations: 24 kB / 410.6 MB, free: 24.65 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003945/0.2644, allocations: 255.3 kB / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.267e-05/0.2645, allocations: 0 / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.397e-05/0.2645, allocations: 4 kB / 410.8 MB, free: 24.39 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.211e-05/0.2645, allocations: 8 kB / 410.8 MB, free: 24.38 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002589/0.2648, allocations: 157.7 kB / 411 MB, free: 24.23 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008879/0.2657, allocations: 0.7053 MB / 411.7 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002576/0.266, allocations: 160 kB / 411.9 MB, free: 23.3 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.806e-05/0.2661, allocations: 85.2 kB / 411.9 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.723e-05/0.2661, allocations: 8.172 kB / 412 MB, free: 23.21 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001993/0.2663, allocations: 125 kB / 412.1 MB, free: 23.07 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 2.454e-06/0.2663, allocations: 0 / 412.1 MB, free: 23.07 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003767/0.2667, allocations: 217.1 kB / 412.3 MB, free: 22.86 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.833e-05/0.2667, allocations: 59.41 kB / 412.3 MB, free: 22.79 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.752e-05/0.2668, allocations: 149.1 kB / 412.5 MB, free: 22.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.349e-05/0.2669, allocations: 41.7 kB / 412.5 MB, free: 22.58 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.699e-05/0.267, allocations: 136.6 kB / 412.7 MB, free: 22.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.693e-05/0.267, allocations: 55.2 kB / 412.7 MB, free: 22.39 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.29e-05/0.267, allocations: 8 kB / 412.7 MB, free: 22.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.767e-05/0.2671, allocations: 326.8 kB / 413 MB, free: 22.05 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.92e-05/0.2672, allocations: 60.62 kB / 413.1 MB, free: 21.99 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.2673, allocations: 128.1 kB / 413.2 MB, free: 21.84 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001131/0.2674, allocations: 63.98 kB / 413.3 MB, free: 21.78 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.2675, allocations: 0 / 413.3 MB, free: 21.78 MB / 298.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003079/0.2678, allocations: 249.8 kB / 413.5 MB, free: 21.53 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.65e-05/0.2678, allocations: 4 kB / 413.5 MB, free: 21.53 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.674e-06/0.2678, allocations: 7.938 kB / 413.5 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.748e-05/0.2678, allocations: 4 kB / 413.6 MB, free: 21.52 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001327/0.268, allocations: 31.92 kB / 413.6 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.916e-06/0.268, allocations: 4 kB / 413.6 MB, free: 21.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.2681, allocations: 23.8 kB / 413.6 MB, free: 21.46 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.717e-05/0.2681, allocations: 20.19 kB / 413.6 MB, free: 21.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,$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,step.active,$PRE.step.localActive,step.localActive,$PRE.step.newActive,step.newActive,$PRE.step.oldActive,step.oldActive,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,stateGraphRoot.activeSteps,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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001168/0.2683, allocations: 157.7 kB / 413.8 MB, free: 21.27 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.909e-05/0.2683, allocations: 11.81 kB / 413.8 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002831/0.2686, allocations: 198.3 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.2686, allocations: 0 / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.2686, allocations: 0 / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.2686, allocations: 4 kB / 414 MB, free: 21.05 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005646/0.2692, allocations: 0.5687 MB / 414.6 MB, free: 20.43 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.2692, allocations: 4 kB / 414.6 MB, free: 20.42 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.401e-05/0.2693, allocations: 27.92 kB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.978e-06/0.2693, allocations: 0 / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.332e-05/0.2693, allocations: 0 / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.436e-06/0.2693, allocations: 7.953 kB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.2693, allocations: 0 / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002507/0.2696, allocations: 279.7 kB / 414.9 MB, free: 20.1 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.102e-05/0.2696, allocations: 88.95 kB / 415 MB, free: 19.99 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.58e-05/0.2696, allocations: 7.984 kB / 415 MB, free: 19.98 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.604e-05/0.2697, allocations: 15.94 kB / 415 MB, free: 19.97 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.244e-05/0.2698, allocations: 23.92 kB / 415 MB, free: 19.95 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.504e-05/0.2698, allocations: 15.92 kB / 415 MB, free: 19.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.739e-05/0.2699, allocations: 95.27 kB / 415.1 MB, free: 19.84 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2699, allocations: 4 kB / 415.1 MB, free: 19.83 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000271/0.2702, allocations: 47.84 kB / 415.2 MB, free: 19.79 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 (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.0001514/0.2703, allocations: 107.2 kB / 415.3 MB, free: 19.67 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002869/0.2706, allocations: 179.9 kB / 415.4 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2706, allocations: 0 / 415.4 MB, free: 19.5 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001139/0.2707, allocations: 87.84 kB / 415.5 MB, free: 19.41 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002743/0.271, allocations: 24.42 kB / 415.6 MB, free: 19.39 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005681/0.2716, allocations: 400.6 kB / 415.9 MB, free: 18.96 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001656/0.2718, allocations: 0.7287 MB / 416.7 MB, free: 18.21 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.598e-05/0.2718, allocations: 27.38 kB / 416.7 MB, free: 18.18 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2719, allocations: 4 kB / 416.7 MB, free: 18.18 MB / 298.7 MB Notification: Performance of Templates: time 0.004427/0.2763, allocations: 2.308 MB / 419 MB, free: 15.88 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.makefile (rm -f Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","../files/Modelica_trunk_cpp_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches