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.0009841/0.0009841, allocations: 84.73 kB / 21.5 MB, free: 2.984 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.0009586/0.0009586, allocations: 162.2 kB / 24.91 MB, free: 8.762 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.9957/0.9957, allocations: 177 MB / 205.2 MB, free: 5.457 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.573e-06/1.573e-06, allocations: 0 / 273.4 MB, free: 1.223 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.383e-05/1.54e-05, allocations: 2.312 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant3): time 0.002414/0.00243, allocations: 1.777 MB / 275.2 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005639/0.002994, allocations: 314.9 kB / 275.5 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.816e-05/0.003082, allocations: 7.938 kB / 275.5 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.003197, allocations: 23.67 kB / 275.5 MB, free: 15.09 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.576e-05/0.003252, allocations: 23.75 kB / 275.5 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.003566, allocations: 119.8 kB / 275.6 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004062/0.003972, allocations: 283.4 kB / 275.9 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000221/0.004193, allocations: 148.1 kB / 276.1 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000125/0.004318, allocations: 135.7 kB / 276.2 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001145/0.004432, allocations: 75.75 kB / 276.3 MB, free: 14.32 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.004463, allocations: 27.94 kB / 276.3 MB, free: 14.29 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.828e-05/0.004521, allocations: 28 kB / 276.3 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.172e-05/0.004573, allocations: 55.81 kB / 276.4 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.097e-05/0.004634, allocations: 67.83 kB / 276.5 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002133/0.004847, allocations: 183.3 kB / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.462e-06/0.004849, allocations: 0 / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.21e-07/0.004849, allocations: 0 / 276.6 MB, free: 13.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.326e-06/0.004853, allocations: 0 / 276.6 MB, free: 13.96 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.00043/0.005283, allocations: 403.7 kB / 277 MB, free: 13.54 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.005314, allocations: 15.92 kB / 277 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001934/0.005508, allocations: 48.89 kB / 277.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001718/0.005679, allocations: 145.5 kB / 277.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.96e-05/0.005709, allocations: 24.88 kB / 277.3 MB, free: 13.29 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.671e-05/0.005736, allocations: 28.38 kB / 277.3 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002409/0.005977, allocations: 226.5 kB / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.005987, allocations: 192 / 277.5 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.651e-05/0.006004, allocations: 8.375 kB / 277.5 MB, free: 13.01 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.268e-06/0.006013, allocations: 8.375 kB / 277.5 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000115/0.006128, allocations: 79.33 kB / 277.6 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006541/0.006782, allocations: 0.7153 MB / 278.3 MB, free: 12.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000149/0.006931, allocations: 121.1 kB / 278.4 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.949e-05/0.006981, allocations: 49.7 kB / 278.5 MB, free: 11.99 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.453e-05/0.006995, allocations: 4 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001144/0.00711, allocations: 109 kB / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.312e-06/0.007111, allocations: 0 / 278.6 MB, free: 11.86 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0001939/0.007305, allocations: 142.6 kB / 278.7 MB, free: 11.71 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.151e-05/0.007346, allocations: 85.05 kB / 278.8 MB, free: 11.61 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.602e-05/0.007432, allocations: 158.5 kB / 279 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.386e-05/0.007456, allocations: 45.62 kB / 279 MB, free: 11.39 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.91e-05/0.007525, allocations: 140.8 kB / 279.2 MB, free: 11.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.933e-05/0.007565, allocations: 59.52 kB / 279.2 MB, free: 11.19 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.958e-05/0.007644, allocations: 85.41 kB / 279.3 MB, free: 11.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 8.391e-05/0.007728, allocations: 334.8 kB / 279.6 MB, free: 10.77 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.101e-05/0.007769, allocations: 27.98 kB / 279.6 MB, free: 10.74 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.162e-05/0.007851, allocations: 100.5 kB / 279.7 MB, free: 10.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001445/0.007995, allocations: 164.5 kB / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.007998, allocations: 0 / 279.9 MB, free: 10.42 MB / 266.7 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0001896/0.008187, allocations: 169.4 kB / 280.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.008201, allocations: 7.938 kB / 280.1 MB, free: 10.24 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.008207, allocations: 4 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.308e-05/0.00822, allocations: 4 kB / 280.1 MB, free: 10.23 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001305/0.00835, allocations: 39.92 kB / 280.1 MB, free: 10.19 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.008357, allocations: 7.938 kB / 280.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.998e-05/0.008427, allocations: 27.78 kB / 280.2 MB, free: 10.16 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.489e-05/0.008442, allocations: 12.28 kB / 280.2 MB, free: 10.14 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.675e-05/0.008528, allocations: 149.8 kB / 280.3 MB, free: 9.988 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.005e-05/0.008549, allocations: 11.98 kB / 280.3 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.266e-05/0.008581, allocations: 24.88 kB / 280.4 MB, free: 9.953 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.617e-06/0.008585, allocations: 4 kB / 280.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.623e-06/0.008586, allocations: 0 / 280.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.078e-06/0.00859, allocations: 0 / 280.4 MB, free: 9.949 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003575/0.008948, allocations: 366.3 kB / 280.7 MB, free: 9.562 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.00895, allocations: 4 kB / 280.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.029e-05/0.009, allocations: 15.94 kB / 280.7 MB, free: 9.543 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.009003, allocations: 4 kB / 280.7 MB, free: 9.539 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.214e-05/0.009015, allocations: 11.98 kB / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.432e-06/0.009016, allocations: 0 / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.009018, allocations: 0 / 280.8 MB, free: 9.527 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00014/0.009158, allocations: 217 kB / 281 MB, free: 9.297 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.388e-05/0.009171, allocations: 23.83 kB / 281 MB, free: 9.273 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.816e-05/0.00919, allocations: 3.984 kB / 281 MB, free: 9.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.188e-05/0.009251, allocations: 8 kB / 281 MB, free: 9.262 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.617e-05/0.009298, allocations: 23.91 kB / 281 MB, free: 9.238 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.155e-06/0.009306, allocations: 7.922 kB / 281 MB, free: 9.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 1.906e-05/0.009325, allocations: 24.48 kB / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.009325, allocations: 0 / 281.1 MB, free: 9.207 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002337/0.009559, allocations: 51.88 kB / 281.1 MB, free: 9.156 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.587e-05/0.009634, allocations: 80.42 kB / 281.2 MB, free: 9.07 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001744/0.009809, allocations: 137.5 kB / 281.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.009812, allocations: 0 / 281.3 MB, free: 8.934 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.028e-05/0.009882, allocations: 65.31 kB / 281.4 MB, free: 8.867 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001867/0.01007, allocations: 35.98 kB / 281.4 MB, free: 8.832 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003896/0.01046, allocations: 318.3 kB / 281.7 MB, free: 8.492 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.992e-05/0.01051, allocations: 80.27 kB / 281.8 MB, free: 8.395 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.116e-05/0.01057, allocations: 21.94 kB / 281.8 MB, free: 8.367 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.02e-05/0.01066, allocations: 87.3 kB / 281.9 MB, free: 8.281 MB / 266.7 MB Notification: Performance of SimCode: time 4.01e-07/0.01066, allocations: 0 / 281.9 MB, free: 8.281 MB / 266.7 MB Notification: Performance of Templates: time 0.004026/0.01469, allocations: 1.868 MB / 283.8 MB, free: 6.445 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 -s gbode -gbm=radauIIA3 -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.462644803337753]