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.001445/0.001445, allocations: 112.2 kB / 20.43 MB, free: 1.449 MB / 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.00138/0.00138, allocations: 189.6 kB / 23.72 MB, free: 4.68 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.54/1.54, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.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 0.001529/0.001529, allocations: 47.92 kB / 370.9 MB, free: 9.402 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2945/0.296, allocations: 52.19 MB / 423.1 MB, free: 14.72 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002804/0.2988, allocations: 1.505 MB / 424.6 MB, free: 13.21 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006949/0.2995, allocations: 279.2 kB / 424.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.467e-05/0.2996, allocations: 4 kB / 424.9 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001324/0.2997, allocations: 19.75 kB / 424.9 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.442e-05/0.2997, allocations: 19.8 kB / 424.9 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.3002, allocations: 123.8 kB / 425 MB, free: 12.77 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003336/0.3005, allocations: 267.5 kB / 425.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002602/0.3008, allocations: 138.7 kB / 425.4 MB, free: 12.37 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001017/0.3009, allocations: 91.7 kB / 425.5 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001478/0.301, allocations: 95.59 kB / 425.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.927e-05/0.301, allocations: 20 kB / 425.6 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.91e-05/0.3011, allocations: 31.98 kB / 425.7 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.519e-05/0.3012, allocations: 51.84 kB / 425.7 MB, free: 12.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001127/0.3013, allocations: 95.52 kB / 425.8 MB, free: 11.99 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003266/0.3016, allocations: 248.2 kB / 426 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.686e-06/0.3016, allocations: 4 kB / 426.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3016, allocations: 0 / 426.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.112e-06/0.3016, allocations: 0 / 426.1 MB, free: 11.75 MB / 334.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.0006924/0.3023, allocations: 417 kB / 426.5 MB, free: 11.3 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.136e-05/0.3024, allocations: 12.03 kB / 426.5 MB, free: 11.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.923e-05/0.3024, allocations: 28.73 kB / 426.5 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003179/0.3027, allocations: 166.3 kB / 426.7 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.987e-05/0.3028, allocations: 20.81 kB / 426.7 MB, free: 11.06 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.705e-05/0.3028, allocations: 32.38 kB / 426.7 MB, free: 11.03 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004533/0.3033, allocations: 239.2 kB / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.3033, allocations: 192 / 426.9 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.771e-05/0.3033, allocations: 11.94 kB / 427 MB, free: 10.77 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.3033, allocations: 7.938 kB / 427 MB, free: 10.76 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000313/0.3036, allocations: 165.6 kB / 427.1 MB, free: 10.6 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001071/0.3047, allocations: 0.6589 MB / 427.8 MB, free: 9.895 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003292/0.305, allocations: 158.7 kB / 427.9 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001207/0.3052, allocations: 64.83 kB / 428 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.982e-05/0.3052, allocations: 7.984 kB / 428 MB, free: 9.656 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002109/0.3054, allocations: 126.7 kB / 428.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.503e-06/0.3054, allocations: 0 / 428.1 MB, free: 9.523 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004795/0.3059, allocations: 221.4 kB / 428.4 MB, free: 9.301 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.532e-05/0.3059, allocations: 55.41 kB / 428.4 MB, free: 9.234 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001371/0.3061, allocations: 146 kB / 428.5 MB, free: 9.082 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.445e-05/0.3061, allocations: 37.7 kB / 428.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.3062, allocations: 128.8 kB / 428.7 MB, free: 8.906 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.461e-05/0.3063, allocations: 63.52 kB / 428.8 MB, free: 8.844 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001142/0.3064, allocations: 77.97 kB / 428.8 MB, free: 8.758 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001578/0.3065, allocations: 326.8 kB / 429.2 MB, free: 8.43 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.3067, allocations: 64.62 kB / 429.2 MB, free: 8.367 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001835/0.3069, allocations: 136 kB / 429.4 MB, free: 8.211 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.3071, allocations: 175.3 kB / 429.5 MB, free: 8.016 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.3071, allocations: 4 kB / 429.5 MB, free: 8.012 MB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0003891/0.3075, allocations: 245.3 kB / 429.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3075, allocations: 8 kB / 429.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.761e-06/0.3075, allocations: 0 / 429.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.544e-05/0.3076, allocations: 4 kB / 429.8 MB, free: 7.754 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001394/0.3077, allocations: 31.92 kB / 429.8 MB, free: 7.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.3077, allocations: 4 kB / 429.8 MB, free: 7.719 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001024/0.3078, allocations: 28.03 kB / 429.9 MB, free: 7.691 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.217e-05/0.3078, allocations: 16 kB / 429.9 MB, free: 7.676 MB / 334.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.0001631/0.308, allocations: 161.7 kB / 430 MB, free: 7.508 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.62e-05/0.308, allocations: 19.78 kB / 430 MB, free: 7.488 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003687/0.3084, allocations: 194.5 kB / 430.2 MB, free: 7.289 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.3084, allocations: 4 kB / 430.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.3084, allocations: 0 / 430.2 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.412e-06/0.3084, allocations: 3.984 kB / 430.2 MB, free: 7.281 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007845/0.3092, allocations: 0.5362 MB / 430.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.452e-06/0.3092, allocations: 0 / 430.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.089e-05/0.3093, allocations: 19.92 kB / 430.8 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.3093, allocations: 3.938 kB / 430.8 MB, free: 6.672 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.744e-05/0.3093, allocations: 8 kB / 430.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.873e-06/0.3093, allocations: 0 / 430.8 MB, free: 6.664 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.3093, allocations: 3.938 kB / 430.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003563/0.3097, allocations: 287.7 kB / 431.1 MB, free: 6.363 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.126e-05/0.3097, allocations: 15.89 kB / 431.1 MB, free: 6.348 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.596e-05/0.3097, allocations: 4 kB / 431.1 MB, free: 6.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.857e-05/0.3098, allocations: 7.984 kB / 431.1 MB, free: 6.336 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.978e-05/0.3099, allocations: 27.84 kB / 431.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.221e-05/0.3099, allocations: 19.98 kB / 431.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of sorting global known variables: time 6.91e-05/0.31, allocations: 93.14 kB / 431.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.31, allocations: 0 / 431.3 MB, free: 6.199 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003065/0.3103, allocations: 51.89 kB / 431.3 MB, free: 6.148 MB / 334.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.0001549/0.3104, allocations: 107.2 kB / 431.4 MB, free: 6.035 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000344/0.3108, allocations: 163.8 kB / 431.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3108, allocations: 0 / 431.6 MB, free: 5.875 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001386/0.3109, allocations: 75.84 kB / 431.6 MB, free: 5.801 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002901/0.3112, allocations: 31.3 kB / 431.7 MB, free: 5.773 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006374/0.3119, allocations: 331.9 kB / 432 MB, free: 5.422 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003885/0.3122, allocations: 0.74 MB / 432.7 MB, free: 4.656 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 7.434e-05/0.3123, allocations: 21.95 kB / 432.8 MB, free: 4.637 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.959e-05/0.3124, allocations: 27.42 kB / 432.8 MB, free: 4.609 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3124, allocations: 4 kB / 432.8 MB, free: 4.605 MB / 334.1 MB Notification: Performance of Templates: time 0.005834/0.3182, allocations: 2.002 MB / 434.8 MB, free: 2.613 MB / 334.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.697321319021285]