Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002142/0.002142, allocations: 92.59 kB / 20.95 MB, free: 480 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002338/0.002338, allocations: 154.1 kB / 24.25 MB, free: 3.523 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.511/1.511, allocations: 173.3 MB / 200.8 MB, free: 12.73 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.625e-06/2.625e-06, allocations: 0 / 267.3 MB, free: 10.23 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.459e-05/4.722e-05, allocations: 2.312 kB / 267.3 MB, free: 10.23 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003334/0.003381, allocations: 1.462 MB / 268.7 MB, free: 8.754 MB / 254.1 MB Notification: Performance of NFInst.instExpressions: time 0.00072/0.004101, allocations: 279.2 kB / 269 MB, free: 8.48 MB / 254.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.306e-05/0.004194, allocations: 4 kB / 269 MB, free: 8.477 MB / 254.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001451/0.004339, allocations: 19.73 kB / 269 MB, free: 8.457 MB / 254.1 MB Notification: Performance of NFTyping.typeBindings: time 5.266e-05/0.004392, allocations: 27.73 kB / 269.1 MB, free: 8.43 MB / 254.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004973/0.004889, allocations: 115.8 kB / 269.2 MB, free: 8.316 MB / 254.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003936/0.005283, allocations: 271.4 kB / 269.4 MB, free: 8.051 MB / 254.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003106/0.005593, allocations: 138.8 kB / 269.6 MB, free: 7.91 MB / 254.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002034/0.005797, allocations: 127.8 kB / 269.7 MB, free: 7.785 MB / 254.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001719/0.005969, allocations: 71.77 kB / 269.8 MB, free: 7.715 MB / 254.1 MB Notification: Performance of NFPackage.collectConstants: time 5.003e-05/0.006019, allocations: 20 kB / 269.8 MB, free: 7.695 MB / 254.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001212/0.00614, allocations: 35.92 kB / 269.8 MB, free: 7.66 MB / 254.1 MB Notification: Performance of NFScalarize.scalarize: time 9.592e-05/0.006236, allocations: 55.81 kB / 269.9 MB, free: 7.605 MB / 254.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001262/0.006362, allocations: 63.83 kB / 269.9 MB, free: 7.543 MB / 254.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004916/0.006854, allocations: 263.1 kB / 270.2 MB, free: 7.285 MB / 254.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.006858, allocations: 4 kB / 270.2 MB, free: 7.281 MB / 254.1 MB Notification: Performance of FrontEnd: time 6.51e-07/0.006859, allocations: 0 / 270.2 MB, free: 7.281 MB / 254.1 MB Notification: Performance of Transformations before backend: time 5.45e-06/0.006864, allocations: 0 / 270.2 MB, free: 7.281 MB / 254.1 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.0008892/0.007754, allocations: 405.1 kB / 270.6 MB, free: 6.855 MB / 254.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.06e-05/0.007804, allocations: 8.922 kB / 270.6 MB, free: 6.848 MB / 254.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.00792, allocations: 44.8 kB / 270.6 MB, free: 6.805 MB / 254.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004032/0.008324, allocations: 181.4 kB / 270.8 MB, free: 6.602 MB / 254.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.558e-05/0.008369, allocations: 24.88 kB / 270.8 MB, free: 6.574 MB / 254.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.994e-05/0.008419, allocations: 28.38 kB / 270.9 MB, free: 6.547 MB / 254.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004835/0.008903, allocations: 239.3 kB / 271.1 MB, free: 6.301 MB / 254.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.224e-05/0.008915, allocations: 192 / 271.1 MB, free: 6.301 MB / 254.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.826e-05/0.008943, allocations: 12.38 kB / 271.1 MB, free: 6.289 MB / 254.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.008951, allocations: 4.375 kB / 271.1 MB, free: 6.285 MB / 254.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003103/0.009261, allocations: 165.8 kB / 271.3 MB, free: 6.125 MB / 254.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009731/0.01023, allocations: 0.5778 MB / 271.9 MB, free: 5.512 MB / 254.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003586/0.01059, allocations: 158.7 kB / 272 MB, free: 5.348 MB / 254.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001261/0.01072, allocations: 64.83 kB / 272.1 MB, free: 5.281 MB / 254.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.719e-05/0.01075, allocations: 8 kB / 272.1 MB, free: 5.273 MB / 254.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002114/0.01096, allocations: 119.2 kB / 272.2 MB, free: 5.145 MB / 254.1 MB Notification: Performance of pre-optimization done (n=24): time 1.523e-06/0.01096, allocations: 0 / 272.2 MB, free: 5.145 MB / 254.1 MB Notification: Performance of matching and sorting (n=24): time 0.0005082/0.01147, allocations: 239.8 kB / 272.4 MB, free: 4.906 MB / 254.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.01153, allocations: 55.41 kB / 272.5 MB, free: 4.84 MB / 254.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.01168, allocations: 153.2 kB / 272.6 MB, free: 4.684 MB / 254.1 MB Notification: Performance of collectPreVariables (initialization): time 4.914e-05/0.01173, allocations: 37.7 kB / 272.7 MB, free: 4.641 MB / 254.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001099/0.01184, allocations: 128.8 kB / 272.8 MB, free: 4.508 MB / 254.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.285e-05/0.0119, allocations: 63.48 kB / 272.9 MB, free: 4.445 MB / 254.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002146/0.01211, allocations: 78 kB / 272.9 MB, free: 4.359 MB / 254.1 MB Notification: Performance of setup shared object (initialization): time 0.000245/0.01236, allocations: 326.8 kB / 273.3 MB, free: 4.031 MB / 254.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001275/0.01249, allocations: 64.62 kB / 273.3 MB, free: 3.969 MB / 254.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002007/0.01269, allocations: 136.1 kB / 273.5 MB, free: 3.812 MB / 254.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002906/0.01298, allocations: 170.7 kB / 273.6 MB, free: 3.621 MB / 254.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.01298, allocations: 0 / 273.6 MB, free: 3.621 MB / 254.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004512/0.01343, allocations: 257.9 kB / 273.9 MB, free: 3.363 MB / 254.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.01345, allocations: 8 kB / 273.9 MB, free: 3.355 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.309e-06/0.01345, allocations: 0 / 273.9 MB, free: 3.355 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.865e-05/0.01347, allocations: 15.86 kB / 273.9 MB, free: 3.34 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001344/0.01361, allocations: 27.92 kB / 273.9 MB, free: 3.312 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.01361, allocations: 4 kB / 273.9 MB, free: 3.309 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001015/0.01371, allocations: 23.84 kB / 274 MB, free: 3.285 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.708e-05/0.01375, allocations: 16.16 kB / 274 MB, free: 3.27 MB / 254.1 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,stateGraphRoot.resume,stateGraphRoot.suspend,transition2.condition,transition1.condition) * 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.0001648/0.01392, allocations: 161.8 kB / 274.1 MB, free: 3.102 MB / 254.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.441e-05/0.01395, allocations: 11.95 kB / 274.1 MB, free: 3.09 MB / 254.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004022/0.01435, allocations: 203.6 kB / 274.3 MB, free: 2.883 MB / 254.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.01436, allocations: 3.938 kB / 274.3 MB, free: 2.879 MB / 254.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.01437, allocations: 7.984 kB / 274.4 MB, free: 2.871 MB / 254.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.447e-06/0.01437, allocations: 0 / 274.4 MB, free: 2.871 MB / 254.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000751/0.01512, allocations: 486.4 kB / 274.8 MB, free: 2.359 MB / 254.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.378e-06/0.01512, allocations: 4 kB / 274.8 MB, free: 2.355 MB / 254.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.572e-05/0.01522, allocations: 23.92 kB / 274.9 MB, free: 2.332 MB / 254.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.769e-06/0.01522, allocations: 8 kB / 274.9 MB, free: 2.324 MB / 254.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.01524, allocations: 0 / 274.9 MB, free: 2.324 MB / 254.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.724e-06/0.01524, allocations: 0 / 274.9 MB, free: 2.324 MB / 254.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01524, allocations: 4 kB / 274.9 MB, free: 2.32 MB / 254.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000375/0.01561, allocations: 299.7 kB / 275.2 MB, free: 2.012 MB / 254.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.176e-05/0.01564, allocations: 15.84 kB / 275.2 MB, free: 1.996 MB / 254.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.571e-05/0.01566, allocations: 11.98 kB / 275.2 MB, free: 1.984 MB / 254.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.729e-05/0.01575, allocations: 4 kB / 275.2 MB, free: 1.98 MB / 254.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.301e-05/0.01583, allocations: 27.89 kB / 275.2 MB, free: 1.953 MB / 254.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.867e-05/0.01585, allocations: 8 kB / 275.2 MB, free: 1.945 MB / 254.1 MB Notification: Performance of sorting global known variables: time 7.919e-05/0.01593, allocations: 99.27 kB / 275.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of sort global known variables: time 8e-08/0.01593, allocations: 0 / 275.3 MB, free: 1.848 MB / 254.1 MB Notification: Performance of remove unused functions: time 0.0003066/0.01624, allocations: 47.89 kB / 275.4 MB, free: 1.801 MB / 254.1 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.0001745/0.01641, allocations: 103.2 kB / 275.5 MB, free: 1.691 MB / 254.1 MB Notification: Performance of simCode: created initialization part: time 0.000334/0.01675, allocations: 171.8 kB / 275.6 MB, free: 1.523 MB / 254.1 MB Notification: Performance of simCode: created event and clocks part: time 1.363e-06/0.01675, allocations: 0 / 275.6 MB, free: 1.523 MB / 254.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001408/0.01689, allocations: 79.78 kB / 275.7 MB, free: 1.445 MB / 254.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002849/0.01717, allocations: 28.38 kB / 275.7 MB, free: 1.418 MB / 254.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000598/0.01777, allocations: 341.6 kB / 276.1 MB, free: 1.055 MB / 254.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001233/0.01789, allocations: 116.6 kB / 276.2 MB, free: 0.9219 MB / 254.1 MB Notification: Performance of simCode: alias equations: time 8.97e-05/0.01798, allocations: 29.94 kB / 276.2 MB, free: 0.8945 MB / 254.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.077e-05/0.01804, allocations: 28.44 kB / 276.2 MB, free: 0.8672 MB / 254.1 MB Notification: Performance of SimCode: time 3.51e-07/0.01804, allocations: 0 / 276.2 MB, free: 0.8672 MB / 254.1 MB Notification: Performance of Templates: time 0.005891/0.02394, allocations: 1.956 MB / 278.2 MB, free: 14.95 MB / 270.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.171669561415911]