Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008868/0.0008868, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001239/0.002126, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0006504/0.0006504, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.0009442/0.001595, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.9125/0.9125, allocations: 173.4 MB / 186 MB, free: 7.527 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.2209/1.133, allocations: 52.48 MB / 238.5 MB, free: 7.621 MB / 234.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5012,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.783e-06/1.783e-06, allocations: 0 / 239.7 MB, free: 6.383 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.139e-05/2.317e-05, allocations: 4.5 kB / 239.7 MB, free: 6.379 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002606/0.002629, allocations: 1.551 MB / 241.3 MB, free: 4.836 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0005669/0.003196, allocations: 279.1 kB / 241.5 MB, free: 4.562 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.946e-05/0.003295, allocations: 7.938 kB / 241.6 MB, free: 4.555 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001078/0.003403, allocations: 29.02 kB / 241.6 MB, free: 4.527 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 4.93e-05/0.003452, allocations: 16.86 kB / 241.6 MB, free: 4.512 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.003835, allocations: 119.7 kB / 241.7 MB, free: 4.395 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003463/0.004181, allocations: 274.5 kB / 242 MB, free: 4.129 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002885/0.00447, allocations: 131.5 kB / 242.1 MB, free: 3.996 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001626/0.004632, allocations: 127.8 kB / 242.2 MB, free: 3.871 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.004784, allocations: 71.77 kB / 242.3 MB, free: 3.801 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.275e-05/0.004827, allocations: 20 kB / 242.3 MB, free: 3.781 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001138/0.004941, allocations: 36.73 kB / 242.4 MB, free: 3.746 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.481e-05/0.005016, allocations: 47.86 kB / 242.4 MB, free: 3.699 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.359e-05/0.005089, allocations: 53.09 kB / 242.5 MB, free: 3.648 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002881/0.005378, allocations: 159.4 kB / 242.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.823e-05/0.005396, allocations: 0 / 242.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of FrontEnd: time 1.233e-06/0.005397, allocations: 0 / 242.6 MB, free: 3.492 MB / 234.7 MB Notification: Performance of Transformations before backend: time 1.666e-05/0.005414, allocations: 0.9688 kB / 242.6 MB, free: 3.492 MB / 234.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.0006948/0.006108, allocations: 436.1 kB / 243 MB, free: 3.035 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.51e-05/0.006154, allocations: 8.031 kB / 243 MB, free: 3.027 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.801e-05/0.006242, allocations: 28.92 kB / 243.1 MB, free: 3 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.006499, allocations: 151.3 kB / 243.2 MB, free: 2.824 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.635e-05/0.006535, allocations: 20.88 kB / 243.2 MB, free: 2.805 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.418e-05/0.006579, allocations: 32.38 kB / 243.3 MB, free: 2.773 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003105/0.00689, allocations: 192 kB / 243.5 MB, free: 2.574 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.752e-05/0.006907, allocations: 4.781 kB / 243.5 MB, free: 2.57 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.247e-05/0.00693, allocations: 12.38 kB / 243.5 MB, free: 2.559 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.207e-05/0.006942, allocations: 5.062 kB / 243.5 MB, free: 2.555 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000132/0.007074, allocations: 69.36 kB / 243.6 MB, free: 2.492 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007985/0.007872, allocations: 480.1 kB / 244 MB, free: 2 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002187/0.008091, allocations: 114.4 kB / 244.1 MB, free: 1.879 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.87e-05/0.00815, allocations: 40.84 kB / 244.2 MB, free: 1.836 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.247e-05/0.008172, allocations: 5.469 kB / 244.2 MB, free: 1.832 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001624/0.008335, allocations: 95.19 kB / 244.3 MB, free: 1.727 MB / 234.7 MB Notification: Performance of pre-optimization done (n=24): time 1.893e-06/0.008337, allocations: 0 / 244.3 MB, free: 1.727 MB / 234.7 MB Notification: Performance of matching and sorting (n=24): time 0.0002593/0.008596, allocations: 131 kB / 244.4 MB, free: 1.594 MB / 234.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.223e-05/0.008658, allocations: 63.83 kB / 244.5 MB, free: 1.52 MB / 234.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001245/0.008783, allocations: 162.8 kB / 244.6 MB, free: 1.352 MB / 234.7 MB Notification: Performance of collectPreVariables (initialization): time 3.159e-05/0.008814, allocations: 37.7 kB / 244.7 MB, free: 1.309 MB / 234.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.915e-05/0.008903, allocations: 129.3 kB / 244.8 MB, free: 1.18 MB / 234.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.306e-05/0.008957, allocations: 65.19 kB / 244.8 MB, free: 1.117 MB / 234.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.915e-05/0.009056, allocations: 81.91 kB / 244.9 MB, free: 1.027 MB / 234.7 MB Notification: Performance of setup shared object (initialization): time 0.0001121/0.009168, allocations: 330.8 kB / 245.3 MB, free: 0.6953 MB / 234.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.978e-05/0.009218, allocations: 24.64 kB / 245.3 MB, free: 0.6719 MB / 234.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.748e-05/0.009315, allocations: 104 kB / 245.4 MB, free: 0.5469 MB / 234.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001728/0.009488, allocations: 138.3 kB / 245.5 MB, free: 400 kB / 234.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.009493, allocations: 0 / 245.5 MB, free: 400 kB / 234.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.000236/0.009729, allocations: 166.8 kB / 245.7 MB, free: 228 kB / 234.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.733e-05/0.009756, allocations: 8.719 kB / 245.7 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.227e-06/0.009765, allocations: 0 / 245.7 MB, free: 220 kB / 234.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.346e-05/0.009789, allocations: 4.656 kB / 245.7 MB, free: 216 kB / 234.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001991/0.009988, allocations: 39.92 kB / 245.7 MB, free: 176 kB / 234.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.059e-05/0.009998, allocations: 14.45 kB / 245.7 MB, free: 164 kB / 234.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.388e-05/0.01008, allocations: 23.83 kB / 245.8 MB, free: 140 kB / 234.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.526e-05/0.01011, allocations: 8 kB / 245.8 MB, free: 132 kB / 234.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,transition1.condition,transition2.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 (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 0.0001358/0.01024, allocations: 137.8 kB / 245.9 MB, free: 15.98 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.07e-05/0.01027, allocations: 15.94 kB / 245.9 MB, free: 15.97 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002273/0.0105, allocations: 122.6 kB / 246 MB, free: 15.85 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.069e-06/0.01051, allocations: 4 kB / 246 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.857e-06/0.01051, allocations: 4.438 kB / 246.1 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.961e-06/0.01052, allocations: 0 / 246.1 MB, free: 15.84 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005154/0.01103, allocations: 351.2 kB / 246.4 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.518e-06/0.01104, allocations: 5.656 kB / 246.4 MB, free: 15.47 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001007/0.01114, allocations: 27.92 kB / 246.4 MB, free: 15.44 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.514e-05/0.01116, allocations: 23.78 kB / 246.4 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.01117, allocations: 0 / 246.4 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.05e-05/0.01118, allocations: 224 / 246.4 MB, free: 15.42 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.469e-06/0.01118, allocations: 8 kB / 246.5 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.01119, allocations: 3.984 kB / 246.5 MB, free: 15.41 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002131/0.0114, allocations: 216.2 kB / 246.7 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.455e-05/0.01142, allocations: 4 kB / 246.7 MB, free: 15.18 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.365e-05/0.01151, allocations: 11.98 kB / 246.7 MB, free: 15.16 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.58e-05/0.01157, allocations: 23.95 kB / 246.7 MB, free: 15.14 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.393e-05/0.01159, allocations: 4 kB / 246.7 MB, free: 15.14 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.215e-05/0.01162, allocations: 16.84 kB / 246.7 MB, free: 15.12 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01162, allocations: 0 / 246.7 MB, free: 15.12 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002672/0.01189, allocations: 51.83 kB / 246.8 MB, free: 15.07 MB / 250.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: 19 (transition2.enableFire,step.active,transition1.enableFire,initialStep.active,$cse1,$cse2,$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 (26): * Single equations (assignments): 22 * 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 0.0001938/0.01208, allocations: 92.38 kB / 246.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0002246/0.01231, allocations: 129.5 kB / 247 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.463e-05/0.01232, allocations: 4 kB / 247 MB, free: 14.84 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.01243, allocations: 81.5 kB / 247.1 MB, free: 14.75 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003518/0.01278, allocations: 194.2 kB / 247.3 MB, free: 14.53 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007549/0.01354, allocations: 314.9 kB / 247.6 MB, free: 14.19 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.163e-05/0.0136, allocations: 80.27 kB / 247.7 MB, free: 14.09 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 7.759e-05/0.01368, allocations: 21.95 kB / 247.7 MB, free: 14.07 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001156/0.01379, allocations: 87.34 kB / 247.8 MB, free: 13.99 MB / 250.7 MB Notification: Performance of SimCode: time 1.122e-06/0.01379, allocations: 0 / 247.8 MB, free: 13.99 MB / 250.7 MB Notification: Performance of Templates: time 0.006367/0.02016, allocations: 2.122 MB / 249.9 MB, free: 11.91 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; mkfifo Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe >> ../files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.sim & ./Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/StateGraph/Examples/FirstExample/FirstExample.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.565672450698912]