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.0009871/0.0009871, allocations: 82.59 kB / 21.43 MB, free: 3.07 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.00151/0.00151, allocations: 170 kB / 24.82 MB, free: 9.254 MB / 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 1.001/1.001, allocations: 177 MB / 205.1 MB, free: 5.496 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 2.074e-06/2.074e-06, allocations: 0 / 273.3 MB, free: 1.293 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.682e-05/3.889e-05, allocations: 2.312 kB / 273.3 MB, free: 1.289 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.003941/0.00398, allocations: 1.735 MB / 275 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006847/0.004664, allocations: 303 kB / 275.3 MB, free: 15.25 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001027/0.004767, allocations: 4 kB / 275.3 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000142/0.004909, allocations: 35.61 kB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.534e-05/0.004964, allocations: 15.81 kB / 275.4 MB, free: 15.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004628/0.005427, allocations: 131.7 kB / 275.5 MB, free: 15.06 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002876/0.005715, allocations: 271.4 kB / 275.8 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002613/0.005976, allocations: 162.1 kB / 275.9 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001332/0.006109, allocations: 131.7 kB / 276 MB, free: 14.51 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001226/0.006232, allocations: 75.77 kB / 276.1 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.716e-05/0.006259, allocations: 24 kB / 276.1 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.298e-05/0.006322, allocations: 31.98 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.174e-05/0.006374, allocations: 55.81 kB / 276.2 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.434e-05/0.006438, allocations: 71.81 kB / 276.3 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002188/0.006657, allocations: 187.2 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.006661, allocations: 0 / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.006662, allocations: 4 kB / 276.5 MB, free: 14.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.08e-06/0.006667, allocations: 0 / 276.5 MB, free: 14.07 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.0005319/0.007199, allocations: 0.5111 MB / 277 MB, free: 13.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.807e-05/0.007247, allocations: 15.98 kB / 277 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001778/0.007425, allocations: 52.78 kB / 277.1 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.007619, allocations: 172.3 kB / 277.2 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.307e-05/0.007652, allocations: 24.81 kB / 277.3 MB, free: 13.23 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.761e-05/0.00768, allocations: 28.36 kB / 277.3 MB, free: 13.21 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002633/0.007943, allocations: 232.7 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.336e-06/0.007952, allocations: 192 / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.505e-05/0.007967, allocations: 8.375 kB / 277.5 MB, free: 12.95 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-06/0.007975, allocations: 8.375 kB / 277.5 MB, free: 12.94 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001007/0.008075, allocations: 83.28 kB / 277.6 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009241/0.008999, allocations: 1.034 MB / 278.6 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001575/0.009157, allocations: 138.4 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.354e-05/0.0092, allocations: 59.22 kB / 278.8 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.925e-05/0.00922, allocations: 11.98 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001198/0.00934, allocations: 120.3 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.513e-06/0.009341, allocations: 0 / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002424/0.009583, allocations: 178.8 kB / 279.1 MB, free: 11.21 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.443e-05/0.009628, allocations: 81.11 kB / 279.2 MB, free: 11.11 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001127/0.009741, allocations: 225.7 kB / 279.4 MB, free: 10.88 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.004e-05/0.009761, allocations: 37.7 kB / 279.5 MB, free: 10.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.143e-05/0.009842, allocations: 199.4 kB / 279.7 MB, free: 10.63 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.526e-05/0.009877, allocations: 55.56 kB / 279.7 MB, free: 10.57 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.567e-05/0.009953, allocations: 87.25 kB / 279.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001199/0.01007, allocations: 0.5001 MB / 280.3 MB, free: 9.969 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.895e-05/0.01011, allocations: 35.97 kB / 280.3 MB, free: 9.934 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.05e-05/0.0102, allocations: 136.8 kB / 280.5 MB, free: 9.758 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.01034, allocations: 176.6 kB / 280.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.928e-06/0.01035, allocations: 4 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001917/0.01054, allocations: 213.5 kB / 280.9 MB, free: 9.324 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.348e-05/0.01055, allocations: 11.94 kB / 280.9 MB, free: 9.312 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.064e-06/0.01056, allocations: 4 kB / 280.9 MB, free: 9.309 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.01057, allocations: 4 kB / 280.9 MB, free: 9.305 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.377e-05/0.01066, allocations: 31.92 kB / 280.9 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.799e-06/0.01066, allocations: 4 kB / 280.9 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.091e-05/0.01072, allocations: 35.77 kB / 281 MB, free: 9.234 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.638e-06/0.01073, allocations: 11.94 kB / 281 MB, free: 9.223 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,transition1.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 (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.649e-05/0.01083, allocations: 188.5 kB / 281.2 MB, free: 9.027 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.222e-05/0.01085, allocations: 27.89 kB / 281.2 MB, free: 9 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.079e-05/0.01088, allocations: 16.92 kB / 281.2 MB, free: 8.988 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.01088, allocations: 4 kB / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.624e-06/0.01089, allocations: 0 / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.777e-06/0.01089, allocations: 0 / 281.2 MB, free: 8.984 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003653/0.01126, allocations: 497.5 kB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.01126, allocations: 0 / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.613e-05/0.01129, allocations: 15.98 kB / 281.7 MB, free: 8.445 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.01129, allocations: 3.938 kB / 281.7 MB, free: 8.441 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.666e-06/0.0113, allocations: 4 kB / 281.7 MB, free: 8.438 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.352e-06/0.0113, allocations: 4 kB / 281.7 MB, free: 8.434 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01131, allocations: 4 kB / 281.7 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001802/0.01149, allocations: 324.1 kB / 282 MB, free: 8.09 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.198e-05/0.0115, allocations: 15.84 kB / 282.1 MB, free: 8.074 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.464e-05/0.01151, allocations: 4 kB / 282.1 MB, free: 8.07 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.383e-05/0.01156, allocations: 11.98 kB / 282.1 MB, free: 8.059 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.521e-05/0.0116, allocations: 15.97 kB / 282.1 MB, free: 8.043 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.176e-06/0.01161, allocations: 11.94 kB / 282.1 MB, free: 8.031 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.936e-05/0.01165, allocations: 131.2 kB / 282.2 MB, free: 7.902 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01165, allocations: 0 / 282.2 MB, free: 7.902 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001882/0.01184, allocations: 51.89 kB / 282.3 MB, free: 7.852 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 8.21e-05/0.01192, allocations: 107.2 kB / 282.4 MB, free: 7.734 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001636/0.01208, allocations: 140.3 kB / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.243e-06/0.01208, allocations: 0 / 282.5 MB, free: 7.594 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 6.256e-05/0.01215, allocations: 67.58 kB / 282.6 MB, free: 7.523 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002046/0.01235, allocations: 35.05 kB / 282.6 MB, free: 7.492 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003706/0.01272, allocations: 319.4 kB / 282.9 MB, free: 7.148 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.293e-05/0.01277, allocations: 88.27 kB / 283 MB, free: 7.043 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.099e-05/0.01283, allocations: 21.94 kB / 283 MB, free: 7.023 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.506e-05/0.01291, allocations: 102.2 kB / 283.1 MB, free: 6.922 MB / 266.7 MB Notification: Performance of SimCode: time 4.91e-07/0.01291, allocations: 0 / 283.1 MB, free: 6.922 MB / 266.7 MB Notification: Performance of Templates: time 0.003713/0.01662, allocations: 1.905 MB / 285 MB, free: 5.051 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.745966454036534]