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.0009543/0.0009543, allocations: 77.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001469/0.002424, allocations: 449.8 kB / 10.44 MB, free: 252 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.0009033/0.0009033, allocations: 165.1 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001591/0.002494, allocations: 479.5 kB / 11.82 MB, free: 2.344 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.134/1.134, allocations: 177.2 MB / 189.8 MB, free: 5.25 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1296/1.264, allocations: 53.66 MB / 243.4 MB, free: 15.51 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 2.575e-06/2.575e-06, allocations: 0 / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.299e-05/3.557e-05, allocations: 6.109 kB / 244.7 MB, free: 14.25 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002788/0.002823, allocations: 1.562 MB / 246.2 MB, free: 12.67 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005307/0.003354, allocations: 287.8 kB / 246.5 MB, free: 12.39 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001039/0.003458, allocations: 7.938 kB / 246.5 MB, free: 12.38 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001104/0.003568, allocations: 27.73 kB / 246.6 MB, free: 12.36 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.478e-05/0.003603, allocations: 11.81 kB / 246.6 MB, free: 12.34 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003874/0.003991, allocations: 123.7 kB / 246.7 MB, free: 12.22 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000297/0.004288, allocations: 267.5 kB / 247 MB, free: 11.96 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002831/0.004571, allocations: 139.4 kB / 247.1 MB, free: 11.82 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001382/0.004709, allocations: 131.8 kB / 247.2 MB, free: 11.69 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.004857, allocations: 67.77 kB / 247.3 MB, free: 11.62 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.399e-05/0.004891, allocations: 24 kB / 247.3 MB, free: 11.6 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.832e-05/0.004989, allocations: 24 kB / 247.3 MB, free: 11.58 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.045e-05/0.00506, allocations: 43.86 kB / 247.4 MB, free: 11.54 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.88e-05/0.005128, allocations: 55.88 kB / 247.4 MB, free: 11.48 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002423/0.005371, allocations: 163.3 kB / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.491e-05/0.005385, allocations: 0 / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.313e-06/0.005387, allocations: 0 / 247.6 MB, free: 11.32 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.384e-05/0.005401, allocations: 0 / 247.6 MB, free: 11.32 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.0006697/0.00607, allocations: 435.2 kB / 248 MB, free: 10.87 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.006112, allocations: 8.031 kB / 248 MB, free: 10.86 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002867/0.006398, allocations: 126 kB / 248.1 MB, free: 10.72 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001995/0.006598, allocations: 141.6 kB / 248.3 MB, free: 10.55 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.006634, allocations: 24.88 kB / 248.3 MB, free: 10.53 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.991e-05/0.006664, allocations: 32.31 kB / 248.3 MB, free: 10.5 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002352/0.0069, allocations: 192 kB / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.006914, allocations: 192 / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.691e-05/0.006931, allocations: 4.375 kB / 248.5 MB, free: 10.3 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.31e-05/0.006944, allocations: 12.38 kB / 248.5 MB, free: 10.29 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.931e-05/0.007033, allocations: 59.41 kB / 248.6 MB, free: 10.22 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006981/0.007731, allocations: 484 kB / 249.1 MB, free: 9.73 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001871/0.007918, allocations: 110.5 kB / 249.2 MB, free: 9.613 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.555e-05/0.007964, allocations: 36.84 kB / 249.2 MB, free: 9.574 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.076e-05/0.007985, allocations: 8 kB / 249.2 MB, free: 9.566 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001454/0.00813, allocations: 99.98 kB / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 2.545e-06/0.008132, allocations: 0 / 249.3 MB, free: 9.457 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002793/0.008412, allocations: 135.9 kB / 249.5 MB, free: 9.32 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.008464, allocations: 59.34 kB / 249.5 MB, free: 9.25 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.982e-05/0.008564, allocations: 162.2 kB / 249.7 MB, free: 9.082 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.956e-05/0.008594, allocations: 37.7 kB / 249.7 MB, free: 9.039 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.314e-05/0.008677, allocations: 136.7 kB / 249.8 MB, free: 8.902 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.99e-05/0.008717, allocations: 63.52 kB / 249.9 MB, free: 8.84 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.596e-05/0.008793, allocations: 73.95 kB / 250 MB, free: 8.758 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001072/0.0089, allocations: 330.8 kB / 250.3 MB, free: 8.426 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.448e-05/0.008934, allocations: 28.64 kB / 250.3 MB, free: 8.398 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.039e-05/0.009015, allocations: 104 kB / 250.4 MB, free: 8.273 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001392/0.009154, allocations: 135.2 kB / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.009157, allocations: 0 / 250.6 MB, free: 8.117 MB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001884/0.009345, allocations: 161.4 kB / 250.7 MB, free: 7.953 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.282e-05/0.009368, allocations: 8 kB / 250.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.009374, allocations: 0 / 250.7 MB, free: 7.945 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.782e-05/0.009392, allocations: 4 kB / 250.7 MB, free: 7.941 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001534/0.009545, allocations: 43.86 kB / 250.8 MB, free: 7.898 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.965e-06/0.009553, allocations: 7.922 kB / 250.8 MB, free: 7.891 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.552e-05/0.009619, allocations: 31.78 kB / 250.8 MB, free: 7.859 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.248e-06/0.009628, allocations: 4.219 kB / 250.8 MB, free: 7.855 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 0.0001182/0.009746, allocations: 141.8 kB / 251 MB, free: 7.707 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.199e-05/0.009768, allocations: 15.98 kB / 251 MB, free: 7.691 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.568e-05/0.009814, allocations: 20.92 kB / 251 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.234e-06/0.009816, allocations: 0 / 251 MB, free: 7.672 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.009821, allocations: 3.938 kB / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.639e-06/0.009826, allocations: 0 / 251 MB, free: 7.668 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000397/0.01022, allocations: 333.8 kB / 251.3 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.01022, allocations: 0 / 251.3 MB, free: 7.32 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.962e-05/0.01029, allocations: 23.92 kB / 251.3 MB, free: 7.297 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.556e-05/0.01031, allocations: 23.78 kB / 251.4 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.766e-06/0.01031, allocations: 0 / 251.4 MB, free: 7.273 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.378e-06/0.01032, allocations: 8 kB / 251.4 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.655e-06/0.01032, allocations: 0 / 251.4 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.01033, allocations: 0 / 251.4 MB, free: 7.266 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001432/0.01047, allocations: 204.1 kB / 251.6 MB, free: 7.051 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.12e-05/0.01049, allocations: 7.938 kB / 251.6 MB, free: 7.043 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.523e-05/0.01054, allocations: 11.98 kB / 251.6 MB, free: 7.031 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.264e-05/0.01059, allocations: 19.97 kB / 251.6 MB, free: 7.012 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.458e-06/0.0106, allocations: 7.984 kB / 251.6 MB, free: 7.004 MB / 250.7 MB Notification: Performance of sorting global known variables: time 2.316e-05/0.01062, allocations: 24.83 kB / 251.6 MB, free: 6.977 MB / 250.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01062, allocations: 3.938 kB / 251.6 MB, free: 6.973 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001742/0.0108, allocations: 47.89 kB / 251.7 MB, free: 6.926 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 0.0001099/0.01091, allocations: 84.36 kB / 251.8 MB, free: 6.836 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001767/0.01108, allocations: 128.5 kB / 251.9 MB, free: 6.707 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.095e-06/0.01109, allocations: 0 / 251.9 MB, free: 6.707 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 7.806e-05/0.01117, allocations: 63.88 kB / 252 MB, free: 6.645 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002499/0.01142, allocations: 210.2 kB / 252.2 MB, free: 6.402 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005911/0.01201, allocations: 305.4 kB / 252.5 MB, free: 6.078 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.519e-05/0.01207, allocations: 79.98 kB / 252.5 MB, free: 5.98 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 6.427e-05/0.01214, allocations: 17.94 kB / 252.6 MB, free: 5.961 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.577e-05/0.01223, allocations: 83.38 kB / 252.6 MB, free: 5.879 MB / 250.7 MB Notification: Performance of SimCode: time 1.302e-06/0.01224, allocations: 0 / 252.6 MB, free: 5.879 MB / 250.7 MB Notification: Performance of Templates: time 0.004561/0.0168, allocations: 1.829 MB / 254.5 MB, free: 4.082 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.784768213517964]