Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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.0009207/0.0009207, allocations: 80.8 kB / 22.29 MB, free: 2.203 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.00104/0.00104, allocations: 163.9 kB / 25.7 MB, free: 8.422 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.9874/0.9874, allocations: 158.6 MB / 187.6 MB, free: 2.77 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5009,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.242e-06/1.242e-06, allocations: 0 / 251.5 MB, free: 7.297 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.953e-05/2.077e-05, allocations: 2.312 kB / 251.5 MB, free: 7.293 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002048/0.002069, allocations: 1.676 MB / 253.2 MB, free: 5.602 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008101/0.002879, allocations: 279 kB / 253.4 MB, free: 5.328 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.131e-05/0.002961, allocations: 7.938 kB / 253.5 MB, free: 5.32 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001128/0.003073, allocations: 23.67 kB / 253.5 MB, free: 5.297 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.633e-05/0.00312, allocations: 23.73 kB / 253.5 MB, free: 5.273 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.003467, allocations: 131.8 kB / 253.6 MB, free: 5.145 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002288/0.003696, allocations: 271.5 kB / 253.9 MB, free: 4.879 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002053/0.003901, allocations: 166.3 kB / 254.1 MB, free: 4.715 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001119/0.004013, allocations: 139.7 kB / 254.2 MB, free: 4.578 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001033/0.004116, allocations: 67.78 kB / 254.3 MB, free: 4.512 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.237e-05/0.004149, allocations: 27.98 kB / 254.3 MB, free: 4.484 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.85e-05/0.004217, allocations: 35.92 kB / 254.3 MB, free: 4.449 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 5.113e-05/0.004268, allocations: 63.77 kB / 254.4 MB, free: 4.387 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.553e-05/0.004324, allocations: 67.81 kB / 254.4 MB, free: 4.32 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002373/0.004561, allocations: 187.3 kB / 254.6 MB, free: 4.137 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.953e-06/0.004563, allocations: 0 / 254.6 MB, free: 4.137 MB / 234.7 MB Notification: Performance of FrontEnd: time 7.31e-07/0.004564, allocations: 0 / 254.6 MB, free: 4.137 MB / 234.7 MB Notification: Performance of Transformations before backend: time 3.838e-06/0.004568, allocations: 0 / 254.6 MB, free: 4.137 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.0003926/0.00496, allocations: 395.3 kB / 255 MB, free: 3.719 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.121e-05/0.004992, allocations: 11.98 kB / 255 MB, free: 3.707 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.693e-05/0.005039, allocations: 36.91 kB / 255.1 MB, free: 3.672 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.005202, allocations: 161.4 kB / 255.2 MB, free: 3.488 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.405e-05/0.005226, allocations: 24.88 kB / 255.2 MB, free: 3.465 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.675e-05/0.005253, allocations: 24.38 kB / 255.3 MB, free: 3.441 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002354/0.005488, allocations: 226.5 kB / 255.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.005498, allocations: 192 / 255.5 MB, free: 3.195 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.005515, allocations: 16.36 kB / 255.5 MB, free: 3.18 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.444e-06/0.005522, allocations: 8.375 kB / 255.5 MB, free: 3.172 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.566e-05/0.005608, allocations: 71.28 kB / 255.6 MB, free: 3.105 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006005/0.006208, allocations: 0.7348 MB / 256.3 MB, free: 2.336 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001296/0.006338, allocations: 86.53 kB / 256.4 MB, free: 2.242 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.289e-05/0.006391, allocations: 44.83 kB / 256.4 MB, free: 2.195 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.754e-05/0.006408, allocations: 7.984 kB / 256.5 MB, free: 2.188 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001287/0.006537, allocations: 103.1 kB / 256.6 MB, free: 2.074 MB / 234.7 MB Notification: Performance of pre-optimization done (n=23): time 1.943e-06/0.006539, allocations: 0 / 256.6 MB, free: 2.074 MB / 234.7 MB Notification: Performance of matching and sorting (n=23): time 0.0002197/0.006759, allocations: 122.1 kB / 256.7 MB, free: 1.949 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.437e-05/0.006803, allocations: 59.41 kB / 256.7 MB, free: 1.879 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.704e-05/0.0069, allocations: 170.2 kB / 256.9 MB, free: 1.703 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.18e-05/0.006922, allocations: 33.7 kB / 256.9 MB, free: 1.664 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.263e-05/0.006984, allocations: 144.7 kB / 257.1 MB, free: 1.52 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.157e-05/0.007016, allocations: 63.5 kB / 257.1 MB, free: 1.457 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.501e-05/0.007081, allocations: 89.84 kB / 257.2 MB, free: 1.359 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 7.054e-05/0.007152, allocations: 326.8 kB / 257.5 MB, free: 1.031 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.021e-05/0.007182, allocations: 24.64 kB / 257.6 MB, free: 1.008 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.159e-05/0.007253, allocations: 109.8 kB / 257.7 MB, free: 0.8711 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000111/0.007364, allocations: 148.4 kB / 257.8 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.245e-06/0.007367, allocations: 0 / 257.8 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of matching and sorting (n=40) (initialization): time 0.0001583/0.007525, allocations: 173.3 kB / 258 MB, free: 0.5195 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.707e-05/0.007542, allocations: 11.94 kB / 258 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.007548, allocations: 288 / 258 MB, free: 0.5078 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.739e-05/0.007565, allocations: 11.98 kB / 258 MB, free: 0.4961 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000123/0.007688, allocations: 35.92 kB / 258 MB, free: 472 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.007696, allocations: 4 kB / 258.1 MB, free: 468 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.232e-05/0.007789, allocations: 23.89 kB / 258.1 MB, free: 444 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.408e-05/0.007813, allocations: 11.98 kB / 258.1 MB, free: 432 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 9.143e-05/0.007904, allocations: 140.3 kB / 258.2 MB, free: 284 kB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.834e-05/0.007923, allocations: 19.92 kB / 258.2 MB, free: 264 kB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001498/0.008072, allocations: 126.8 kB / 258.4 MB, free: 128 kB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.316e-06/0.008076, allocations: 7.938 kB / 258.4 MB, free: 120 kB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.154e-06/0.008078, allocations: 8 kB / 258.4 MB, free: 112 kB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.149e-06/0.008083, allocations: 3.984 kB / 258.4 MB, free: 108 kB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003519/0.008435, allocations: 365.6 kB / 258.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.008437, allocations: 0 / 258.7 MB, free: 15.72 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.301e-05/0.0085, allocations: 23.92 kB / 258.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.567e-06/0.008504, allocations: 0 / 258.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.406e-06/0.008512, allocations: 0 / 258.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.008514, allocations: 0 / 258.8 MB, free: 15.7 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.008515, allocations: 4 kB / 258.8 MB, free: 15.69 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001242/0.008639, allocations: 211.3 kB / 259 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.117e-05/0.00865, allocations: 15.91 kB / 259 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.632e-05/0.008667, allocations: 8 kB / 259 MB, free: 15.45 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.62e-05/0.008713, allocations: 11.98 kB / 259 MB, free: 15.43 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.008753, allocations: 11.97 kB / 259 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.938e-06/0.008763, allocations: 8 kB / 259 MB, free: 15.41 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.961e-05/0.008783, allocations: 24.78 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.008783, allocations: 0 / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.000183/0.008966, allocations: 63.77 kB / 259.1 MB, free: 15.32 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,step.active,transition1.enableFire,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.0001138/0.00908, allocations: 88.39 kB / 259.2 MB, free: 15.23 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001853/0.009265, allocations: 133.9 kB / 259.3 MB, free: 15.1 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.009269, allocations: 0 / 259.3 MB, free: 15.1 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.08e-05/0.009329, allocations: 64.7 kB / 259.4 MB, free: 15.03 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001586/0.009488, allocations: 27.92 kB / 259.4 MB, free: 15 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000376/0.009864, allocations: 321.1 kB / 259.7 MB, free: 14.67 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.413e-05/0.009908, allocations: 80.33 kB / 259.8 MB, free: 14.57 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.541e-05/0.009964, allocations: 26.5 kB / 259.8 MB, free: 14.54 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.319e-05/0.01005, allocations: 83.36 kB / 259.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of SimCode: time 6.01e-07/0.01005, allocations: 0 / 259.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of Templates: time 0.004019/0.01407, allocations: 2.112 MB / 262 MB, free: 12.37 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample_Variant2/FirstExample_Variant2.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.6922547393478453]