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.0009326/0.0009326, allocations: 80.92 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.00143/0.00143, allocations: 162.5 kB / 25.7 MB, free: 8.406 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.9886/0.9886, 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 2.014e-06/2.014e-06, allocations: 0 / 251.5 MB, free: 7.312 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.617e-05/2.818e-05, allocations: 2.312 kB / 251.5 MB, free: 7.309 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003042/0.003071, allocations: 1.495 MB / 253 MB, free: 5.805 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007677/0.003838, allocations: 259.1 kB / 253.2 MB, free: 5.551 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001143/0.003953, allocations: 3.938 kB / 253.2 MB, free: 5.547 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.004098, allocations: 23.73 kB / 253.3 MB, free: 5.523 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.012e-05/0.004168, allocations: 19.81 kB / 253.3 MB, free: 5.504 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000555/0.004723, allocations: 119.7 kB / 253.4 MB, free: 5.387 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003992/0.005122, allocations: 267.5 kB / 253.7 MB, free: 5.125 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002927/0.005415, allocations: 139.5 kB / 253.8 MB, free: 4.988 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001652/0.00558, allocations: 135.8 kB / 253.9 MB, free: 4.855 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001356/0.005715, allocations: 67.78 kB / 254 MB, free: 4.789 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.221e-05/0.005758, allocations: 24 kB / 254 MB, free: 4.766 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.522e-05/0.005853, allocations: 35.97 kB / 254.1 MB, free: 4.73 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 6.747e-05/0.00592, allocations: 51.83 kB / 254.1 MB, free: 4.68 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.868e-05/0.005999, allocations: 71.8 kB / 254.2 MB, free: 4.609 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.006309, allocations: 175.3 kB / 254.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.527e-06/0.006312, allocations: 0 / 254.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.864e-06/0.006314, allocations: 0 / 254.4 MB, free: 4.438 MB / 234.7 MB Notification: Performance of Transformations before backend: time 7.203e-06/0.006321, allocations: 0 / 254.4 MB, free: 4.438 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.0005883/0.006909, allocations: 395.7 kB / 254.7 MB, free: 4.023 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.472e-05/0.006954, allocations: 11.98 kB / 254.7 MB, free: 4.012 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.78e-05/0.007032, allocations: 36.91 kB / 254.8 MB, free: 3.977 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002568/0.007289, allocations: 149.5 kB / 254.9 MB, free: 3.805 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.615e-05/0.007325, allocations: 20.88 kB / 255 MB, free: 3.785 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.965e-05/0.007365, allocations: 24.38 kB / 255 MB, free: 3.762 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003079/0.007673, allocations: 196 kB / 255.2 MB, free: 3.551 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.007687, allocations: 4.125 kB / 255.2 MB, free: 3.547 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.399e-05/0.007711, allocations: 12.38 kB / 255.2 MB, free: 3.535 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.00772, allocations: 4.375 kB / 255.2 MB, free: 3.531 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001179/0.007838, allocations: 63.41 kB / 255.2 MB, free: 3.473 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007876/0.008626, allocations: 484.1 kB / 255.7 MB, free: 2.977 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000209/0.008835, allocations: 118.4 kB / 255.8 MB, free: 2.852 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.845e-05/0.008893, allocations: 40.84 kB / 255.9 MB, free: 2.809 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.043e-05/0.008914, allocations: 4 kB / 255.9 MB, free: 2.805 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001437/0.009057, allocations: 91.19 kB / 256 MB, free: 2.703 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 3.707e-06/0.009061, allocations: 0 / 256 MB, free: 2.703 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002428/0.009304, allocations: 134 kB / 256.1 MB, free: 2.562 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.875e-05/0.009353, allocations: 59.34 kB / 256.2 MB, free: 2.492 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001201/0.009473, allocations: 165.3 kB / 256.3 MB, free: 2.32 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.78e-05/0.009511, allocations: 37.7 kB / 256.4 MB, free: 2.277 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.007e-05/0.009591, allocations: 128.8 kB / 256.5 MB, free: 2.148 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.448e-05/0.009645, allocations: 71.45 kB / 256.6 MB, free: 2.078 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001016/0.009747, allocations: 77.95 kB / 256.6 MB, free: 1.992 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001107/0.009857, allocations: 326.8 kB / 256.9 MB, free: 1.664 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.458e-05/0.009912, allocations: 28.64 kB / 257 MB, free: 1.637 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001233/0.01004, allocations: 88.12 kB / 257.1 MB, free: 1.527 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000128/0.01016, allocations: 138.7 kB / 257.2 MB, free: 1.367 MB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.01017, allocations: 0 / 257.2 MB, free: 1.367 MB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001736/0.01034, allocations: 161.4 kB / 257.4 MB, free: 1.203 MB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.01035, allocations: 4 kB / 257.4 MB, free: 1.199 MB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.612e-06/0.01036, allocations: 8.156 kB / 257.4 MB, free: 1.191 MB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.315e-05/0.01037, allocations: 8 kB / 257.4 MB, free: 1.184 MB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001007/0.01048, allocations: 31.92 kB / 257.4 MB, free: 1.152 MB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.302e-06/0.01048, allocations: 7.938 kB / 257.4 MB, free: 1.145 MB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.607e-05/0.01055, allocations: 27.83 kB / 257.4 MB, free: 1.117 MB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.947e-05/0.01057, allocations: 12 kB / 257.5 MB, free: 1.105 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 9.668e-05/0.01066, allocations: 133.7 kB / 257.6 MB, free: 0.9648 MB / 234.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.071e-05/0.01068, allocations: 19.98 kB / 257.6 MB, free: 0.9453 MB / 234.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001672/0.01085, allocations: 126.5 kB / 257.7 MB, free: 0.8164 MB / 234.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.518e-06/0.01086, allocations: 4 kB / 257.7 MB, free: 0.8125 MB / 234.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.01086, allocations: 7.938 kB / 257.7 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.779e-06/0.01087, allocations: 0 / 257.7 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003724/0.01124, allocations: 342.5 kB / 258.1 MB, free: 456 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.01124, allocations: 0 / 258.1 MB, free: 456 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.787e-05/0.01129, allocations: 23.92 kB / 258.1 MB, free: 432 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.01129, allocations: 7.922 kB / 258.1 MB, free: 424 kB / 234.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.544e-06/0.0113, allocations: 0 / 258.1 MB, free: 424 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.166e-06/0.0113, allocations: 4 kB / 258.1 MB, free: 420 kB / 234.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.0113, allocations: 0 / 258.1 MB, free: 420 kB / 234.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000131/0.01144, allocations: 211.4 kB / 258.3 MB, free: 192 kB / 234.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.465e-05/0.01145, allocations: 23.78 kB / 258.3 MB, free: 168 kB / 234.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.647e-05/0.01147, allocations: 4 kB / 258.3 MB, free: 164 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.549e-05/0.01151, allocations: 11.98 kB / 258.4 MB, free: 152 kB / 234.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.987e-05/0.01156, allocations: 19.97 kB / 258.4 MB, free: 132 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.053e-05/0.01157, allocations: 7.984 kB / 258.4 MB, free: 124 kB / 234.7 MB Notification: Performance of sorting global known variables: time 2.299e-05/0.0116, allocations: 16.84 kB / 258.4 MB, free: 104 kB / 234.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0116, allocations: 0 / 258.4 MB, free: 104 kB / 234.7 MB Notification: Performance of remove unused functions: time 0.0002154/0.01181, allocations: 55.83 kB / 258.5 MB, free: 48 kB / 234.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.0001701/0.01198, allocations: 84.45 kB / 258.5 MB, free: 15.95 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001969/0.01218, allocations: 133.9 kB / 258.7 MB, free: 15.82 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.649e-06/0.01218, allocations: 0 / 258.7 MB, free: 15.82 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.017e-05/0.01225, allocations: 68.66 kB / 258.7 MB, free: 15.75 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001732/0.01243, allocations: 23.92 kB / 258.8 MB, free: 15.73 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003976/0.01282, allocations: 321.5 kB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.579e-05/0.01287, allocations: 76.33 kB / 259.1 MB, free: 15.29 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.973e-05/0.01293, allocations: 30.33 kB / 259.2 MB, free: 15.26 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.271e-05/0.01302, allocations: 87.36 kB / 259.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of SimCode: time 1.403e-06/0.01302, allocations: 0 / 259.3 MB, free: 15.18 MB / 250.7 MB Notification: Performance of Templates: time 0.00418/0.0172, allocations: 2.094 MB / 261.4 MB, free: 13.11 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 -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.7424859409220517]