Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_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_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_Modelica.StateGraph.Examples.FirstExample_Variant3") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001135/0.001135, allocations: 202.6 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.187/1.187, allocations: 227.2 MB / 245 MB, free: 7.625 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008404/0.0008404, allocations: 103.3 kB / 297.3 MB, free: 6.172 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002332/0.0002337, allocations: 4 kB / 357.9 MB, free: 9.535 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1974/0.1977, allocations: 51.47 MB / 409.4 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08409/0.2818, allocations: 77.51 MB / 486.9 MB, free: 13.11 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001614/0.282, allocations: 67.97 kB / 487 MB, free: 13.04 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.007183/0.2892, allocations: 3.055 MB / 490 MB, free: 9.969 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2892, allocations: 0 / 490 MB, free: 9.969 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.448e-05/0.2893, allocations: 4 kB / 490 MB, free: 9.965 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.000566/0.2898, allocations: 457.1 kB / 490.5 MB, free: 9.469 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.926e-05/0.2899, allocations: 8.031 kB / 490.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.019e-05/0.29, allocations: 19.81 kB / 490.5 MB, free: 9.441 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002658/0.2902, allocations: 234.7 kB / 490.7 MB, free: 9.172 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.286e-05/0.2903, allocations: 20.56 kB / 490.7 MB, free: 9.152 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.603e-05/0.2903, allocations: 24 kB / 490.8 MB, free: 9.129 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.2907, allocations: 274 kB / 491 MB, free: 8.84 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.899e-05/0.2908, allocations: 3.984 kB / 491 MB, free: 8.836 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.687e-05/0.2908, allocations: 15.94 kB / 491.1 MB, free: 8.82 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.695e-06/0.2908, allocations: 7.938 kB / 491.1 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003079/0.2911, allocations: 165.6 kB / 491.2 MB, free: 8.648 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001158/0.2923, allocations: 0.9598 MB / 492.2 MB, free: 7.621 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002778/0.2926, allocations: 174 kB / 492.4 MB, free: 7.434 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.267e-05/0.2926, allocations: 12.16 kB / 492.4 MB, free: 7.422 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002029/0.2928, allocations: 130.1 kB / 492.5 MB, free: 7.277 MB / 362.7 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.2928, allocations: 4 kB / 492.5 MB, free: 7.273 MB / 362.7 MB Notification: Performance of matching and sorting (n=24): time 0.000434/0.2933, allocations: 227.1 kB / 492.7 MB, free: 7.047 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.516e-05/0.2934, allocations: 81.11 kB / 492.8 MB, free: 6.949 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001236/0.2935, allocations: 148.3 kB / 492.9 MB, free: 6.801 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.323e-05/0.2935, allocations: 41.64 kB / 493 MB, free: 6.754 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.086e-05/0.2936, allocations: 136.7 kB / 493.1 MB, free: 6.617 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.143e-05/0.2937, allocations: 63.23 kB / 493.2 MB, free: 6.555 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.212e-05/0.2937, allocations: 8 kB / 493.2 MB, free: 6.547 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001024/0.2938, allocations: 322.8 kB / 493.5 MB, free: 6.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001117/0.2939, allocations: 59.97 kB / 493.6 MB, free: 6.164 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001511/0.2941, allocations: 140.3 kB / 493.7 MB, free: 5.996 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000151/0.2942, allocations: 67.94 kB / 493.8 MB, free: 5.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.598e-06/0.2943, allocations: 4 kB / 493.8 MB, free: 5.926 MB / 362.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0003648/0.2946, allocations: 257.7 kB / 494 MB, free: 5.668 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.541e-05/0.2946, allocations: 8 kB / 494 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.691e-06/0.2947, allocations: 0 / 494 MB, free: 5.66 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.607e-05/0.2947, allocations: 4 kB / 494 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.2948, allocations: 35.92 kB / 494.1 MB, free: 5.621 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.254e-05/0.2948, allocations: 11.92 kB / 494.1 MB, free: 5.609 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.2949, allocations: 20.22 kB / 494.1 MB, free: 5.59 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.643e-05/0.295, allocations: 12 kB / 494.1 MB, free: 5.578 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,SetBoolean1.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.0001295/0.2951, allocations: 158.5 kB / 494.3 MB, free: 5.414 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.416e-05/0.2951, allocations: 15.77 kB / 494.3 MB, free: 5.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002955/0.2954, allocations: 183.3 kB / 494.5 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2955, allocations: 4 kB / 494.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.2955, allocations: 0 / 494.5 MB, free: 5.207 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.193e-06/0.2955, allocations: 7.984 kB / 494.5 MB, free: 5.199 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006382/0.2961, allocations: 0.5955 MB / 495.1 MB, free: 4.543 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.2961, allocations: 4 kB / 495.1 MB, free: 4.539 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.713e-05/0.2962, allocations: 19.94 kB / 495.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.2962, allocations: 0 / 495.1 MB, free: 4.52 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.683e-05/0.2963, allocations: 7.984 kB / 495.1 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.486e-06/0.2963, allocations: 4 kB / 495.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.092e-06/0.2963, allocations: 0 / 495.1 MB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002934/0.2966, allocations: 301.8 kB / 495.4 MB, free: 4.188 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.547e-05/0.2966, allocations: 96.8 kB / 495.5 MB, free: 4.074 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.2967, allocations: 8 kB / 495.5 MB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.491e-05/0.2968, allocations: 11.98 kB / 495.5 MB, free: 4.055 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.419e-05/0.2969, allocations: 31.95 kB / 495.5 MB, free: 4.023 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.507e-05/0.2969, allocations: 4 kB / 495.5 MB, free: 4.02 MB / 362.7 MB Notification: Performance of sorting global known variables: time 4.963e-05/0.2969, allocations: 95.27 kB / 495.6 MB, free: 3.926 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2969, allocations: 0 / 495.6 MB, free: 3.926 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002899/0.2972, allocations: 47.98 kB / 495.7 MB, free: 3.879 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,SetBoolean1.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.0001515/0.2974, allocations: 111.2 kB / 495.8 MB, free: 3.762 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002884/0.2977, allocations: 180.2 kB / 496 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2977, allocations: 0 / 496 MB, free: 3.586 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.2978, allocations: 88.28 kB / 496.1 MB, free: 3.5 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001783/0.298, allocations: 19.94 kB / 496.1 MB, free: 3.48 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00056/0.2986, allocations: 388.4 kB / 496.5 MB, free: 3.07 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002713/0.2989, allocations: 0.7484 MB / 497.2 MB, free: 2.293 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.524e-05/0.299, allocations: 25.94 kB / 497.2 MB, free: 2.27 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.596e-05/0.299, allocations: 23.44 kB / 497.3 MB, free: 2.246 MB / 362.7 MB Notification: Performance of SimCode: time 3.1e-07/0.299, allocations: 0 / 497.3 MB, free: 2.246 MB / 362.7 MB Notification: Performance of Templates: time 0.004211/0.3032, allocations: 1.671 MB / 498.9 MB, free: 0.5938 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches