Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.ExecutionPaths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire|transition3.enableFire|transition4.enableFire|transition4a.enableFire|transition5.enableFire|transition6.enableFire|transition6a.enableFire|transition7.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths") translateModel(Modelica.StateGraph.Examples.ExecutionPaths,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire|transition3.enableFire|transition4.enableFire|transition4a.enableFire|transition5.enableFire|transition6.enableFire|transition6a.enableFire|transition7.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001596/0.001596, allocations: 175.1 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.399/1.399, allocations: 221.4 MB / 235.5 MB, free: 2.898 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008451/0.0008453, allocations: 87.62 kB / 286.5 MB, free: 172 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.51e-05/2.512e-05, allocations: 4 kB / 343.8 MB, free: 4.305 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09885/0.09889, allocations: 50.41 MB / 394.2 MB, free: 1.855 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4824, allocations: 77.34 MB / 471.6 MB, free: 10.22 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002752/0.4827, allocations: 63.97 kB / 471.6 MB, free: 10.16 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04621/0.5289, allocations: 11.89 MB / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.529, allocations: 0 / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.377e-05/0.5291, allocations: 23.94 kB / 483.5 MB, free: 14.15 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: 243 * Number of variables: 243 Notification: Performance of Generate backend data structure: time 0.00233/0.5314, allocations: 0.9174 MB / 484.5 MB, free: 13.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.354e-05/0.5315, allocations: 8.031 kB / 484.5 MB, free: 13.15 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002662/0.5318, allocations: 90.97 kB / 484.6 MB, free: 13.06 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001001/0.5328, allocations: 445.7 kB / 485 MB, free: 12.58 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001479/0.533, allocations: 89.98 kB / 485.1 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002362/0.5332, allocations: 108 kB / 485.2 MB, free: 12.39 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002443/0.5357, allocations: 0.9425 MB / 486.1 MB, free: 11.42 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.008e-05/0.5357, allocations: 3.938 kB / 486.1 MB, free: 11.41 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001191/0.5359, allocations: 39.98 kB / 486.2 MB, free: 11.38 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.738e-05/0.5359, allocations: 27.95 kB / 486.2 MB, free: 11.35 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001939/0.5379, allocations: 0.6873 MB / 486.9 MB, free: 10.66 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005273/0.5431, allocations: 2.486 MB / 489.4 MB, free: 8.094 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001526/0.5447, allocations: 0.668 MB / 490 MB, free: 7.387 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007422/0.5455, allocations: 342 kB / 490.4 MB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.99e-05/0.5456, allocations: 16.84 kB / 490.4 MB, free: 7.031 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00105/0.5467, allocations: 434.8 kB / 490.8 MB, free: 6.586 MB / 362.7 MB Notification: Performance of pre-optimization done (n=100): time 5.711e-06/0.5467, allocations: 0 / 490.8 MB, free: 6.586 MB / 362.7 MB Notification: Performance of matching and sorting (n=100): time 0.001679/0.5484, allocations: 0.6051 MB / 491.4 MB, free: 5.977 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001182/0.5485, allocations: 139.4 kB / 491.6 MB, free: 5.816 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004613/0.549, allocations: 292.3 kB / 491.8 MB, free: 5.527 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000134/0.5491, allocations: 69.69 kB / 491.9 MB, free: 5.453 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003193/0.5495, allocations: 305 kB / 492.2 MB, free: 5.148 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003564/0.5498, allocations: 240.9 kB / 492.4 MB, free: 4.91 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.555e-05/0.5499, allocations: 28 kB / 492.5 MB, free: 4.883 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002158/0.5502, allocations: 366.8 kB / 492.8 MB, free: 4.516 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007156/0.5509, allocations: 258.6 kB / 493.1 MB, free: 4.266 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009876/0.5519, allocations: 480.6 kB / 493.6 MB, free: 3.715 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007853/0.5527, allocations: 272.9 kB / 493.8 MB, free: 3.449 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.051e-05/0.5527, allocations: 4 kB / 493.8 MB, free: 3.445 MB / 362.7 MB Notification: Performance of matching and sorting (n=156) (initialization): time 0.002165/0.5549, allocations: 0.8514 MB / 494.7 MB, free: 2.586 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.073e-05/0.5549, allocations: 11.94 kB / 494.7 MB, free: 2.574 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.749e-05/0.555, allocations: 7.984 kB / 494.7 MB, free: 2.566 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.599e-05/0.555, allocations: 12 kB / 494.7 MB, free: 2.555 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006307/0.5557, allocations: 111.7 kB / 494.8 MB, free: 2.445 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.38e-05/0.5557, allocations: 24.45 kB / 494.8 MB, free: 2.422 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005472/0.5563, allocations: 79.66 kB / 494.9 MB, free: 2.344 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001213/0.5564, allocations: 47.98 kB / 495 MB, free: 2.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 26 * Number of states: 0 () * Number of discrete variables: 126 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,$PRE.transition3.enableFire,$PRE.transition4.enableFire,$PRE.transition5.enableFire,$PRE.transition6.enableFire,$PRE.transition7.enableFire,$PRE.transition4a.enableFire,$PRE.transition6a.enableFire,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.step0.localActive,step0.localActive,$PRE.step0.newActive,step0.newActive,$PRE.step0.oldActive,step0.oldActive,step0.active,transition1.enableFire,transition1.fire,$PRE.transition1.t_start,transition1.t_start,$PRE.step1.localActive,step1.localActive,$PRE.step1.newActive,step1.newActive,$PRE.step1.oldActive,step1.oldActive,step1.active,transition2.enableFire,transition2.fire,$PRE.transition2.t_start,transition2.t_start,$PRE.step6.localActive,step6.localActive,$PRE.step6.newActive,step6.newActive,$PRE.step6.oldActive,step6.oldActive,step6.active,$PRE.step2.localActive,step2.localActive,step2.outPort[1].reset,$PRE.step2.newActive,step2.newActive,$PRE.step2.oldActive,step2.oldActive,step2.active,transition3.enableFire,transition3.fire,$PRE.transition3.t_start,transition3.t_start,transition4.enableFire,transition4.fire,$PRE.transition4.t_start,transition4.t_start,$PRE.step3.localActive,step3.localActive,$PRE.step3.newActive,step3.newActive,$PRE.step3.oldActive,step3.oldActive,step3.active,$PRE.step4.localActive,step4.localActive,$PRE.step4.newActive,step4.newActive,$PRE.step4.oldActive,step4.oldActive,step4.active,transition5.enableFire,transition5.fire,$PRE.transition5.t_start,transition5.t_start,transition6.enableFire,transition6.fire,$PRE.transition6.t_start,transition6.t_start,$PRE.step5.localActive,step5.localActive,step5.inPort[1].set,$PRE.step5.newActive,step5.newActive,$PRE.step5.oldActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.enableFire,transition4a.fire,$PRE.transition4a.t_start,transition4a.t_start,$PRE.step4a.localActive,step4a.localActive,$PRE.step4a.newActive,step4a.newActive,$PRE.step4a.oldActive,step4a.oldActive,step4a.active,transition6a.enableFire,transition6a.fire,$PRE.transition6a.t_start,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps,$PRE.transition7.t_start,transition7.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition6a.condition,transition4a.condition,transition6.condition,transition5.condition,transition4.condition,transition3.condition,transition2.condition,transition1.condition) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (156): * Single equations (assignments): 156 * 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.0003321/0.5567, allocations: 214.9 kB / 495.2 MB, free: 2.074 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000136/0.5569, allocations: 55.42 kB / 495.2 MB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001876/0.5588, allocations: 0.7299 MB / 496 MB, free: 1.285 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-05/0.5588, allocations: 15.98 kB / 496 MB, free: 1.27 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.5588, allocations: 3.938 kB / 496 MB, free: 1.266 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.747e-05/0.5589, allocations: 7.938 kB / 496 MB, free: 1.258 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003943/0.5628, allocations: 1.663 MB / 497.7 MB, free: 15.54 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.484e-06/0.5628, allocations: 4 kB / 497.7 MB, free: 15.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000428/0.5633, allocations: 71.83 kB / 497.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.587e-05/0.5633, allocations: 4 kB / 497.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.5634, allocations: 23.98 kB / 497.8 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.974e-05/0.5634, allocations: 11.94 kB / 497.8 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.785e-06/0.5634, allocations: 0 / 497.8 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001666/0.5651, allocations: 0.7977 MB / 498.6 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000134/0.5653, allocations: 128.3 kB / 498.7 MB, free: 14.45 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001019/0.5654, allocations: 28 kB / 498.7 MB, free: 14.42 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004069/0.5658, allocations: 43.92 kB / 498.8 MB, free: 14.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002978/0.5661, allocations: 104.8 kB / 498.9 MB, free: 14.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.916e-05/0.5662, allocations: 35.98 kB / 498.9 MB, free: 14.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001947/0.5664, allocations: 149.4 kB / 499 MB, free: 14.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.51e-07/0.5664, allocations: 4 kB / 499 MB, free: 14.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001065/0.5675, allocations: 168 kB / 499.2 MB, free: 13.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 85 (transition7.t_start,transition4a.enableFire,transition4.enableFire,transition6a.enableFire,step4a.localActive,transition2.enableFire,step5.localActive,transition5.enableFire,transition6.enableFire,step4.localActive,step3.localActive,transition3.enableFire,transition1.enableFire,step2.localActive,step6.localActive,step1.localActive,step0.localActive,$cse1,$cse2,$cse3,$cse4,$cse5,$cse6,$cse7,$cse8,$cse9,$cse10,$cse11,$whenCondition8,$whenCondition7,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,step0.newActive,step0.oldActive,step0.active,transition1.fire,transition1.t_start,step1.newActive,step1.oldActive,step1.active,transition2.fire,transition2.t_start,step6.newActive,step6.oldActive,step6.active,step2.outPort[1].reset,step2.newActive,step2.oldActive,step2.active,transition3.fire,transition3.t_start,transition4.fire,transition4.t_start,step3.newActive,step3.oldActive,step3.active,step4.newActive,step4.oldActive,step4.active,transition5.fire,transition5.t_start,transition6.fire,transition6.t_start,step5.inPort[1].set,step5.newActive,step5.oldActive,step5.active,transition7.enableFire,setCondition.y,transition4a.fire,transition4a.t_start,step4a.newActive,step4a.oldActive,step4a.active,transition6a.fire,transition6a.t_start,alternative.split[2].available,alternative.split[3].available,Parallel1.inPort.occupied,Parallel1.outPort.available,stateGraphRoot.activeSteps) * Number of discrete states: 9 (step0.newActive,step1.newActive,step6.newActive,step2.newActive,step3.newActive,step4.newActive,step5.newActive,step4a.newActive,transition7.t_start) * Top-level inputs: 0 Notification: Strong component statistics for simulation (111): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 17 * 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.0003571/0.5679, allocations: 163 kB / 499.4 MB, free: 13.75 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001762/0.5697, allocations: 0.7336 MB / 0.4884 GB, free: 13.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.5697, allocations: 4 kB / 0.4884 GB, free: 13.02 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008221/0.5705, allocations: 381.6 kB / 0.4887 GB, free: 12.65 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005631/0.5711, allocations: 76.33 kB / 0.4888 GB, free: 12.57 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002422/0.5735, allocations: 0.9299 MB / 0.4897 GB, free: 11.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006972/0.5742, allocations: 0.9703 MB / 0.4907 GB, free: 10.62 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000542/0.5748, allocations: 110 kB / 0.4908 GB, free: 10.51 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00028/0.5751, allocations: 71.41 kB / 0.4908 GB, free: 10.44 MB / 378.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5751, allocations: 4 kB / 0.4909 GB, free: 10.43 MB / 378.7 MB Notification: Performance of Templates: time 0.01887/0.594, allocations: 6.667 MB / 0.4974 GB, free: 3.824 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.makefile (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/ExecutionPaths/ExecutionPaths.csv","../files/Modelica_4.0.0_Modelica.StateGraph.Examples.ExecutionPaths.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches