Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.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.001322/0.001322, allocations: 80.8 kB / 22.28 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.0009561/0.0009561, allocations: 165.5 kB / 25.69 MB, free: 8.41 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.8689/0.8689, allocations: 158.6 MB / 187.6 MB, free: 2.777 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5006,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.512e-06/1.512e-06, allocations: 0 / 251.5 MB, free: 7.25 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2e-05/2.151e-05, allocations: 2.312 kB / 251.5 MB, free: 7.246 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003034/0.003056, allocations: 1.542 MB / 253.1 MB, free: 5.691 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.000761/0.003817, allocations: 251.1 kB / 253.3 MB, free: 5.445 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001126/0.003929, allocations: 4 kB / 253.3 MB, free: 5.441 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000155/0.004084, allocations: 35.61 kB / 253.4 MB, free: 5.406 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.457e-05/0.004159, allocations: 19.78 kB / 253.4 MB, free: 5.387 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005095/0.004668, allocations: 119.8 kB / 253.5 MB, free: 5.27 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.005062, allocations: 263.5 kB / 253.8 MB, free: 5.012 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002992/0.005361, allocations: 127.5 kB / 253.9 MB, free: 4.887 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001772/0.005538, allocations: 135.7 kB / 254 MB, free: 4.754 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.005714, allocations: 71.77 kB / 254.1 MB, free: 4.684 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.636e-05/0.00576, allocations: 27.94 kB / 254.1 MB, free: 4.656 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001155/0.005875, allocations: 28 kB / 254.1 MB, free: 4.629 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.773e-05/0.005943, allocations: 59.8 kB / 254.2 MB, free: 4.57 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.091e-05/0.006014, allocations: 59.89 kB / 254.3 MB, free: 4.512 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002826/0.006297, allocations: 179.3 kB / 254.4 MB, free: 4.336 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.254e-06/0.006299, allocations: 0 / 254.4 MB, free: 4.336 MB / 234.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.0063, allocations: 0 / 254.4 MB, free: 4.336 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.608e-06/0.006304, allocations: 0 / 254.4 MB, free: 4.336 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0005572/0.006862, allocations: 399.6 kB / 254.8 MB, free: 3.918 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.554e-05/0.006907, allocations: 11.98 kB / 254.8 MB, free: 3.906 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.098e-05/0.006978, allocations: 32.91 kB / 254.9 MB, free: 3.875 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002297/0.007208, allocations: 145.5 kB / 255 MB, free: 3.707 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.418e-05/0.007242, allocations: 20.88 kB / 255 MB, free: 3.688 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.878e-05/0.007281, allocations: 32.36 kB / 255.1 MB, free: 3.656 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000306/0.007587, allocations: 192 kB / 255.2 MB, free: 3.449 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/0.007599, allocations: 192 / 255.2 MB, free: 3.449 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.21e-05/0.007621, allocations: 12.38 kB / 255.3 MB, free: 3.438 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.068e-05/0.007632, allocations: 4.375 kB / 255.3 MB, free: 3.434 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001457/0.007778, allocations: 75.33 kB / 255.3 MB, free: 3.363 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007716/0.008549, allocations: 480.1 kB / 255.8 MB, free: 2.871 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002209/0.00877, allocations: 106.5 kB / 255.9 MB, free: 2.758 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.269e-05/0.008843, allocations: 40.84 kB / 255.9 MB, free: 2.715 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.013e-05/0.008863, allocations: 7.938 kB / 256 MB, free: 2.707 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.008999, allocations: 103.2 kB / 256.1 MB, free: 2.594 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 2.245e-06/0.009002, allocations: 0 / 256.1 MB, free: 2.594 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002376/0.009239, allocations: 126.1 kB / 256.2 MB, free: 2.465 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.458e-05/0.009284, allocations: 67.27 kB / 256.2 MB, free: 2.387 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001006/0.009384, allocations: 154.4 kB / 256.4 MB, free: 2.227 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.009414, allocations: 37.7 kB / 256.4 MB, free: 2.184 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.613e-05/0.00949, allocations: 140.7 kB / 256.6 MB, free: 2.043 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.37e-05/0.009544, allocations: 67.45 kB / 256.6 MB, free: 1.977 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.413e-05/0.009638, allocations: 69.97 kB / 256.7 MB, free: 1.898 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 9.755e-05/0.009735, allocations: 330.8 kB / 257 MB, free: 1.566 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.057e-05/0.009796, allocations: 32.64 kB / 257.1 MB, free: 1.535 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001013/0.009897, allocations: 92.12 kB / 257.1 MB, free: 1.422 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001638/0.01006, allocations: 130.7 kB / 257.3 MB, free: 1.27 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.01006, allocations: 0 / 257.3 MB, free: 1.27 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002423/0.01031, allocations: 165.4 kB / 257.4 MB, free: 1.102 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.01032, allocations: 8 kB / 257.4 MB, free: 1.094 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.01033, allocations: 224 / 257.4 MB, free: 1.094 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.499e-05/0.01034, allocations: 8 kB / 257.5 MB, free: 1.086 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001627/0.01051, allocations: 39.91 kB / 257.5 MB, free: 1.047 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.538e-06/0.01052, allocations: 7.938 kB / 257.5 MB, free: 1.039 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.082e-05/0.01061, allocations: 23.84 kB / 257.5 MB, free: 1.016 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.581e-05/0.01063, allocations: 11.98 kB / 257.5 MB, free: 1.004 MB / 234.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 31 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,transition2.t_start,$PRE.transition2.t_start,transition2.fire,transition2.enableFire,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,step.active,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,transition2.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 (39): * Single equations (assignments): 39 * 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.0001136/0.01075, allocations: 137.8 kB / 257.7 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.829e-05/0.01077, allocations: 19.98 kB / 257.7 MB, free: 0.8398 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002175/0.01099, allocations: 126.4 kB / 257.8 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.607e-06/0.011, allocations: 0 / 257.8 MB, free: 0.7109 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.011, allocations: 11.94 kB / 257.8 MB, free: 0.6992 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.761e-06/0.01101, allocations: 3.984 kB / 257.8 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004727/0.01148, allocations: 342.5 kB / 258.2 MB, free: 344 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.01148, allocations: 0 / 258.2 MB, free: 344 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.37e-05/0.01156, allocations: 16 kB / 258.2 MB, free: 328 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.01157, allocations: 3.938 kB / 258.2 MB, free: 324 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.344e-05/0.01158, allocations: 7.984 kB / 258.2 MB, free: 316 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.448e-06/0.01159, allocations: 3.938 kB / 258.2 MB, free: 312 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.433e-06/0.01159, allocations: 4 kB / 258.2 MB, free: 308 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001905/0.01178, allocations: 203.4 kB / 258.4 MB, free: 88 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.188e-05/0.0118, allocations: 31.77 kB / 258.4 MB, free: 56 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.401e-05/0.01183, allocations: 4 kB / 258.4 MB, free: 52 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.47e-05/0.01191, allocations: 8 kB / 258.4 MB, free: 44 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.26e-05/0.01197, allocations: 19.95 kB / 258.5 MB, free: 24 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.01199, allocations: 8 kB / 258.5 MB, free: 16 kB / 234.7 MB Notification: Performance of sorting global known variables: time 3.909e-05/0.01203, allocations: 20.78 kB / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01203, allocations: 0 / 258.5 MB, free: 15.99 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002784/0.01231, allocations: 51.89 kB / 258.5 MB, free: 15.94 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 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.localActive,step.newActive,step.oldActive,transition2.fire,transition2.t_start,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 (26): * Single equations (assignments): 22 * 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.0001514/0.01246, allocations: 88.34 kB / 258.6 MB, free: 15.85 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002067/0.01266, allocations: 129.9 kB / 258.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.01267, allocations: 0 / 258.8 MB, free: 15.72 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.472e-05/0.01276, allocations: 68.69 kB / 258.8 MB, free: 15.65 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002193/0.01298, allocations: 27.97 kB / 258.8 MB, free: 15.62 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004864/0.01347, allocations: 313.4 kB / 259.2 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.165e-05/0.01353, allocations: 80.33 kB / 259.2 MB, free: 15.19 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 8.448e-05/0.01362, allocations: 30.38 kB / 259.3 MB, free: 15.16 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.01373, allocations: 83.36 kB / 259.3 MB, free: 15.08 MB / 250.7 MB Notification: Performance of SimCode: time 8.02e-07/0.01374, allocations: 0 / 259.3 MB, free: 15.08 MB / 250.7 MB Notification: Performance of Templates: time 0.00538/0.01912, allocations: 2.095 MB / 261.4 MB, free: 13 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/StateGraph/Examples/FirstExample/FirstExample.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.6354311830364168]