Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009849/0.0009849, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001508/0.002493, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001022/0.001022, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001412/0.002434, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.954/0.954, allocations: 177.5 MB / 190 MB, free: 4.809 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08526/1.039, allocations: 53.86 MB / 243.9 MB, free: 14.88 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.435e-05/1.577e-05, allocations: 2.312 kB / 245.2 MB, free: 13.61 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001969/0.001985, allocations: 1.557 MB / 246.7 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004016/0.002386, allocations: 291.7 kB / 247 MB, free: 11.76 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.575e-05/0.002462, allocations: 11.94 kB / 247 MB, free: 11.75 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.779e-05/0.00254, allocations: 23.73 kB / 247.1 MB, free: 11.72 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.104e-05/0.002571, allocations: 15.8 kB / 247.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002358/0.002807, allocations: 119.8 kB / 247.2 MB, free: 11.59 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002308/0.003037, allocations: 267.4 kB / 247.4 MB, free: 11.33 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002015/0.003239, allocations: 139.4 kB / 247.6 MB, free: 11.19 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001117/0.00335, allocations: 127.8 kB / 247.7 MB, free: 11.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001011/0.003452, allocations: 71.77 kB / 247.8 MB, free: 11 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.503e-05/0.003477, allocations: 24 kB / 247.8 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.788e-05/0.003534, allocations: 24 kB / 247.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.577e-05/0.00358, allocations: 43.86 kB / 247.9 MB, free: 10.91 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 5.024e-05/0.00363, allocations: 51.88 kB / 247.9 MB, free: 10.86 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001721/0.003803, allocations: 155.4 kB / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.348e-06/0.003812, allocations: 0 / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.41e-07/0.003813, allocations: 0 / 248.1 MB, free: 10.7 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.606e-06/0.003821, allocations: 0 / 248.1 MB, free: 10.7 MB / 250.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.0004269/0.004248, allocations: 435.3 kB / 248.5 MB, free: 10.25 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.24e-05/0.004281, allocations: 16.56 kB / 248.5 MB, free: 10.23 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001719/0.004453, allocations: 125.9 kB / 248.6 MB, free: 10.09 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001561/0.004609, allocations: 149.5 kB / 248.8 MB, free: 9.922 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.148e-05/0.00463, allocations: 20.88 kB / 248.8 MB, free: 9.902 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.267e-05/0.004653, allocations: 24.38 kB / 248.8 MB, free: 9.879 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001703/0.004823, allocations: 192 kB / 249 MB, free: 9.68 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.004831, allocations: 192 / 249 MB, free: 9.68 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.405e-05/0.004845, allocations: 12.31 kB / 249 MB, free: 9.668 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.911e-06/0.004851, allocations: 12.38 kB / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.903e-05/0.00493, allocations: 63.41 kB / 249.1 MB, free: 9.59 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.005424, allocations: 484.1 kB / 249.6 MB, free: 9.098 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001295/0.005553, allocations: 114.4 kB / 249.7 MB, free: 8.977 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.636e-05/0.005589, allocations: 40.84 kB / 249.7 MB, free: 8.934 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.428e-05/0.005604, allocations: 4 kB / 249.7 MB, free: 8.93 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 9.152e-05/0.005695, allocations: 92.81 kB / 249.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 9.62e-07/0.005696, allocations: 0 / 249.8 MB, free: 8.828 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001513/0.005847, allocations: 130.7 kB / 249.9 MB, free: 8.695 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.024e-05/0.005878, allocations: 63.34 kB / 250 MB, free: 8.621 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.954e-05/0.005947, allocations: 158.5 kB / 250.2 MB, free: 8.453 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.729e-05/0.005965, allocations: 37.7 kB / 250.2 MB, free: 8.41 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.045e-05/0.006015, allocations: 128.8 kB / 250.3 MB, free: 8.281 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.006049, allocations: 67.5 kB / 250.4 MB, free: 8.215 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.701e-05/0.006106, allocations: 77.97 kB / 250.5 MB, free: 8.129 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.572e-05/0.006172, allocations: 326.8 kB / 250.8 MB, free: 7.801 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.345e-05/0.006206, allocations: 24.64 kB / 250.8 MB, free: 7.777 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.784e-05/0.006263, allocations: 96.06 kB / 250.9 MB, free: 7.66 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001013/0.006365, allocations: 142.6 kB / 251 MB, free: 7.496 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.006367, allocations: 3.938 kB / 251 MB, free: 7.492 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001271/0.006494, allocations: 157.4 kB / 251.2 MB, free: 7.332 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.068e-05/0.006504, allocations: 12.22 kB / 251.2 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.55e-06/0.00651, allocations: 3.984 kB / 251.2 MB, free: 7.316 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.006521, allocations: 4 kB / 251.2 MB, free: 7.312 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.006624, allocations: 39.92 kB / 251.3 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.00663, allocations: 7.938 kB / 251.3 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.81e-05/0.006678, allocations: 27.78 kB / 251.3 MB, free: 7.238 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.386e-06/0.006686, allocations: 8 kB / 251.3 MB, free: 7.23 MB / 250.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 6.983e-05/0.006756, allocations: 141.7 kB / 251.4 MB, free: 7.082 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.332e-05/0.006769, allocations: 12 kB / 251.4 MB, free: 7.07 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.055e-05/0.0068, allocations: 24.92 kB / 251.5 MB, free: 7.047 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.006802, allocations: 7.984 kB / 251.5 MB, free: 7.039 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.006805, allocations: 7.938 kB / 251.5 MB, free: 7.031 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.006809, allocations: 0 / 251.5 MB, free: 7.031 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002759/0.007084, allocations: 323.3 kB / 251.8 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/0.007085, allocations: 0 / 251.8 MB, free: 6.691 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.467e-05/0.00713, allocations: 19.98 kB / 251.8 MB, free: 6.672 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.921e-05/0.007149, allocations: 19.78 kB / 251.8 MB, free: 6.652 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.007152, allocations: 4 kB / 251.8 MB, free: 6.648 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.007161, allocations: 7.984 kB / 251.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.22e-07/0.007162, allocations: 0 / 251.9 MB, free: 6.641 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.007163, allocations: 4 kB / 251.9 MB, free: 6.637 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001191/0.007282, allocations: 209 kB / 252.1 MB, free: 6.418 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.809e-05/0.0073, allocations: 11.94 kB / 252.1 MB, free: 6.406 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.914e-05/0.00734, allocations: 11.98 kB / 252.1 MB, free: 6.395 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.28e-05/0.007382, allocations: 15.97 kB / 252.1 MB, free: 6.379 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.61e-06/0.007388, allocations: 4 kB / 252.1 MB, free: 6.375 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.882e-05/0.007407, allocations: 24.83 kB / 252.1 MB, free: 6.348 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007407, allocations: 0 / 252.1 MB, free: 6.348 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001466/0.007553, allocations: 47.89 kB / 252.2 MB, free: 6.301 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: 17 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$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 (24): * Single equations (assignments): 20 * 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 7.478e-05/0.007628, allocations: 92.34 kB / 252.3 MB, free: 6.203 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001341/0.007762, allocations: 124.5 kB / 252.4 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 6.132e-06/0.007768, allocations: 0 / 252.4 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.75e-05/0.007836, allocations: 64.72 kB / 252.5 MB, free: 6.012 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004897/0.008326, allocations: 198.1 kB / 252.6 MB, free: 5.781 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004187/0.008744, allocations: 309.5 kB / 252.9 MB, free: 5.453 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.013e-05/0.008784, allocations: 80.64 kB / 253 MB, free: 5.355 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.344e-05/0.008828, allocations: 21.94 kB / 253 MB, free: 5.332 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.255e-05/0.0089, allocations: 83.36 kB / 253.1 MB, free: 5.25 MB / 250.7 MB Notification: Performance of SimCode: time 1.072e-06/0.008902, allocations: 0 / 253.1 MB, free: 5.25 MB / 250.7 MB Notification: Performance of Templates: time 0.003078/0.01198, allocations: 1.827 MB / 255 MB, free: 3.453 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.4125334918498993]