Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001118/0.001118, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001702/0.002821, allocations: 449.8 kB / 10.44 MB, free: 252 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001535/0.002646, allocations: 479.5 kB / 11.82 MB, free: 2.344 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.028/1.028, allocations: 177.2 MB / 189.8 MB, free: 5.262 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1356/1.164, allocations: 53.66 MB / 243.4 MB, free: 15.52 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.794e-06/1.794e-06, allocations: 0 / 244.7 MB, free: 14.27 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.166e-05/2.346e-05, allocations: 6.312 kB / 244.7 MB, free: 14.26 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003316/0.003339, allocations: 1.794 MB / 246.5 MB, free: 12.45 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006551/0.003994, allocations: 307 kB / 246.8 MB, free: 12.15 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001165/0.004111, allocations: 4 kB / 246.8 MB, free: 12.14 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001221/0.004233, allocations: 27.67 kB / 246.8 MB, free: 12.12 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 6.294e-05/0.004296, allocations: 19.81 kB / 246.8 MB, free: 12.1 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004463/0.004742, allocations: 131.7 kB / 247 MB, free: 11.97 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004545/0.005197, allocations: 275.5 kB / 247.2 MB, free: 11.7 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003502/0.005547, allocations: 160 kB / 247.4 MB, free: 11.55 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001954/0.005742, allocations: 131.8 kB / 247.5 MB, free: 11.42 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001964/0.005939, allocations: 75.75 kB / 247.6 MB, free: 11.34 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.725e-05/0.005986, allocations: 27.94 kB / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.463e-05/0.006081, allocations: 32 kB / 247.6 MB, free: 11.29 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.257e-05/0.006153, allocations: 39.88 kB / 247.7 MB, free: 11.25 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.539e-05/0.006238, allocations: 55.86 kB / 247.7 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003113/0.00655, allocations: 171.3 kB / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.676e-05/0.006567, allocations: 0 / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.006568, allocations: 0 / 247.9 MB, free: 11.02 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.506e-05/0.006583, allocations: 0 / 247.9 MB, free: 11.02 MB / 250.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.000797/0.00738, allocations: 435.5 kB / 248.3 MB, free: 10.57 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.867e-05/0.007438, allocations: 8.031 kB / 248.3 MB, free: 10.56 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003551/0.007794, allocations: 130 kB / 248.5 MB, free: 10.41 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/0.00806, allocations: 157.4 kB / 248.6 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.605e-05/0.008106, allocations: 24.88 kB / 248.6 MB, free: 10.21 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.114e-05/0.008147, allocations: 28.38 kB / 248.7 MB, free: 10.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003337/0.008481, allocations: 218.5 kB / 248.9 MB, free: 9.945 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.008501, allocations: 4.125 kB / 248.9 MB, free: 9.941 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.995e-05/0.008531, allocations: 8.375 kB / 248.9 MB, free: 9.934 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.382e-05/0.008544, allocations: 8.375 kB / 248.9 MB, free: 9.926 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001406/0.008685, allocations: 71.34 kB / 249 MB, free: 9.855 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009396/0.009625, allocations: 0.7271 MB / 249.7 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002104/0.009835, allocations: 117.2 kB / 249.8 MB, free: 8.965 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.781e-05/0.009903, allocations: 45.7 kB / 249.9 MB, free: 8.914 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.181e-05/0.009925, allocations: 7.984 kB / 249.9 MB, free: 8.906 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000188/0.01011, allocations: 119.3 kB / 250 MB, free: 8.773 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.664e-06/0.01011, allocations: 0 / 250 MB, free: 8.773 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002722/0.01039, allocations: 138.2 kB / 250.1 MB, free: 8.633 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.448e-05/0.01045, allocations: 81.11 kB / 250.2 MB, free: 8.535 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001343/0.01059, allocations: 163.2 kB / 250.4 MB, free: 8.367 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 3.48e-05/0.01062, allocations: 45.83 kB / 250.4 MB, free: 8.316 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.617e-05/0.01072, allocations: 140.7 kB / 250.5 MB, free: 8.176 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.601e-05/0.01077, allocations: 63.45 kB / 250.6 MB, free: 8.113 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001008/0.01087, allocations: 89.41 kB / 250.7 MB, free: 8.02 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001408/0.01101, allocations: 326.8 kB / 251 MB, free: 7.691 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.434e-05/0.01107, allocations: 27.98 kB / 251 MB, free: 7.664 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001218/0.01119, allocations: 108.5 kB / 251.1 MB, free: 7.527 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002011/0.01139, allocations: 156.9 kB / 251.3 MB, free: 7.344 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.817e-06/0.01139, allocations: 0 / 251.3 MB, free: 7.344 MB / 250.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002616/0.01166, allocations: 173.6 kB / 251.5 MB, free: 7.168 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.187e-05/0.01168, allocations: 15.95 kB / 251.5 MB, free: 7.152 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.316e-06/0.01169, allocations: 4 kB / 251.5 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.749e-05/0.0117, allocations: 4 kB / 251.5 MB, free: 7.145 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001697/0.01187, allocations: 47.86 kB / 251.5 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.01188, allocations: 4 kB / 251.5 MB, free: 7.094 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.782e-05/0.01197, allocations: 23.84 kB / 251.6 MB, free: 7.07 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.585e-05/0.01199, allocations: 8 kB / 251.6 MB, free: 7.062 MB / 250.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,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,transition1.t_start,$PRE.transition1.t_start,transition1.fire,transition1.enableFire,initialStep.oldActive,$PRE.initialStep.oldActive,initialStep.newActive,$PRE.initialStep.newActive,initialStep.localActive,$PRE.initialStep.localActive,initialStep.active,$whenCondition1,$whenCondition2,transition2.t_start,$PRE.transition2.t_start,transition1.condition,stateGraphRoot.suspend,stateGraphRoot.resume) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001194/0.0121, allocations: 145.6 kB / 251.7 MB, free: 6.91 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.945e-05/0.01213, allocations: 19.98 kB / 251.7 MB, free: 6.891 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.005e-05/0.01218, allocations: 24.88 kB / 251.8 MB, free: 6.867 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.299e-06/0.01219, allocations: 4 kB / 251.8 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.665e-06/0.01219, allocations: 0 / 251.8 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.0122, allocations: 0 / 251.8 MB, free: 6.863 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004586/0.01265, allocations: 368.5 kB / 252.1 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.405e-06/0.01266, allocations: 0 / 252.1 MB, free: 6.477 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.803e-05/0.01274, allocations: 20 kB / 252.1 MB, free: 6.457 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.197e-05/0.01276, allocations: 19.88 kB / 252.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.128e-06/0.01276, allocations: 0 / 252.2 MB, free: 6.438 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.242e-05/0.01277, allocations: 4 kB / 252.2 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.535e-06/0.01278, allocations: 0 / 252.2 MB, free: 6.434 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.01278, allocations: 4 kB / 252.2 MB, free: 6.43 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002047/0.01298, allocations: 212.2 kB / 252.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.633e-05/0.01301, allocations: 11.98 kB / 252.4 MB, free: 6.191 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.007e-05/0.01309, allocations: 12 kB / 252.4 MB, free: 6.18 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.51e-05/0.01315, allocations: 15.95 kB / 252.4 MB, free: 6.164 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.513e-05/0.01317, allocations: 11.98 kB / 252.4 MB, free: 6.152 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.712e-05/0.0132, allocations: 16.86 kB / 252.4 MB, free: 6.133 MB / 250.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.0132, allocations: 0 / 252.4 MB, free: 6.133 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002897/0.01349, allocations: 51.83 kB / 252.5 MB, free: 6.082 MB / 250.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: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,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 (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.000127/0.01361, allocations: 100 kB / 252.6 MB, free: 5.977 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002363/0.01385, allocations: 132.5 kB / 252.7 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.237e-06/0.01386, allocations: 0 / 252.7 MB, free: 5.844 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001127/0.01397, allocations: 75.12 kB / 252.8 MB, free: 5.77 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003248/0.0143, allocations: 201.4 kB / 253 MB, free: 5.539 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007423/0.01504, allocations: 330.2 kB / 253.3 MB, free: 5.188 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.161e-05/0.01511, allocations: 88.27 kB / 253.4 MB, free: 5.082 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.994e-05/0.01519, allocations: 21.94 kB / 253.4 MB, free: 5.055 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001291/0.01532, allocations: 83.36 kB / 253.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of SimCode: time 8.91e-07/0.01532, allocations: 0 / 253.5 MB, free: 4.973 MB / 250.7 MB Notification: Performance of Templates: time 0.005171/0.02049, allocations: 1.864 MB / 255.4 MB, free: 3.145 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.7194441370666027]