Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001416/0.001416, allocations: 197.7 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.266/1.266, allocations: 227.2 MB / 245 MB, free: 5.887 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008378/0.0008378, allocations: 104.8 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002154/0.0002154, allocations: 4 kB / 357.9 MB, free: 9.32 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1976/0.1979, allocations: 51.48 MB / 409.4 MB, free: 26.69 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08534/0.2833, allocations: 77.48 MB / 486.9 MB, free: 13.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001952/0.2835, allocations: 63.97 kB / 486.9 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007253/0.2908, allocations: 3.077 MB / 490 MB, free: 9.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 4.107e-06/0.2908, allocations: 3.984 kB / 490 MB, free: 9.938 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.051e-05/0.2908, allocations: 8 kB / 490 MB, free: 9.93 MB / 362.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.0004774/0.2913, allocations: 457 kB / 490.5 MB, free: 9.438 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.196e-05/0.2913, allocations: 8.031 kB / 490.5 MB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.297e-05/0.2914, allocations: 19.81 kB / 490.5 MB, free: 9.41 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.2916, allocations: 226.8 kB / 490.7 MB, free: 9.148 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.13e-05/0.2917, allocations: 20.56 kB / 490.8 MB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.052e-05/0.2917, allocations: 32 kB / 490.8 MB, free: 9.098 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003893/0.2921, allocations: 266 kB / 491 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.979e-06/0.2921, allocations: 7.938 kB / 491.1 MB, free: 8.809 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.196e-05/0.2922, allocations: 8 kB / 491.1 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.335e-06/0.2922, allocations: 8 kB / 491.1 MB, free: 8.793 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002732/0.2924, allocations: 165.6 kB / 491.2 MB, free: 8.629 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009871/0.2934, allocations: 0.9676 MB / 492.2 MB, free: 7.594 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002496/0.2937, allocations: 176.8 kB / 492.4 MB, free: 7.406 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.2937, allocations: 8.188 kB / 492.4 MB, free: 7.398 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001889/0.2939, allocations: 138 kB / 492.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.2939, allocations: 0 / 492.5 MB, free: 7.246 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003866/0.2943, allocations: 223.2 kB / 492.7 MB, free: 7.023 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.661e-05/0.2944, allocations: 88.98 kB / 492.8 MB, free: 6.918 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.532e-05/0.2945, allocations: 152.8 kB / 493 MB, free: 6.762 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.713e-05/0.2945, allocations: 33.7 kB / 493 MB, free: 6.723 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.979e-05/0.2946, allocations: 148.5 kB / 493.1 MB, free: 6.574 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.716e-05/0.2946, allocations: 59.25 kB / 493.2 MB, free: 6.516 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.093e-05/0.2947, allocations: 8 kB / 493.2 MB, free: 6.508 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.112e-05/0.2948, allocations: 326.8 kB / 493.5 MB, free: 6.18 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.2949, allocations: 59.97 kB / 493.6 MB, free: 6.121 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.295, allocations: 140.3 kB / 493.7 MB, free: 5.953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001148/0.2951, allocations: 75.92 kB / 493.8 MB, free: 5.879 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.2952, allocations: 0 / 493.8 MB, free: 5.879 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003345/0.2955, allocations: 253.7 kB / 494 MB, free: 5.625 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.207e-05/0.2955, allocations: 4 kB / 494 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.951e-06/0.2955, allocations: 4 kB / 494.1 MB, free: 5.617 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2955, allocations: 4.281 kB / 494.1 MB, free: 5.613 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.2957, allocations: 43.91 kB / 494.1 MB, free: 5.57 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.05e-05/0.2957, allocations: 7.938 kB / 494.1 MB, free: 5.562 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.931e-05/0.2958, allocations: 15.91 kB / 494.1 MB, free: 5.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.525e-05/0.2958, allocations: 12 kB / 494.1 MB, free: 5.535 MB / 362.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,$PRE.initialStep.localActive,initialStep.localActive,$PRE.initialStep.newActive,initialStep.newActive,$PRE.initialStep.oldActive,initialStep.oldActive,initialStep.active,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.enableFire,$PRE.timer.entryTime,timer.entryTime,greaterEqual.y,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.0001245/0.296, allocations: 162.4 kB / 494.3 MB, free: 5.367 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.23e-05/0.296, allocations: 15.86 kB / 494.3 MB, free: 5.352 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002971/0.2963, allocations: 186.4 kB / 494.5 MB, free: 5.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.372e-06/0.2963, allocations: 7.984 kB / 494.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.377e-06/0.2963, allocations: 3.938 kB / 494.5 MB, free: 5.148 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.2963, allocations: 4 kB / 494.5 MB, free: 5.145 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006206/0.2969, allocations: 0.5955 MB / 495.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-06/0.297, allocations: 0 / 495.1 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.466e-05/0.297, allocations: 19.98 kB / 495.1 MB, free: 4.469 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.495e-06/0.297, allocations: 4 kB / 495.1 MB, free: 4.465 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.411e-05/0.2971, allocations: 4 kB / 495.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.2971, allocations: 0 / 495.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.2971, allocations: 0 / 495.1 MB, free: 4.461 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003201/0.2974, allocations: 301.7 kB / 495.4 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.051e-05/0.2975, allocations: 96.89 kB / 495.5 MB, free: 4.027 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.623e-05/0.2975, allocations: 11.98 kB / 495.5 MB, free: 4.016 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.83e-05/0.2976, allocations: 8 kB / 495.5 MB, free: 4.008 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.085e-05/0.2977, allocations: 23.97 kB / 495.6 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.496e-05/0.2977, allocations: 7.984 kB / 495.6 MB, free: 3.977 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.801e-05/0.2977, allocations: 102.4 kB / 495.7 MB, free: 3.879 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2977, allocations: 0 / 495.7 MB, free: 3.879 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002683/0.298, allocations: 48 kB / 495.7 MB, free: 3.832 MB / 362.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.newActive,initialStep.oldActive,initialStep.active,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.enableFire,timer.entryTime,greaterEqual.y,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.0001241/0.2981, allocations: 111.1 kB / 495.8 MB, free: 3.715 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002873/0.2984, allocations: 187.7 kB / 496 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.2985, allocations: 0 / 496 MB, free: 3.531 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001199/0.2986, allocations: 84.28 kB / 496.1 MB, free: 3.449 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001763/0.2988, allocations: 18.8 kB / 496.1 MB, free: 3.434 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005194/0.2993, allocations: 400.9 kB / 496.5 MB, free: 3.012 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002467/0.2995, allocations: 0.7367 MB / 497.2 MB, free: 2.246 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 7.7e-05/0.2996, allocations: 25.94 kB / 497.3 MB, free: 2.223 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.761e-05/0.2997, allocations: 27.42 kB / 497.3 MB, free: 2.195 MB / 362.7 MB Notification: Performance of SimCode: time 3.11e-07/0.2997, allocations: 0 / 497.3 MB, free: 2.195 MB / 362.7 MB Notification: Performance of Templates: time 0.004017/0.3037, allocations: 1.671 MB / 499 MB, free: 0.5352 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.StateGraph.Examples.FirstExample_Variant2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches