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.0009019/0.0009019, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.0009936/0.0009936, allocations: 142.1 kB / 24.89 MB, free: 8.777 MB / 18.57 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 0.9534/0.9534, allocations: 173.4 MB / 201.5 MB, free: 8.758 MB / 186.7 MB " [Timeout remaining time 179] 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 1.092e-06/1.092e-06, allocations: 0 / 268.4 MB, free: 6.074 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.249e-05/1.359e-05, allocations: 2.312 kB / 268.4 MB, free: 6.07 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.001616/0.001629, allocations: 1.493 MB / 269.9 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004891/0.002119, allocations: 299 kB / 270.2 MB, free: 4.27 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.98e-05/0.002188, allocations: 3.938 kB / 270.2 MB, free: 4.266 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001089/0.002297, allocations: 23.69 kB / 270.2 MB, free: 4.242 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 3.696e-05/0.002334, allocations: 23.8 kB / 270.3 MB, free: 4.219 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.002652, allocations: 123.7 kB / 270.4 MB, free: 4.098 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002115/0.002863, allocations: 259.5 kB / 270.6 MB, free: 3.844 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001798/0.003043, allocations: 143.4 kB / 270.8 MB, free: 3.699 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.003151, allocations: 135.7 kB / 270.9 MB, free: 3.566 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.284e-05/0.003244, allocations: 67.78 kB / 271 MB, free: 3.5 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.854e-05/0.003272, allocations: 24 kB / 271 MB, free: 3.477 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.566e-05/0.003328, allocations: 27.98 kB / 271 MB, free: 3.449 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 4.568e-05/0.003374, allocations: 59.81 kB / 271.1 MB, free: 3.391 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.885e-05/0.003422, allocations: 63.88 kB / 271.1 MB, free: 3.328 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000176/0.003598, allocations: 179.3 kB / 271.3 MB, free: 3.152 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.352e-06/0.0036, allocations: 4 kB / 271.3 MB, free: 3.148 MB / 250.7 MB Notification: Performance of FrontEnd: time 5.61e-07/0.0036, allocations: 3.938 kB / 271.3 MB, free: 3.145 MB / 250.7 MB Notification: Performance of Transformations before backend: time 3.106e-06/0.003603, allocations: 0 / 271.3 MB, free: 3.145 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.0003619/0.003965, allocations: 387.7 kB / 271.7 MB, free: 2.742 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.706e-05/0.003992, allocations: 8.922 kB / 271.7 MB, free: 2.734 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.376e-05/0.004036, allocations: 36.91 kB / 271.8 MB, free: 2.699 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001565/0.004193, allocations: 145.6 kB / 271.9 MB, free: 2.531 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.2e-05/0.004215, allocations: 16.88 kB / 271.9 MB, free: 2.512 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.633e-05/0.004241, allocations: 32.36 kB / 271.9 MB, free: 2.48 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001742/0.004415, allocations: 195.9 kB / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.406e-06/0.004424, allocations: 192 / 272.1 MB, free: 2.273 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.519e-05/0.004439, allocations: 12.38 kB / 272.1 MB, free: 2.262 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.872e-06/0.004446, allocations: 4.375 kB / 272.2 MB, free: 2.258 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.506e-05/0.004521, allocations: 67.39 kB / 272.2 MB, free: 2.195 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004711/0.004992, allocations: 488.1 kB / 272.7 MB, free: 1.695 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001326/0.005124, allocations: 114.4 kB / 272.8 MB, free: 1.574 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.727e-05/0.005162, allocations: 40.84 kB / 272.8 MB, free: 1.531 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.005175, allocations: 4 kB / 272.9 MB, free: 1.527 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.703e-05/0.005262, allocations: 104.8 kB / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.005264, allocations: 0 / 273 MB, free: 1.414 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002858/0.00555, allocations: 136.5 kB / 273.1 MB, free: 1.277 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.215e-05/0.005582, allocations: 59.34 kB / 273.1 MB, free: 1.207 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.86e-05/0.00565, allocations: 154.1 kB / 273.3 MB, free: 1.047 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.935e-05/0.00567, allocations: 37.7 kB / 273.3 MB, free: 1.004 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.199e-05/0.005722, allocations: 136.8 kB / 273.5 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.043e-05/0.005752, allocations: 63.5 kB / 273.5 MB, free: 0.8008 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.456e-05/0.005817, allocations: 81.91 kB / 273.6 MB, free: 0.7109 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 6.776e-05/0.005884, allocations: 326.8 kB / 273.9 MB, free: 392 kB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.062e-05/0.005915, allocations: 28.64 kB / 274 MB, free: 364 kB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.886e-05/0.005974, allocations: 104.1 kB / 274.1 MB, free: 236 kB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001003/0.006074, allocations: 130.6 kB / 274.2 MB, free: 80 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.006077, allocations: 0 / 274.2 MB, free: 80 kB / 250.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0001458/0.006222, allocations: 169.4 kB / 274.3 MB, free: 15.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.062e-05/0.006233, allocations: 8 kB / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.118e-06/0.006237, allocations: 0 / 274.4 MB, free: 15.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.141e-05/0.006249, allocations: 4 kB / 274.4 MB, free: 15.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.278e-05/0.006321, allocations: 31.92 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.131e-06/0.006327, allocations: 7.938 kB / 274.4 MB, free: 15.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.823e-05/0.006376, allocations: 19.89 kB / 274.4 MB, free: 15.84 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.782e-05/0.006393, allocations: 15.98 kB / 274.4 MB, free: 15.82 MB / 266.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.228e-05/0.006466, allocations: 145.9 kB / 274.6 MB, free: 15.67 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.511e-05/0.006481, allocations: 15.98 kB / 274.6 MB, free: 15.65 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001237/0.006605, allocations: 122.5 kB / 274.7 MB, free: 15.53 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.976e-06/0.006608, allocations: 4 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.00661, allocations: 7.922 kB / 274.7 MB, free: 15.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.268e-06/0.006615, allocations: 3.984 kB / 274.7 MB, free: 15.51 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002781/0.006893, allocations: 339.1 kB / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.006894, allocations: 0 / 275.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.538e-05/0.006929, allocations: 19.94 kB / 275.1 MB, free: 15.14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.085e-06/0.006932, allocations: 3.938 kB / 275.1 MB, free: 15.13 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.223e-05/0.006945, allocations: 11.98 kB / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.006946, allocations: 0 / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.006947, allocations: 0 / 275.1 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001152/0.007062, allocations: 215.7 kB / 275.3 MB, free: 14.89 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.244e-05/0.007075, allocations: 23.81 kB / 275.3 MB, free: 14.87 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.419e-05/0.007089, allocations: 8 kB / 275.3 MB, free: 14.86 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.093e-05/0.00713, allocations: 12 kB / 275.3 MB, free: 14.85 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.969e-05/0.007169, allocations: 23.95 kB / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.543e-06/0.007176, allocations: 3.938 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.519e-05/0.007191, allocations: 20.84 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.007191, allocations: 4 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000162/0.007353, allocations: 47.89 kB / 275.4 MB, free: 14.75 MB / 266.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: 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 8.825e-05/0.007441, allocations: 92.36 kB / 275.5 MB, free: 14.65 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001255/0.007567, allocations: 116.7 kB / 275.7 MB, free: 14.54 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.639e-06/0.007572, allocations: 4 kB / 275.7 MB, free: 14.53 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.716e-05/0.007629, allocations: 72.62 kB / 275.7 MB, free: 14.46 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001341/0.007763, allocations: 28.36 kB / 275.8 MB, free: 14.43 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003161/0.008079, allocations: 309.6 kB / 276.1 MB, free: 14.1 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.076e-05/0.00812, allocations: 80.33 kB / 276.1 MB, free: 14 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.852e-05/0.008168, allocations: 21.94 kB / 276.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.579e-05/0.008244, allocations: 79.36 kB / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of SimCode: time 9.22e-07/0.008245, allocations: 0 / 276.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of Templates: time 0.003406/0.01165, allocations: 2.11 MB / 278.3 MB, free: 11.82 MB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] 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","",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.6042587137781084]