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.00221/0.00221, allocations: 91.66 kB / 21.73 MB, free: 2.551 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.002402/0.002402, allocations: 159.9 kB / 25.02 MB, free: 9.066 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 1.486/1.486, allocations: 158.6 MB / 186.8 MB, free: 2.906 MB / 170.7 MB " [Timeout remaining time 178] 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 2.615e-06/2.615e-06, allocations: 0 / 250.3 MB, free: 7.871 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.572e-05/3.833e-05, allocations: 2.312 kB / 250.3 MB, free: 7.867 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.005374/0.005412, allocations: 1.696 MB / 252 MB, free: 6.156 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001233/0.006645, allocations: 267.1 kB / 252.3 MB, free: 5.895 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001634/0.006809, allocations: 8 kB / 252.3 MB, free: 5.887 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002105/0.007019, allocations: 23.69 kB / 252.3 MB, free: 5.863 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000138/0.007157, allocations: 19.8 kB / 252.3 MB, free: 5.844 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007405/0.007898, allocations: 127.7 kB / 252.5 MB, free: 5.719 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006709/0.008569, allocations: 271.5 kB / 252.7 MB, free: 5.453 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004737/0.009042, allocations: 158 kB / 252.9 MB, free: 5.301 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003365/0.009379, allocations: 131.8 kB / 253 MB, free: 5.172 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.009639, allocations: 75.77 kB / 253.1 MB, free: 5.098 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 9.066e-05/0.009729, allocations: 24 kB / 253.1 MB, free: 5.074 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001414/0.009871, allocations: 31.98 kB / 253.1 MB, free: 5.043 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001233/0.009994, allocations: 59.81 kB / 253.2 MB, free: 4.984 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001523/0.01015, allocations: 59.83 kB / 253.3 MB, free: 4.926 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006467/0.01079, allocations: 267 kB / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.691e-06/0.0108, allocations: 0 / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of FrontEnd: time 2.024e-06/0.0108, allocations: 0 / 253.5 MB, free: 4.664 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.167e-05/0.01081, allocations: 0 / 253.5 MB, free: 4.664 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.001269/0.01208, allocations: 0.526 MB / 254.1 MB, free: 4.094 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.994e-05/0.01213, allocations: 15.98 kB / 254.1 MB, free: 4.078 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.01229, allocations: 44.8 kB / 254.1 MB, free: 4.035 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004333/0.01273, allocations: 172.3 kB / 254.3 MB, free: 3.84 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.223e-05/0.0128, allocations: 24.86 kB / 254.3 MB, free: 3.816 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.174e-05/0.01286, allocations: 28.38 kB / 254.3 MB, free: 3.789 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006653/0.01352, allocations: 292 kB / 254.6 MB, free: 3.477 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.405e-05/0.01354, allocations: 192 / 254.6 MB, free: 3.477 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.898e-05/0.01358, allocations: 12.38 kB / 254.6 MB, free: 3.465 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.022e-05/0.01359, allocations: 4.375 kB / 254.6 MB, free: 3.461 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003909/0.01398, allocations: 165.7 kB / 254.8 MB, free: 3.301 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001487/0.01547, allocations: 1.123 MB / 255.9 MB, free: 2.117 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003329/0.0158, allocations: 159.2 kB / 256.1 MB, free: 1.949 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001409/0.01594, allocations: 71.59 kB / 256.1 MB, free: 1.875 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.516e-05/0.01597, allocations: 4 kB / 256.1 MB, free: 1.871 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002489/0.01622, allocations: 124.8 kB / 256.3 MB, free: 1.734 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 2.074e-06/0.01623, allocations: 4 kB / 256.3 MB, free: 1.73 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0005553/0.01678, allocations: 222 kB / 256.5 MB, free: 1.504 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.179e-05/0.01685, allocations: 55.41 kB / 256.5 MB, free: 1.438 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002808/0.01713, allocations: 249.2 kB / 256.8 MB, free: 1.18 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 4.195e-05/0.01718, allocations: 37.7 kB / 256.8 MB, free: 1.137 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001692/0.01734, allocations: 191.5 kB / 257 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.794e-05/0.01743, allocations: 75.47 kB / 257.1 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001816/0.01761, allocations: 103.7 kB / 257.2 MB, free: 0.7578 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.000297/0.01791, allocations: 0.504 MB / 257.7 MB, free: 248 kB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001249/0.01804, allocations: 60.62 kB / 257.7 MB, free: 188 kB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002503/0.01829, allocations: 170.1 kB / 257.9 MB, free: 15.98 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003444/0.01863, allocations: 220.7 kB / 258.1 MB, free: 15.72 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.585e-06/0.01863, allocations: 0 / 258.1 MB, free: 15.72 MB / 250.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.000473/0.01911, allocations: 269.4 kB / 258.4 MB, free: 15.45 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.947e-05/0.01913, allocations: 12.06 kB / 258.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.01914, allocations: 4 kB / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.902e-05/0.01916, allocations: 4 kB / 258.4 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.01932, allocations: 35.92 kB / 258.4 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.323e-05/0.01933, allocations: 7.984 kB / 258.5 MB, free: 15.39 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001146/0.01944, allocations: 27.78 kB / 258.5 MB, free: 15.36 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.276e-05/0.01949, allocations: 8 kB / 258.5 MB, free: 15.35 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: 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,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002154/0.0197, allocations: 211 kB / 258.7 MB, free: 15.13 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.273e-05/0.01975, allocations: 23.84 kB / 258.7 MB, free: 15.11 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003905/0.02014, allocations: 198.4 kB / 258.9 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.983e-06/0.02014, allocations: 4 kB / 258.9 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.02015, allocations: 0 / 258.9 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.526e-06/0.02015, allocations: 3.984 kB / 258.9 MB, free: 14.91 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009116/0.02107, allocations: 0.5822 MB / 259.5 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.345e-06/0.02107, allocations: 0 / 259.5 MB, free: 14.28 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.264e-05/0.02115, allocations: 19.94 kB / 259.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.556e-06/0.02116, allocations: 0 / 259.5 MB, free: 14.26 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.955e-05/0.02117, allocations: 3.984 kB / 259.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.709e-06/0.02118, allocations: 7.938 kB / 259.5 MB, free: 14.25 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.02118, allocations: 4 kB / 259.5 MB, free: 14.24 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004333/0.02161, allocations: 339.7 kB / 259.9 MB, free: 13.89 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.652e-05/0.02164, allocations: 15.89 kB / 259.9 MB, free: 13.88 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.62e-05/0.02167, allocations: 4 kB / 259.9 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.379e-05/0.02175, allocations: 4 kB / 259.9 MB, free: 13.87 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.598e-05/0.02184, allocations: 23.95 kB / 259.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.754e-05/0.02185, allocations: 8 kB / 259.9 MB, free: 13.84 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0001116/0.02197, allocations: 151 kB / 260.1 MB, free: 13.69 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.02197, allocations: 0 / 260.1 MB, free: 13.69 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003358/0.0223, allocations: 55.84 kB / 260.1 MB, free: 13.63 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.0002011/0.0225, allocations: 107.2 kB / 260.2 MB, free: 13.52 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0003987/0.0229, allocations: 192 kB / 260.4 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.863e-06/0.0229, allocations: 4 kB / 260.4 MB, free: 13.32 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000166/0.02307, allocations: 92.19 kB / 260.5 MB, free: 13.23 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003091/0.02338, allocations: 23.98 kB / 260.5 MB, free: 13.2 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007322/0.02411, allocations: 359.7 kB / 260.9 MB, free: 12.82 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001542/0.02426, allocations: 125.2 kB / 261 MB, free: 12.68 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0001035/0.02437, allocations: 33.92 kB / 261 MB, free: 12.65 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.471e-05/0.02443, allocations: 20.5 kB / 261.1 MB, free: 12.63 MB / 250.7 MB Notification: Performance of SimCode: time 7.62e-07/0.02443, allocations: 0 / 261.1 MB, free: 12.63 MB / 250.7 MB Notification: Performance of Templates: time 0.006524/0.03096, allocations: 1.923 MB / 263 MB, free: 10.72 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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.578348007984459]