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.0007757/0.0007757, allocations: 80.11 kB / 9.934 MB, free: 0.7539 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001054/0.00183, allocations: 449.7 kB / 10.37 MB, free: 324 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.0006863/0.0006863, allocations: 165.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009038/0.00159, allocations: 463.6 kB / 11.72 MB, free: 2.453 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.937/0.937, allocations: 177.4 MB / 189.9 MB, free: 4.832 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08549/1.022, allocations: 53.86 MB / 243.7 MB, free: 14.91 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 2.475e-06/2.475e-06, allocations: 3.984 kB / 245 MB, free: 13.68 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.055e-05/1.302e-05, allocations: 6.312 kB / 245 MB, free: 13.67 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002008/0.002021, allocations: 1.554 MB / 246.5 MB, free: 12.11 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004564/0.002478, allocations: 287.8 kB / 246.8 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.669e-05/0.002554, allocations: 7.938 kB / 246.8 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.744e-05/0.002632, allocations: 27.73 kB / 246.9 MB, free: 11.79 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.645e-05/0.002668, allocations: 11.81 kB / 246.9 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002731/0.002941, allocations: 123.7 kB / 247 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002664/0.003208, allocations: 267.5 kB / 247.3 MB, free: 11.39 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002092/0.003417, allocations: 139.4 kB / 247.4 MB, free: 11.26 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001454/0.003562, allocations: 135.7 kB / 247.5 MB, free: 11.12 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.003675, allocations: 71.77 kB / 247.6 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.865e-05/0.003704, allocations: 20 kB / 247.6 MB, free: 11.04 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.923e-05/0.003763, allocations: 24 kB / 247.6 MB, free: 11.01 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 5.017e-05/0.003813, allocations: 39.88 kB / 247.7 MB, free: 10.97 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.222e-05/0.003876, allocations: 55.86 kB / 247.7 MB, free: 10.92 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002114/0.004087, allocations: 155.4 kB / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.454e-05/0.004102, allocations: 0 / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.71e-07/0.004102, allocations: 0 / 247.9 MB, free: 10.77 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.657e-05/0.004119, allocations: 4 kB / 247.9 MB, free: 10.76 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.0005354/0.004654, allocations: 439.2 kB / 248.3 MB, free: 10.3 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.972e-05/0.004684, allocations: 8.625 kB / 248.3 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002091/0.004893, allocations: 122 kB / 248.4 MB, free: 10.16 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001815/0.005074, allocations: 153.5 kB / 248.6 MB, free: 9.98 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.905e-05/0.005104, allocations: 20.88 kB / 248.6 MB, free: 9.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.733e-05/0.005131, allocations: 28.36 kB / 248.6 MB, free: 9.934 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002241/0.005355, allocations: 188 kB / 248.8 MB, free: 9.734 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.978e-06/0.005365, allocations: 192 / 248.8 MB, free: 9.734 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.615e-05/0.005381, allocations: 16.36 kB / 248.8 MB, free: 9.719 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.159e-05/0.005393, allocations: 4.375 kB / 248.8 MB, free: 9.715 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001024/0.005495, allocations: 67.41 kB / 248.9 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005813/0.006076, allocations: 480.1 kB / 249.4 MB, free: 9.16 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001572/0.006234, allocations: 98.53 kB / 249.5 MB, free: 9.055 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.767e-05/0.006281, allocations: 44.83 kB / 249.5 MB, free: 9.008 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.569e-05/0.006297, allocations: 4 kB / 249.5 MB, free: 9.004 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001209/0.006418, allocations: 95.19 kB / 249.6 MB, free: 8.898 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.006419, allocations: 0 / 249.6 MB, free: 8.898 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001849/0.006604, allocations: 135 kB / 249.7 MB, free: 8.762 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.8e-05/0.006642, allocations: 59.34 kB / 249.8 MB, free: 8.691 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.871e-05/0.006731, allocations: 158.5 kB / 250 MB, free: 8.523 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.425e-05/0.006755, allocations: 37.7 kB / 250 MB, free: 8.48 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.165e-05/0.006817, allocations: 128.8 kB / 250.1 MB, free: 8.352 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.498e-05/0.006862, allocations: 67.52 kB / 250.2 MB, free: 8.285 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.857e-05/0.00694, allocations: 77.95 kB / 250.3 MB, free: 8.199 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.997e-05/0.00703, allocations: 330.8 kB / 250.6 MB, free: 7.867 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.652e-05/0.007067, allocations: 24.66 kB / 250.6 MB, free: 7.844 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.962e-05/0.007146, allocations: 96.02 kB / 250.7 MB, free: 7.727 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001325/0.007279, allocations: 138.7 kB / 250.8 MB, free: 7.566 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.405e-06/0.007281, allocations: 0 / 250.8 MB, free: 7.566 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000184/0.007465, allocations: 169.5 kB / 251 MB, free: 7.395 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.229e-05/0.007478, allocations: 4 kB / 251 MB, free: 7.391 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.982e-06/0.007484, allocations: 4 kB / 251 MB, free: 7.387 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.067e-05/0.007494, allocations: 4 kB / 251 MB, free: 7.383 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.00762, allocations: 35.92 kB / 251 MB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.994e-06/0.007627, allocations: 11.88 kB / 251.1 MB, free: 7.336 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.72e-05/0.007694, allocations: 31.77 kB / 251.1 MB, free: 7.305 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.257e-05/0.007706, allocations: 12 kB / 251.1 MB, free: 7.293 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 8.353e-05/0.00779, allocations: 129.8 kB / 251.2 MB, free: 7.156 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.024e-05/0.00781, allocations: 24.05 kB / 251.3 MB, free: 7.133 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.437e-05/0.007845, allocations: 16.94 kB / 251.3 MB, free: 7.117 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.246e-06/0.007848, allocations: 4 kB / 251.3 MB, free: 7.113 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.007851, allocations: 3.938 kB / 251.3 MB, free: 7.109 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.677e-06/0.007854, allocations: 0 / 251.3 MB, free: 7.109 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003523/0.008206, allocations: 339.3 kB / 251.6 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.008208, allocations: 0 / 251.6 MB, free: 6.754 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.039e-05/0.008268, allocations: 16 kB / 251.6 MB, free: 6.738 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.806e-05/0.008286, allocations: 27.7 kB / 251.7 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.008289, allocations: 0 / 251.7 MB, free: 6.711 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.756e-06/0.008298, allocations: 8 kB / 251.7 MB, free: 6.703 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.0083, allocations: 4 kB / 251.7 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.008301, allocations: 0 / 251.7 MB, free: 6.699 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001343/0.008436, allocations: 205 kB / 251.9 MB, free: 6.484 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.835e-05/0.008454, allocations: 11.92 kB / 251.9 MB, free: 6.473 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.748e-05/0.008511, allocations: 4 kB / 251.9 MB, free: 6.469 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.008555, allocations: 19.97 kB / 251.9 MB, free: 6.449 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.008565, allocations: 3.984 kB / 251.9 MB, free: 6.445 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.943e-05/0.008584, allocations: 28.67 kB / 251.9 MB, free: 6.418 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.008584, allocations: 0 / 251.9 MB, free: 6.418 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002187/0.008803, allocations: 51.88 kB / 252 MB, free: 6.367 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.382e-05/0.008877, allocations: 84.36 kB / 252.1 MB, free: 6.277 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.000155/0.009032, allocations: 120.5 kB / 252.2 MB, free: 6.156 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 7.384e-06/0.009039, allocations: 4 kB / 252.2 MB, free: 6.152 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.607e-05/0.009105, allocations: 60.75 kB / 252.2 MB, free: 6.09 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001756/0.009281, allocations: 28 kB / 252.3 MB, free: 6.062 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005103/0.009791, allocations: 309.9 kB / 252.6 MB, free: 5.734 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.313e-05/0.009844, allocations: 83.98 kB / 252.7 MB, free: 5.633 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.993e-05/0.009904, allocations: 21.89 kB / 252.7 MB, free: 5.609 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.403e-05/0.009988, allocations: 79.36 kB / 252.8 MB, free: 5.531 MB / 250.7 MB Notification: Performance of SimCode: time 5.21e-07/0.009989, allocations: 0 / 252.8 MB, free: 5.531 MB / 250.7 MB Notification: Performance of Templates: time 0.003784/0.01377, allocations: 1.87 MB / 254.6 MB, free: 3.695 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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.409205890260637]