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/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.001117/0.001117, allocations: 80.8 kB / 22.29 MB, free: 2.207 MB / 18.57 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.001059/0.001059, allocations: 172.2 kB / 25.7 MB, free: 8.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9411/0.9411, allocations: 158.6 MB / 187.6 MB, free: 2.789 MB / 170.7 MB " [Timeout remaining time 179] 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 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=5009,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=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.573e-06/1.573e-06, allocations: 0 / 251.5 MB, free: 7.266 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.442e-05/2.599e-05, allocations: 2.312 kB / 251.5 MB, free: 7.262 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.00259/0.002616, allocations: 1.767 MB / 253.3 MB, free: 5.48 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006265/0.003242, allocations: 271 kB / 253.6 MB, free: 5.215 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.517e-05/0.003337, allocations: 4 kB / 253.6 MB, free: 5.211 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001259/0.003463, allocations: 31.61 kB / 253.6 MB, free: 5.18 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 6.369e-05/0.003527, allocations: 15.81 kB / 253.6 MB, free: 5.164 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004172/0.003944, allocations: 131.7 kB / 253.7 MB, free: 5.035 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002719/0.004216, allocations: 271.5 kB / 254 MB, free: 4.77 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003098/0.004526, allocations: 148.1 kB / 254.2 MB, free: 4.629 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.004637, allocations: 143.7 kB / 254.3 MB, free: 4.488 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001095/0.004746, allocations: 71.77 kB / 254.4 MB, free: 4.418 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.004776, allocations: 20 kB / 254.4 MB, free: 4.398 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.572e-05/0.004862, allocations: 28 kB / 254.4 MB, free: 4.371 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.596e-05/0.004918, allocations: 63.8 kB / 254.5 MB, free: 4.309 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.439e-05/0.004972, allocations: 63.83 kB / 254.5 MB, free: 4.246 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002664/0.005239, allocations: 187.2 kB / 254.7 MB, free: 4.062 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.378e-06/0.005243, allocations: 4 kB / 254.7 MB, free: 4.059 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.005244, allocations: 0 / 254.7 MB, free: 4.059 MB / 234.7 MB Notification: Performance of Transformations before backend: time 5.851e-06/0.00525, allocations: 4 kB / 254.7 MB, free: 4.055 MB / 234.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.0004728/0.005723, allocations: 387.3 kB / 255.1 MB, free: 3.641 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.627e-05/0.005759, allocations: 15.92 kB / 255.1 MB, free: 3.625 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.162e-05/0.005821, allocations: 36.91 kB / 255.2 MB, free: 3.59 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002052/0.006026, allocations: 153.5 kB / 255.3 MB, free: 3.414 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.055e-05/0.006057, allocations: 24.81 kB / 255.3 MB, free: 3.391 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.516e-05/0.006082, allocations: 24.38 kB / 255.4 MB, free: 3.367 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003297/0.006411, allocations: 226.5 kB / 255.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.006425, allocations: 192 / 255.6 MB, free: 3.121 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.006441, allocations: 16.38 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.189e-05/0.006453, allocations: 8.375 kB / 255.6 MB, free: 3.098 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.49e-05/0.006547, allocations: 75.27 kB / 255.7 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008139/0.007361, allocations: 0.7154 MB / 256.4 MB, free: 2.281 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002126/0.007574, allocations: 102.5 kB / 256.5 MB, free: 2.172 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.793e-05/0.007612, allocations: 32.84 kB / 256.5 MB, free: 2.137 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.696e-05/0.007629, allocations: 4 kB / 256.5 MB, free: 2.133 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001104/0.007739, allocations: 107.1 kB / 256.6 MB, free: 2.016 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.413e-06/0.007741, allocations: 4 kB / 256.6 MB, free: 2.012 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0001839/0.007925, allocations: 122 kB / 256.8 MB, free: 1.887 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.651e-05/0.007961, allocations: 63.39 kB / 256.8 MB, free: 1.812 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.892e-05/0.00805, allocations: 170.2 kB / 257 MB, free: 1.637 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 1.861e-05/0.008069, allocations: 33.7 kB / 257 MB, free: 1.598 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.354e-05/0.008132, allocations: 140.7 kB / 257.2 MB, free: 1.453 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.148e-05/0.008164, allocations: 59.56 kB / 257.2 MB, free: 1.395 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.643e-05/0.00823, allocations: 77.95 kB / 257.3 MB, free: 1.309 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0002416/0.008472, allocations: 330.8 kB / 257.6 MB, free: 0.9766 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.993e-05/0.008512, allocations: 28.64 kB / 257.6 MB, free: 0.9492 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.747e-05/0.008589, allocations: 113.7 kB / 257.7 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001286/0.008718, allocations: 152.4 kB / 257.9 MB, free: 0.6289 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.008721, allocations: 3.938 kB / 257.9 MB, free: 0.625 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001864/0.008907, allocations: 169.4 kB / 258.1 MB, free: 464 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.008924, allocations: 7.938 kB / 258.1 MB, free: 456 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.123e-06/0.008931, allocations: 4 kB / 258.1 MB, free: 452 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.507e-05/0.008946, allocations: 4 kB / 258.1 MB, free: 448 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001285/0.009074, allocations: 47.84 kB / 258.1 MB, free: 400 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.889e-06/0.009079, allocations: 4 kB / 258.1 MB, free: 396 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.137e-05/0.009141, allocations: 27.78 kB / 258.2 MB, free: 368 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.122e-05/0.009162, allocations: 20.27 kB / 258.2 MB, free: 348 kB / 234.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,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,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 (40): * Single equations (assignments): 40 * 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 8.999e-05/0.009252, allocations: 136.4 kB / 258.3 MB, free: 204 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.984e-05/0.009272, allocations: 19.92 kB / 258.3 MB, free: 184 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.009436, allocations: 126.4 kB / 258.5 MB, free: 52 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.098e-06/0.00944, allocations: 4 kB / 258.5 MB, free: 48 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.854e-06/0.009442, allocations: 0 / 258.5 MB, free: 48 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.99e-06/0.009447, allocations: 3.984 kB / 258.5 MB, free: 44 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004063/0.009853, allocations: 369.6 kB / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.546e-06/0.009857, allocations: 0 / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.876e-05/0.009915, allocations: 23.98 kB / 258.8 MB, free: 15.63 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.942e-06/0.009921, allocations: 4 kB / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.827e-06/0.00993, allocations: 4 kB / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.145e-06/0.009933, allocations: 3.984 kB / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.242e-06/0.009935, allocations: 0 / 258.9 MB, free: 15.62 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.01008, allocations: 211.3 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.408e-05/0.01009, allocations: 15.84 kB / 259.1 MB, free: 15.38 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.744e-05/0.01011, allocations: 7.984 kB / 259.1 MB, free: 15.37 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.557e-05/0.01015, allocations: 8 kB / 259.1 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.393e-05/0.01021, allocations: 19.97 kB / 259.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.078e-05/0.01022, allocations: 7.984 kB / 259.1 MB, free: 15.34 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.713e-05/0.01024, allocations: 16.86 kB / 259.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01024, allocations: 0 / 259.1 MB, free: 15.32 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002041/0.01044, allocations: 55.88 kB / 259.2 MB, free: 15.26 MB / 250.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.localActive,transition1.enableFire,step.active,initialStep.active,$cse1,$cse2,$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: 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 (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.0001295/0.01057, allocations: 88.34 kB / 259.3 MB, free: 15.17 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002044/0.01077, allocations: 125.9 kB / 259.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.01078, allocations: 0 / 259.4 MB, free: 15.04 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.779e-05/0.01085, allocations: 65.27 kB / 259.5 MB, free: 14.98 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001854/0.01103, allocations: 35.86 kB / 259.5 MB, free: 14.94 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004268/0.01146, allocations: 325.3 kB / 259.8 MB, free: 14.59 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.7e-05/0.01151, allocations: 80.33 kB / 259.9 MB, free: 14.5 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.35e-05/0.01157, allocations: 25.94 kB / 259.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001072/0.01168, allocations: 87.36 kB / 260 MB, free: 14.38 MB / 250.7 MB Notification: Performance of SimCode: time 1.002e-06/0.01168, allocations: 0 / 260 MB, free: 14.38 MB / 250.7 MB Notification: Performance of Templates: time 0.004566/0.01624, allocations: 2.091 MB / 262.1 MB, free: 12.31 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (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=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.611369035206735]