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.001306/0.001306, allocations: 113.1 kB / 20.43 MB, free: 1.457 MB / 14.72 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.00171/0.00171, allocations: 214.4 kB / 23.75 MB, free: 4.668 MB / 14.72 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.608/1.608, allocations: 230.6 MB / 257.5 MB, free: 8.004 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001827/0.001827, allocations: 48.06 kB / 378.2 MB, free: 2.645 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2873/0.2892, allocations: 53.37 MB / 431.6 MB, free: 6.926 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003026/0.2922, allocations: 1.498 MB / 433.1 MB, free: 5.422 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008065/0.293, allocations: 283.2 kB / 433.4 MB, free: 5.145 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2931, allocations: 7.938 kB / 433.4 MB, free: 5.137 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001538/0.2933, allocations: 27.67 kB / 433.4 MB, free: 5.109 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.942e-05/0.2933, allocations: 15.81 kB / 433.4 MB, free: 5.094 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004569/0.2938, allocations: 127.8 kB / 433.6 MB, free: 4.969 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004035/0.2942, allocations: 259.6 kB / 433.8 MB, free: 4.715 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000338/0.2945, allocations: 146.5 kB / 433.9 MB, free: 4.566 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001299/0.2947, allocations: 79.78 kB / 434 MB, free: 4.488 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001607/0.2948, allocations: 103.5 kB / 434.1 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.759e-05/0.2949, allocations: 24 kB / 434.2 MB, free: 4.363 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.281e-05/0.2949, allocations: 31.98 kB / 434.2 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.556e-05/0.295, allocations: 51.89 kB / 434.2 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001115/0.2951, allocations: 99.53 kB / 434.3 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003392/0.2955, allocations: 248.2 kB / 434.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.897e-06/0.2955, allocations: 0 / 434.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.2955, allocations: 0 / 434.6 MB, free: 3.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.691e-06/0.2955, allocations: 0 / 434.6 MB, free: 3.945 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.0006879/0.2962, allocations: 409 kB / 435 MB, free: 3.516 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2962, allocations: 12.03 kB / 435 MB, free: 3.504 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002755/0.2965, allocations: 28.83 kB / 435 MB, free: 3.477 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003845/0.2969, allocations: 182.1 kB / 435.2 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.803e-05/0.2969, allocations: 24.86 kB / 435.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.74e-05/0.2969, allocations: 24.38 kB / 435.2 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004348/0.2974, allocations: 235.2 kB / 435.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.309e-05/0.2974, allocations: 192 / 435.5 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.11e-05/0.2974, allocations: 15.94 kB / 435.5 MB, free: 2.969 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.286e-06/0.2974, allocations: 4 kB / 435.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003121/0.2977, allocations: 161.6 kB / 435.6 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001043/0.2988, allocations: 0.655 MB / 436.3 MB, free: 2.105 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.2991, allocations: 158.7 kB / 436.5 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001203/0.2992, allocations: 68.84 kB / 436.5 MB, free: 1.871 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.383e-05/0.2992, allocations: 4 kB / 436.5 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001979/0.2994, allocations: 120.9 kB / 436.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.543e-06/0.2994, allocations: 0 / 436.6 MB, free: 1.738 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.0004398/0.2999, allocations: 221 kB / 436.9 MB, free: 1.52 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.145e-05/0.2999, allocations: 59.41 kB / 436.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001349/0.3001, allocations: 153.5 kB / 437.1 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.099e-05/0.3001, allocations: 41.7 kB / 437.1 MB, free: 1.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001074/0.3002, allocations: 124.9 kB / 437.2 MB, free: 1.117 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.016e-05/0.3003, allocations: 67.47 kB / 437.3 MB, free: 1.051 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000115/0.3004, allocations: 70.02 kB / 437.4 MB, free: 0.9727 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3006, allocations: 330.8 kB / 437.7 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.3007, allocations: 64.62 kB / 437.8 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001752/0.3009, allocations: 124.1 kB / 437.9 MB, free: 444 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002755/0.3011, allocations: 183.1 kB / 438.1 MB, free: 236 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.3011, allocations: 0 / 438.1 MB, free: 236 kB / 334.1 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004025/0.3015, allocations: 237.4 kB / 438.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.844e-05/0.3016, allocations: 8 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.722e-06/0.3016, allocations: 7.766 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.3016, allocations: 4 kB / 438.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001425/0.3017, allocations: 32.14 kB / 438.3 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.24e-05/0.3017, allocations: 11.98 kB / 438.3 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.512e-05/0.3018, allocations: 27.78 kB / 438.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.3019, allocations: 8 kB / 438.4 MB, free: 15.89 MB / 350.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.0001718/0.302, allocations: 157.8 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.764e-05/0.3021, allocations: 15.89 kB / 438.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.134e-05/0.3021, allocations: 16.94 kB / 438.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.85e-06/0.3021, allocations: 4 kB / 438.6 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.3021, allocations: 7.938 kB / 438.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.921e-06/0.3021, allocations: 3.984 kB / 438.6 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007555/0.3029, allocations: 0.5131 MB / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.834e-06/0.3029, allocations: 0 / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.442e-05/0.303, allocations: 15.98 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.303, allocations: 0 / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.441e-05/0.303, allocations: 4 kB / 439.1 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.168e-06/0.303, allocations: 4 kB / 439.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-06/0.303, allocations: 0 / 439.1 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003404/0.3033, allocations: 282.6 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.983e-05/0.3033, allocations: 11.89 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.55e-05/0.3034, allocations: 4 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.695e-05/0.3034, allocations: 8 kB / 439.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.705e-05/0.3035, allocations: 23.95 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.434e-05/0.3035, allocations: 7.938 kB / 439.4 MB, free: 14.75 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.038e-05/0.3036, allocations: 95.27 kB / 439.5 MB, free: 14.66 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3036, allocations: 4 kB / 439.5 MB, free: 14.65 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003126/0.3039, allocations: 51.84 kB / 439.6 MB, free: 14.6 MB / 350.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: 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.000123/0.3041, allocations: 107.2 kB / 439.7 MB, free: 14.49 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003461/0.3044, allocations: 159.8 kB / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.3044, allocations: 0 / 439.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001273/0.3045, allocations: 71.91 kB / 439.9 MB, free: 14.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002821/0.3048, allocations: 20.42 kB / 439.9 MB, free: 14.24 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006382/0.3055, allocations: 315.5 kB / 440.3 MB, free: 13.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004075/0.3059, allocations: 0.7323 MB / 441 MB, free: 13.14 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.789e-05/0.3059, allocations: 25.89 kB / 441 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.998e-05/0.306, allocations: 23.38 kB / 441 MB, free: 13.1 MB / 350.1 MB Notification: Performance of SimCode: time 3.71e-07/0.306, allocations: 0 / 441 MB, free: 13.1 MB / 350.1 MB Notification: Performance of Templates: time 0.005373/0.3114, allocations: 1.793 MB / 442.8 MB, free: 11.32 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.80263049993664]