Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.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.0008602/0.0008602, allocations: 91.67 kB / 21.2 MB, free: 3.367 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.0009184/0.0009184, allocations: 160.5 kB / 24.55 MB, free: 12 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.9691/0.9691, 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_trunk_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.773e-06/1.773e-06, allocations: 0 / 272.9 MB, free: 1.496 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.624e-05/2.801e-05, allocations: 2.312 kB / 272.9 MB, free: 1.492 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002006/0.002034, allocations: 1.535 MB / 274.4 MB, free: 15.95 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005294/0.002564, allocations: 283.1 kB / 274.7 MB, free: 15.67 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.266e-05/0.002637, allocations: 4 kB / 274.7 MB, free: 15.66 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001079/0.002744, allocations: 19.73 kB / 274.7 MB, free: 15.64 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 3.495e-05/0.002779, allocations: 23.75 kB / 274.7 MB, free: 15.62 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003613/0.003141, allocations: 115.8 kB / 274.8 MB, free: 15.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002461/0.003387, allocations: 271.4 kB / 275.1 MB, free: 15.24 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002088/0.003596, allocations: 138.8 kB / 275.2 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001159/0.003711, allocations: 131.8 kB / 275.4 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001019/0.003813, allocations: 67.78 kB / 275.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.784e-05/0.003841, allocations: 24 kB / 275.5 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.26e-05/0.003894, allocations: 31.92 kB / 275.5 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.018e-05/0.003944, allocations: 55.81 kB / 275.5 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.906e-05/0.004003, allocations: 63.81 kB / 275.6 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002015/0.004205, allocations: 175.3 kB / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.603e-06/0.004206, allocations: 0 / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.01e-07/0.004207, allocations: 0 / 275.8 MB, free: 14.57 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.629e-06/0.004211, allocations: 4 kB / 275.8 MB, free: 14.56 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: 55 * Number of variables: 55 Notification: Performance of Generate backend data structure: time 0.0004419/0.004653, allocations: 0.5072 MB / 276.3 MB, free: 14.02 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.984e-05/0.004693, allocations: 11.98 kB / 276.3 MB, free: 14 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001583/0.004851, allocations: 44.78 kB / 276.3 MB, free: 13.96 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001854/0.005037, allocations: 176.2 kB / 276.5 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.496e-05/0.005062, allocations: 20.88 kB / 276.5 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.612e-05/0.005088, allocations: 32.36 kB / 276.6 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002487/0.005337, allocations: 201.7 kB / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.005345, allocations: 192 / 276.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.641e-05/0.005362, allocations: 16.38 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.193e-06/0.005369, allocations: 4.375 kB / 276.8 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001369/0.005506, allocations: 102.8 kB / 276.9 MB, free: 13.38 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006385/0.006144, allocations: 0.6618 MB / 277.5 MB, free: 12.68 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00019/0.006334, allocations: 135.3 kB / 277.7 MB, free: 12.53 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.507e-05/0.006399, allocations: 55.66 kB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.58e-05/0.006415, allocations: 4 kB / 277.7 MB, free: 12.47 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001101/0.006525, allocations: 101 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.412e-06/0.006527, allocations: 4 kB / 277.8 MB, free: 12.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002665/0.006793, allocations: 194.7 kB / 278 MB, free: 12.16 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.429e-05/0.006827, allocations: 55.41 kB / 278.1 MB, free: 12.09 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001077/0.006935, allocations: 209.8 kB / 278.3 MB, free: 11.87 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.943e-05/0.006954, allocations: 33.7 kB / 278.3 MB, free: 11.83 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.067e-05/0.007035, allocations: 183.5 kB / 278.5 MB, free: 11.64 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.878e-05/0.007074, allocations: 63.47 kB / 278.6 MB, free: 11.58 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.031e-05/0.007154, allocations: 83.67 kB / 278.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.007273, allocations: 0.4962 MB / 279.1 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.329e-05/0.007336, allocations: 40.62 kB / 279.2 MB, free: 10.94 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.897e-05/0.007435, allocations: 130.6 kB / 279.3 MB, free: 10.78 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001533/0.007588, allocations: 165.4 kB / 279.5 MB, free: 10.58 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.074e-06/0.00759, allocations: 0 / 279.5 MB, free: 10.58 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0002245/0.007815, allocations: 221.5 kB / 279.7 MB, free: 10.36 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.498e-05/0.00783, allocations: 14.59 kB / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.057e-06/0.007834, allocations: 0 / 279.7 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.455e-05/0.007848, allocations: 7.938 kB / 279.7 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.443e-05/0.007933, allocations: 31.92 kB / 279.7 MB, free: 10.31 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.00794, allocations: 7.938 kB / 279.7 MB, free: 10.3 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.543e-05/0.007996, allocations: 31.81 kB / 279.8 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.261e-05/0.008008, allocations: 12 kB / 279.8 MB, free: 10.26 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,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 8.979e-05/0.008098, allocations: 184.5 kB / 280 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.116e-05/0.008119, allocations: 27.97 kB / 280 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.257e-05/0.008152, allocations: 20.92 kB / 280 MB, free: 10.02 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.349e-06/0.008156, allocations: 7.938 kB / 280 MB, free: 10.01 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.501e-06/0.008162, allocations: 4 kB / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.216e-06/0.008165, allocations: 0 / 280 MB, free: 10 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004329/0.008598, allocations: 494.2 kB / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.008599, allocations: 0 / 280.5 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.226e-05/0.008642, allocations: 15.98 kB / 280.5 MB, free: 9.465 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.236e-06/0.008645, allocations: 4 kB / 280.5 MB, free: 9.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.758e-06/0.008655, allocations: 7.938 kB / 280.5 MB, free: 9.453 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.573e-06/0.008656, allocations: 4 kB / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.008657, allocations: 0 / 280.5 MB, free: 9.449 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002043/0.008861, allocations: 321.1 kB / 280.9 MB, free: 9.117 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.375e-05/0.008875, allocations: 15.84 kB / 280.9 MB, free: 9.102 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.666e-05/0.008892, allocations: 4 kB / 280.9 MB, free: 9.098 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.317e-05/0.008935, allocations: 11.98 kB / 280.9 MB, free: 9.086 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.299e-05/0.008988, allocations: 19.83 kB / 280.9 MB, free: 9.066 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.885e-06/0.008996, allocations: 4 kB / 280.9 MB, free: 9.062 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.476e-05/0.009041, allocations: 142.5 kB / 281.1 MB, free: 8.926 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009041, allocations: 0 / 281.1 MB, free: 8.926 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001887/0.009229, allocations: 47.89 kB / 281.1 MB, free: 8.879 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: 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 7.651e-05/0.009306, allocations: 111.2 kB / 281.2 MB, free: 8.762 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0002045/0.00951, allocations: 147.5 kB / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.113e-06/0.009512, allocations: 0 / 281.4 MB, free: 8.613 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.902e-05/0.009591, allocations: 71.59 kB / 281.4 MB, free: 8.539 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001921/0.009783, allocations: 31.86 kB / 281.5 MB, free: 8.508 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004022/0.01018, allocations: 311.6 kB / 281.8 MB, free: 8.176 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.797e-05/0.01023, allocations: 79.98 kB / 281.8 MB, free: 8.078 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.705e-05/0.01028, allocations: 25.83 kB / 281.9 MB, free: 8.051 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.559e-05/0.01033, allocations: 20.5 kB / 281.9 MB, free: 8.031 MB / 266.7 MB Notification: Performance of SimCode: time 4.81e-07/0.01033, allocations: 0 / 281.9 MB, free: 8.031 MB / 266.7 MB Notification: Performance of Templates: time 0.003379/0.0137, allocations: 1.721 MB / 283.6 MB, free: 6.328 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_trunk_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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","",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.8588035041466355]