Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.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_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001392/0.001393, allocations: 179 kB / 18.04 MB, free: 3.664 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.397/1.397, allocations: 205.4 MB / 224.2 MB, free: 8.938 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.0007364/0.0007363, allocations: 98.06 kB / 272.5 MB, free: 8.246 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002797/0.0002798, allocations: 8 kB / 329.4 MB, free: 15.27 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1935/0.1937, allocations: 47.58 MB / 377 MB, free: 45.6 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08238/0.2762, allocations: 75.85 MB / 452.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001746/0.2764, allocations: 67.97 kB / 452.9 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007226/0.2836, allocations: 2.983 MB / 455.9 MB, free: 1.645 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2837, allocations: 4 kB / 455.9 MB, free: 1.641 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.425e-05/0.2837, allocations: 12 kB / 455.9 MB, free: 1.629 MB / 330.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.0004732/0.2842, allocations: 436.8 kB / 456.4 MB, free: 1.148 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.35e-05/0.2842, allocations: 12.03 kB / 456.4 MB, free: 1.137 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.602e-05/0.2843, allocations: 24.66 kB / 456.4 MB, free: 1.113 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00022/0.2845, allocations: 228 kB / 456.6 MB, free: 0.8516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.934e-05/0.2845, allocations: 20.94 kB / 456.6 MB, free: 0.832 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.874e-05/0.2846, allocations: 32.36 kB / 456.7 MB, free: 0.8008 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003895/0.285, allocations: 276.9 kB / 456.9 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.285, allocations: 192 / 456.9 MB, free: 0.5156 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.619e-05/0.285, allocations: 15.94 kB / 456.9 MB, free: 0.5 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.706e-06/0.2851, allocations: 4 kB / 457 MB, free: 0.4961 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002772/0.2853, allocations: 165.6 kB / 457.1 MB, free: 344 kB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001012/0.2864, allocations: 0.9557 MB / 458.1 MB, free: 15.31 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002485/0.2866, allocations: 166.2 kB / 458.2 MB, free: 15.14 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000108/0.2867, allocations: 76.86 kB / 458.3 MB, free: 15.07 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.976e-05/0.2868, allocations: 8 kB / 458.3 MB, free: 15.06 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001697/0.2869, allocations: 107.3 kB / 458.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of pre-optimization done (n=23): time 1.713e-06/0.287, allocations: 0 / 458.4 MB, free: 14.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=23): time 0.0003818/0.2873, allocations: 217.9 kB / 458.6 MB, free: 14.72 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.537e-05/0.2874, allocations: 55.41 kB / 458.7 MB, free: 14.66 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.812e-05/0.2875, allocations: 149.6 kB / 458.8 MB, free: 14.5 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.2875, allocations: 37.69 kB / 458.9 MB, free: 14.46 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.886e-05/0.2876, allocations: 144.5 kB / 459 MB, free: 14.31 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.098e-05/0.2876, allocations: 55.25 kB / 459.1 MB, free: 14.26 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.146e-05/0.2877, allocations: 8 kB / 459.1 MB, free: 14.25 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.07e-05/0.2878, allocations: 330.8 kB / 459.4 MB, free: 13.92 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001036/0.2879, allocations: 60.62 kB / 459.5 MB, free: 13.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001385/0.288, allocations: 141.8 kB / 459.6 MB, free: 13.69 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002194/0.2882, allocations: 197.3 kB / 459.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2882, allocations: 0 / 459.8 MB, free: 13.46 MB / 346.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0003358/0.2886, allocations: 241.2 kB / 460 MB, free: 13.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.2886, allocations: 12.27 kB / 460 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.342e-06/0.2886, allocations: 4 kB / 460 MB, free: 13.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.447e-05/0.2886, allocations: 4 kB / 460 MB, free: 13.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.2888, allocations: 35.92 kB / 460.1 MB, free: 13.17 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.743e-06/0.2888, allocations: 4 kB / 460.1 MB, free: 13.16 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.2889, allocations: 19.84 kB / 460.1 MB, free: 13.14 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.834e-05/0.2889, allocations: 23.92 kB / 460.1 MB, free: 13.12 MB / 346.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: 30 ($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,SetBoolean1.y,stateGraphRoot.activeSteps,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 (40): * Single equations (assignments): 40 * 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.0001255/0.2891, allocations: 152.3 kB / 460.3 MB, free: 12.96 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.952e-05/0.2891, allocations: 15.91 kB / 460.3 MB, free: 12.95 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003083/0.2894, allocations: 192.8 kB / 460.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.2894, allocations: 0 / 460.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.667e-06/0.2894, allocations: 0 / 460.5 MB, free: 12.76 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.333e-06/0.2895, allocations: 4 kB / 460.5 MB, free: 12.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000646/0.2901, allocations: 0.5909 MB / 461.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.2901, allocations: 4 kB / 461.1 MB, free: 12.1 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.086e-05/0.2902, allocations: 19.92 kB / 461.1 MB, free: 12.08 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.2902, allocations: 3.938 kB / 461.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.468e-05/0.2902, allocations: 8 kB / 461.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.2902, allocations: 0 / 461.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.173e-06/0.2902, allocations: 0 / 461.1 MB, free: 12.07 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002654/0.2905, allocations: 267.2 kB / 461.4 MB, free: 11.79 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.978e-05/0.2906, allocations: 88.95 kB / 461.5 MB, free: 11.68 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.2906, allocations: 12 kB / 461.5 MB, free: 11.67 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.934e-05/0.2907, allocations: 15.86 kB / 461.5 MB, free: 11.66 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.687e-05/0.2908, allocations: 19.97 kB / 461.5 MB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.357e-05/0.2908, allocations: 4 kB / 461.5 MB, free: 11.63 MB / 346.7 MB Notification: Performance of sorting global known variables: time 5.104e-05/0.2908, allocations: 99.27 kB / 461.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2908, allocations: 0 / 461.6 MB, free: 11.54 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003127/0.2912, allocations: 44 kB / 461.6 MB, free: 11.49 MB / 346.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 (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,SetBoolean1.y,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 (25): * Single equations (assignments): 21 * 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.0001562/0.2913, allocations: 115 kB / 461.8 MB, free: 11.37 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0002833/0.2916, allocations: 180 kB / 461.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2916, allocations: 0 / 461.9 MB, free: 11.19 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00012/0.2918, allocations: 79.91 kB / 462 MB, free: 11.11 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002763/0.292, allocations: 19.98 kB / 462 MB, free: 11.09 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005726/0.2926, allocations: 400.4 kB / 462.4 MB, free: 10.68 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002239/0.2929, allocations: 0.735 MB / 463.2 MB, free: 9.918 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 8.758e-05/0.293, allocations: 29.94 kB / 463.2 MB, free: 9.887 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.161e-05/0.293, allocations: 23.44 kB / 463.2 MB, free: 9.863 MB / 346.7 MB Notification: Performance of SimCode: time 4.6e-07/0.293, allocations: 0 / 463.2 MB, free: 9.863 MB / 346.7 MB Notification: Performance of Templates: time 0.00434/0.2974, allocations: 1.647 MB / 464.9 MB, free: 8.227 MB / 346.7 MB make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches