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.0009569/0.0009569, allocations: 88.73 kB / 21.5 MB, free: 2.988 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.001164/0.001164, allocations: 160.2 kB / 24.91 MB, free: 8.723 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 0.9665/0.9665, allocations: 177 MB / 205.2 MB, free: 5.461 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.292e-06/1.292e-06, allocations: 0 / 273.3 MB, free: 1.273 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.32e-05/2.45e-05, allocations: 2.312 kB / 273.3 MB, free: 1.27 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002229/0.002253, allocations: 1.738 MB / 275.1 MB, free: 15.52 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005781/0.002831, allocations: 310.9 kB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.272e-05/0.002914, allocations: 4 kB / 275.4 MB, free: 15.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001169/0.003031, allocations: 27.67 kB / 275.4 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.119e-05/0.003082, allocations: 19.8 kB / 275.4 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003583/0.00344, allocations: 127.7 kB / 275.6 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002585/0.003699, allocations: 283.4 kB / 275.8 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002195/0.003918, allocations: 156.1 kB / 276 MB, free: 14.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001248/0.004043, allocations: 143.7 kB / 276.1 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.00415, allocations: 71.77 kB / 276.2 MB, free: 14.4 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.626e-05/0.004176, allocations: 24 kB / 276.2 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.436e-05/0.004231, allocations: 27.94 kB / 276.2 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.007e-05/0.004281, allocations: 59.8 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.13e-05/0.004342, allocations: 71.83 kB / 276.4 MB, free: 14.22 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002406/0.004583, allocations: 183.2 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.004586, allocations: 4 kB / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.382e-06/0.004587, allocations: 0 / 276.6 MB, free: 14.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.004593, allocations: 0 / 276.6 MB, free: 14.04 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.0004218/0.005014, allocations: 395.8 kB / 276.9 MB, free: 13.62 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.145e-05/0.005046, allocations: 11.98 kB / 277 MB, free: 13.61 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000173/0.005219, allocations: 48.89 kB / 277 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001825/0.005401, allocations: 145.5 kB / 277.1 MB, free: 13.39 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.762e-05/0.005429, allocations: 24.88 kB / 277.2 MB, free: 13.37 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.702e-05/0.005456, allocations: 36.31 kB / 277.2 MB, free: 13.34 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.005686, allocations: 218.5 kB / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.113e-05/0.005698, allocations: 192 / 277.4 MB, free: 13.1 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.005715, allocations: 12.38 kB / 277.4 MB, free: 13.09 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.726e-06/0.005724, allocations: 8.375 kB / 277.4 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.871e-05/0.005812, allocations: 71.33 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006156/0.006428, allocations: 0.7153 MB / 278.2 MB, free: 12.27 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001454/0.006573, allocations: 129.1 kB / 278.4 MB, free: 12.12 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.791e-05/0.006611, allocations: 45.7 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.473e-05/0.006626, allocations: 4 kB / 278.4 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000103/0.006729, allocations: 113 kB / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.252e-06/0.00673, allocations: 0 / 278.5 MB, free: 11.94 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001793/0.006909, allocations: 142.8 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.126e-05/0.006951, allocations: 81.11 kB / 278.7 MB, free: 11.7 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.331e-05/0.007034, allocations: 158.5 kB / 278.9 MB, free: 11.53 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.162e-05/0.007056, allocations: 41.7 kB / 278.9 MB, free: 11.48 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.085e-05/0.007116, allocations: 140.7 kB / 279.1 MB, free: 11.34 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.216e-05/0.007149, allocations: 59.64 kB / 279.1 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.217e-05/0.007211, allocations: 85.62 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.344e-05/0.007284, allocations: 326.8 kB / 279.5 MB, free: 10.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.088e-05/0.007315, allocations: 27.98 kB / 279.6 MB, free: 10.83 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.694e-05/0.007382, allocations: 108.5 kB / 279.7 MB, free: 10.7 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001151/0.007497, allocations: 156.4 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.047e-06/0.007501, allocations: 4 kB / 279.8 MB, free: 10.51 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001531/0.007654, allocations: 165.4 kB / 280 MB, free: 10.34 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.322e-05/0.007667, allocations: 7.938 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.631e-06/0.007673, allocations: 4 kB / 280 MB, free: 10.33 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.007687, allocations: 12.22 kB / 280 MB, free: 10.32 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.72e-05/0.007784, allocations: 43.84 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.25e-06/0.007789, allocations: 4 kB / 280 MB, free: 10.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.831e-05/0.007848, allocations: 27.78 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.106e-05/0.007859, allocations: 12 kB / 280.1 MB, free: 10.23 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 8.622e-05/0.007945, allocations: 137.8 kB / 280.2 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.269e-05/0.007968, allocations: 19.98 kB / 280.2 MB, free: 10.07 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.347e-05/0.008001, allocations: 24.86 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.865e-06/0.008004, allocations: 4 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.066e-06/0.008007, allocations: 4 kB / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.008011, allocations: 0 / 280.3 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003173/0.008328, allocations: 362.3 kB / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.723e-06/0.00833, allocations: 0 / 280.6 MB, free: 9.652 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.894e-05/0.008369, allocations: 23.92 kB / 280.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.008371, allocations: 0 / 280.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.682e-06/0.008378, allocations: 0 / 280.6 MB, free: 9.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.008379, allocations: 4 kB / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/0.00838, allocations: 0 / 280.7 MB, free: 9.625 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001248/0.008505, allocations: 224.9 kB / 280.9 MB, free: 9.387 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.462e-05/0.00852, allocations: 15.84 kB / 280.9 MB, free: 9.371 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.712e-05/0.008537, allocations: 12 kB / 280.9 MB, free: 9.359 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.104e-05/0.008578, allocations: 11.98 kB / 280.9 MB, free: 9.348 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.008619, allocations: 11.97 kB / 280.9 MB, free: 9.336 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.185e-06/0.008628, allocations: 8 kB / 280.9 MB, free: 9.328 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.861e-05/0.008646, allocations: 28.7 kB / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.008646, allocations: 0 / 281 MB, free: 9.301 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001689/0.008815, allocations: 47.89 kB / 281 MB, free: 9.254 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.807e-05/0.008903, allocations: 88.34 kB / 281.1 MB, free: 9.16 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000151/0.009054, allocations: 141.6 kB / 281.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.517e-06/0.009058, allocations: 0 / 281.2 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.644e-05/0.009114, allocations: 60.77 kB / 281.3 MB, free: 8.957 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001514/0.009266, allocations: 23.92 kB / 281.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003568/0.009622, allocations: 322.2 kB / 281.6 MB, free: 8.59 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.46e-05/0.009667, allocations: 84.27 kB / 281.7 MB, free: 8.488 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.073e-05/0.009718, allocations: 22.58 kB / 281.7 MB, free: 8.461 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.009794, allocations: 79.36 kB / 281.8 MB, free: 8.383 MB / 266.7 MB Notification: Performance of SimCode: time 8.22e-07/0.009795, allocations: 3.938 kB / 281.8 MB, free: 8.379 MB / 266.7 MB Notification: Performance of Templates: time 0.003585/0.01338, allocations: 1.868 MB / 283.7 MB, free: 6.543 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.5875483518466353]