Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001276/0.001276, allocations: 95.5 kB / 21.2 MB, free: 3.371 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001433/0.001433, allocations: 160.5 kB / 24.55 MB, free: 16 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.9462/0.9462, allocations: 177 MB / 204.8 MB, free: 5.582 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant3,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.162e-06/1.162e-06, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.256e-05/1.373e-05, allocations: 2.312 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.001751/0.001764, allocations: 1.755 MB / 274.6 MB, free: 15.73 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0004599/0.002224, allocations: 307 kB / 274.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.919e-05/0.002293, allocations: 4 kB / 274.9 MB, free: 15.42 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001118/0.002405, allocations: 27.67 kB / 275 MB, free: 15.39 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.312e-05/0.002448, allocations: 19.8 kB / 275 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003162/0.002764, allocations: 127.7 kB / 275.1 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002775/0.003042, allocations: 275.4 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002345/0.003276, allocations: 166 kB / 275.5 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001251/0.003402, allocations: 135.8 kB / 275.7 MB, free: 14.68 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001098/0.003511, allocations: 71.77 kB / 275.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.14e-05/0.003543, allocations: 24 kB / 275.8 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.33e-05/0.003596, allocations: 24 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.515e-05/0.003651, allocations: 63.8 kB / 275.8 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.961e-05/0.003721, allocations: 71.81 kB / 275.9 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002361/0.003957, allocations: 187.2 kB / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.013e-06/0.003959, allocations: 0 / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.003959, allocations: 0 / 276.1 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.721e-06/0.003965, allocations: 7.984 kB / 276.1 MB, free: 14.24 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 60 * Number of variables: 60 Notification: Performance of Generate backend data structure: time 0.0005122/0.004477, allocations: 0.5073 MB / 276.6 MB, free: 13.7 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.406e-05/0.004511, allocations: 11.98 kB / 276.6 MB, free: 13.69 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001896/0.004701, allocations: 52.78 kB / 276.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001929/0.004894, allocations: 172.3 kB / 276.8 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.918e-05/0.004923, allocations: 20.88 kB / 276.9 MB, free: 13.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.94e-05/0.004952, allocations: 28.38 kB / 276.9 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003154/0.005268, allocations: 248.8 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.719e-06/0.005278, allocations: 4.125 kB / 277.1 MB, free: 13.12 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.932e-05/0.005297, allocations: 8.375 kB / 277.1 MB, free: 13.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.838e-06/0.005307, allocations: 16.31 kB / 277.2 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001808/0.005488, allocations: 98.81 kB / 277.3 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008336/0.006321, allocations: 1.057 MB / 278.3 MB, free: 11.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002172/0.006538, allocations: 150.3 kB / 278.5 MB, free: 11.71 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.911e-05/0.006618, allocations: 59.44 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.518e-05/0.006633, allocations: 4 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001487/0.006781, allocations: 132.3 kB / 278.7 MB, free: 11.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.302e-06/0.006783, allocations: 4 kB / 278.7 MB, free: 11.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0003177/0.0071, allocations: 202.7 kB / 278.9 MB, free: 11.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.209e-05/0.007142, allocations: 89.05 kB / 278.9 MB, free: 11.18 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001134/0.007256, allocations: 209.7 kB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.49e-05/0.007281, allocations: 37.7 kB / 279.2 MB, free: 10.91 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.078e-05/0.007372, allocations: 199.4 kB / 279.4 MB, free: 10.71 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.007412, allocations: 51.59 kB / 279.4 MB, free: 10.66 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.191e-05/0.007504, allocations: 91.3 kB / 279.5 MB, free: 10.56 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.007626, allocations: 0.4923 MB / 280 MB, free: 10.05 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.582e-05/0.007702, allocations: 43.97 kB / 280.1 MB, free: 10.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001234/0.007825, allocations: 145 kB / 280.2 MB, free: 9.828 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001975/0.008023, allocations: 188.6 kB / 280.4 MB, free: 9.602 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.008027, allocations: 4 kB / 280.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0002909/0.008318, allocations: 237.2 kB / 280.6 MB, free: 9.359 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.387e-05/0.008332, allocations: 10.81 kB / 280.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.008337, allocations: 0 / 280.6 MB, free: 9.352 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.302e-05/0.00835, allocations: 4 kB / 280.6 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001112/0.008462, allocations: 39.92 kB / 280.7 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.336e-06/0.00847, allocations: 7.938 kB / 280.7 MB, free: 9.301 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.385e-05/0.008544, allocations: 32.05 kB / 280.7 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.578e-05/0.00856, allocations: 16 kB / 280.7 MB, free: 9.254 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 32 ($PRE.transition1.enableFire,$PRE.transition2.enableFire,stateGraphRoot.activeSteps,timer.entryTime,$PRE.timer.entryTime,transition2.enableFire,transition2.localCondition,step.active,step.oldActive,$PRE.step.oldActive,step.newActive,$PRE.step.newActive,step.localActive,$PRE.step.localActive,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,transition2.t_start,$PRE.transition2.t_start,stateGraphRoot.resume,stateGraphRoot.suspend,transition1.condition) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (41): * Single equations (assignments): 41 * 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 9.712e-05/0.008657, allocations: 180.5 kB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.744e-05/0.008684, allocations: 23.89 kB / 280.9 MB, free: 9.043 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.899e-05/0.008713, allocations: 24.86 kB / 280.9 MB, free: 9.023 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.008716, allocations: 4 kB / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.00872, allocations: 0 / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.867e-06/0.008724, allocations: 0 / 281 MB, free: 9.02 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000478/0.009202, allocations: 0.5283 MB / 281.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.009203, allocations: 0 / 281.5 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.81e-05/0.009251, allocations: 23.92 kB / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.074e-06/0.009253, allocations: 0 / 281.5 MB, free: 8.422 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.333e-05/0.009266, allocations: 4 kB / 281.5 MB, free: 8.418 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.366e-06/0.00927, allocations: 4 kB / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.009271, allocations: 0 / 281.5 MB, free: 8.414 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000233/0.009504, allocations: 332.2 kB / 281.8 MB, free: 8.066 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.54e-05/0.009519, allocations: 19.84 kB / 281.9 MB, free: 8.047 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.979e-05/0.009539, allocations: 7.984 kB / 281.9 MB, free: 8.039 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.199e-05/0.009601, allocations: 8 kB / 281.9 MB, free: 8.031 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.284e-05/0.009654, allocations: 19.91 kB / 281.9 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.009664, allocations: 8 kB / 281.9 MB, free: 8.004 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.058e-05/0.009715, allocations: 142.8 kB / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.009715, allocations: 0 / 282 MB, free: 7.867 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002756/0.009991, allocations: 55.88 kB / 282.1 MB, free: 7.812 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 18 (transition2.t_start,step.localActive,transition1.enableFire,step.active,initialStep.active,$whenCondition2,$whenCondition1,initialStep.localActive,initialStep.newActive,initialStep.oldActive,transition1.fire,transition1.t_start,step.newActive,step.oldActive,transition2.localCondition,transition2.enableFire,timer.entryTime,stateGraphRoot.activeSteps) * Number of discrete states: 3 (initialStep.newActive,step.newActive,transition2.t_start) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (24): * Single equations (assignments): 19 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * 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 7.487e-05/0.01007, allocations: 103.2 kB / 282.2 MB, free: 7.699 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002437/0.01031, allocations: 156.4 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.232e-06/0.01031, allocations: 0.5625 kB / 282.3 MB, free: 7.543 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 8.877e-05/0.0104, allocations: 71.59 kB / 282.4 MB, free: 7.469 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000253/0.01065, allocations: 28.91 kB / 282.4 MB, free: 7.441 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004265/0.01108, allocations: 326.8 kB / 282.8 MB, free: 7.09 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.478e-05/0.01113, allocations: 88.2 kB / 282.9 MB, free: 6.984 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.351e-05/0.0112, allocations: 21.94 kB / 282.9 MB, free: 6.965 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.055e-05/0.01125, allocations: 28.5 kB / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.01125, allocations: 0 / 282.9 MB, free: 6.934 MB / 266.7 MB Notification: Performance of Templates: time 0.003895/0.01514, allocations: 1.823 MB / 284.7 MB, free: 5.137 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.StateGraph.Examples.FirstExample_Variant3_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/StateGraph/Examples/FirstExample_Variant3/FirstExample_Variant3.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.689420555718243]