Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.001211/0.001211, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00188/0.003091, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001298/0.001298, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001714/0.003011, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.066/1.066, allocations: 177.2 MB / 189.6 MB, free: 5.293 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09239/1.159, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.313e-06/1.313e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.253e-05/1.385e-05, allocations: 6.25 kB / 244.5 MB, free: 14.33 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001571/0.001585, allocations: 1.557 MB / 246.1 MB, free: 12.76 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003606/0.001946, allocations: 287.8 kB / 246.3 MB, free: 12.48 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.78e-05/0.002014, allocations: 7.938 kB / 246.3 MB, free: 12.47 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 6.888e-05/0.002083, allocations: 27.73 kB / 246.4 MB, free: 12.44 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.176e-05/0.002114, allocations: 19.8 kB / 246.4 MB, free: 12.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002387/0.002353, allocations: 119.7 kB / 246.5 MB, free: 12.3 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002171/0.00257, allocations: 271.5 kB / 246.8 MB, free: 12.04 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001793/0.002749, allocations: 135.4 kB / 246.9 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001048/0.002854, allocations: 131.8 kB / 247 MB, free: 11.78 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.791e-05/0.002952, allocations: 71.77 kB / 247.1 MB, free: 11.71 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.343e-05/0.002976, allocations: 20 kB / 247.1 MB, free: 11.69 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.741e-05/0.003033, allocations: 28 kB / 247.2 MB, free: 11.66 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.129e-05/0.003074, allocations: 43.86 kB / 247.2 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.57e-05/0.00312, allocations: 51.88 kB / 247.2 MB, free: 11.57 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001733/0.003293, allocations: 159.3 kB / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.358e-05/0.003307, allocations: 0 / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.003307, allocations: 0 / 247.4 MB, free: 11.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.00332, allocations: 0 / 247.4 MB, free: 11.41 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.0004653/0.003786, allocations: 431.3 kB / 247.8 MB, free: 10.96 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.525e-05/0.003811, allocations: 8.031 kB / 247.8 MB, free: 10.95 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001839/0.003995, allocations: 126 kB / 248 MB, free: 10.81 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001483/0.004143, allocations: 149.6 kB / 248.1 MB, free: 10.64 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.558e-05/0.004169, allocations: 20.88 kB / 248.1 MB, free: 10.62 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.354e-05/0.004192, allocations: 24.38 kB / 248.1 MB, free: 10.59 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001744/0.004367, allocations: 195.9 kB / 248.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.836e-06/0.004376, allocations: 192 / 248.3 MB, free: 10.39 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.004388, allocations: 8.359 kB / 248.3 MB, free: 10.38 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.004395, allocations: 8.375 kB / 248.4 MB, free: 10.37 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.74e-05/0.004473, allocations: 63.41 kB / 248.4 MB, free: 10.31 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000471/0.004944, allocations: 484 kB / 248.9 MB, free: 9.816 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001331/0.005077, allocations: 114.5 kB / 249 MB, free: 9.695 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.329e-05/0.00511, allocations: 36.84 kB / 249 MB, free: 9.656 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.327e-05/0.005123, allocations: 4 kB / 249 MB, free: 9.652 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001044/0.005228, allocations: 97.62 kB / 249.1 MB, free: 9.547 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.433e-06/0.005229, allocations: 0 / 249.1 MB, free: 9.547 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001532/0.005382, allocations: 133.4 kB / 249.3 MB, free: 9.41 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.499e-05/0.005417, allocations: 59.34 kB / 249.3 MB, free: 9.34 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.96e-05/0.005487, allocations: 154.5 kB / 249.5 MB, free: 9.176 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.936e-05/0.005506, allocations: 41.69 kB / 249.5 MB, free: 9.129 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.005557, allocations: 132.8 kB / 249.6 MB, free: 8.996 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.35e-05/0.005591, allocations: 67.52 kB / 249.7 MB, free: 8.93 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.823e-05/0.005649, allocations: 73.97 kB / 249.8 MB, free: 8.848 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.645e-05/0.005715, allocations: 330.8 kB / 250.1 MB, free: 8.516 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.741e-05/0.005743, allocations: 28.66 kB / 250.1 MB, free: 8.488 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.864e-05/0.005802, allocations: 100 kB / 250.2 MB, free: 8.367 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.467e-05/0.005896, allocations: 127.2 kB / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.464e-06/0.005899, allocations: 0 / 250.4 MB, free: 8.219 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.00013/0.006029, allocations: 165.4 kB / 250.5 MB, free: 8.051 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.067e-05/0.006039, allocations: 8 kB / 250.5 MB, free: 8.043 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.449e-06/0.006044, allocations: 0 / 250.5 MB, free: 8.043 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.146e-06/0.006052, allocations: 4 kB / 250.5 MB, free: 8.039 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001127/0.006165, allocations: 43.86 kB / 250.6 MB, free: 7.996 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.611e-06/0.00617, allocations: 12.16 kB / 250.6 MB, free: 7.984 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.829e-05/0.006219, allocations: 27.78 kB / 250.6 MB, free: 7.957 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.006228, allocations: 11.98 kB / 250.6 MB, free: 7.945 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 7.537e-05/0.006304, allocations: 133.8 kB / 250.7 MB, free: 7.805 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.242e-05/0.006326, allocations: 19.97 kB / 250.8 MB, free: 7.785 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.686e-05/0.006363, allocations: 20.94 kB / 250.8 MB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.334e-06/0.006365, allocations: 0 / 250.8 MB, free: 7.766 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.465e-06/0.006368, allocations: 7.938 kB / 250.8 MB, free: 7.758 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.006371, allocations: 3.938 kB / 250.8 MB, free: 7.754 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006479/0.007019, allocations: 337.8 kB / 251.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.007021, allocations: 0 / 251.1 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.895e-05/0.00708, allocations: 19.94 kB / 251.2 MB, free: 7.383 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.007096, allocations: 27.77 kB / 251.2 MB, free: 7.355 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.007099, allocations: 4 kB / 251.2 MB, free: 7.352 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.566e-06/0.007107, allocations: 4 kB / 251.2 MB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.007109, allocations: 0 / 251.2 MB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.22e-07/0.00711, allocations: 0 / 251.2 MB, free: 7.348 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001065/0.007216, allocations: 200.1 kB / 251.4 MB, free: 7.137 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.701e-05/0.007233, allocations: 11.94 kB / 251.4 MB, free: 7.125 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.367e-05/0.007277, allocations: 11.98 kB / 251.4 MB, free: 7.113 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.888e-05/0.007316, allocations: 15.97 kB / 251.4 MB, free: 7.098 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.125e-06/0.007324, allocations: 7.984 kB / 251.4 MB, free: 7.09 MB / 250.7 MB Notification: Performance of sorting global known variables: time 1.649e-05/0.00734, allocations: 24.72 kB / 251.5 MB, free: 7.066 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.00734, allocations: 0 / 251.5 MB, free: 7.066 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001464/0.007487, allocations: 47.89 kB / 251.5 MB, free: 7.02 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 6.853e-05/0.007555, allocations: 88.34 kB / 251.6 MB, free: 6.926 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001257/0.007681, allocations: 116.9 kB / 251.7 MB, free: 6.809 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 9.257e-06/0.00769, allocations: 8.125 kB / 251.7 MB, free: 6.801 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 6.199e-05/0.007752, allocations: 63.19 kB / 251.8 MB, free: 6.738 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001399/0.007892, allocations: 31.98 kB / 251.8 MB, free: 6.707 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004459/0.008338, allocations: 313.4 kB / 252.1 MB, free: 6.375 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.02e-05/0.008378, allocations: 75.98 kB / 252.2 MB, free: 6.281 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 4.673e-05/0.008425, allocations: 17.95 kB / 252.2 MB, free: 6.262 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.332e-05/0.008498, allocations: 83.36 kB / 252.3 MB, free: 6.18 MB / 250.7 MB Notification: Performance of SimCode: time 5.61e-07/0.008499, allocations: 0 / 252.3 MB, free: 6.18 MB / 250.7 MB Notification: Performance of Templates: time 0.003355/0.01185, allocations: 1.869 MB / 254.1 MB, free: 4.344 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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.5413280446082354]