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.001964/0.001964, allocations: 103.8 kB / 20.97 MB, free: 3.441 MB / 18.57 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.001872/0.001872, allocations: 141.5 kB / 24.26 MB, free: 160 kB / 18.57 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 1.559/1.559, allocations: 173.3 MB / 200.8 MB, free: 9.316 MB / 186.7 MB " [Timeout remaining time 178] 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.653e-06/1.653e-06, allocations: 0 / 267.3 MB, free: 6.777 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.514e-05/2.679e-05, allocations: 2.312 kB / 267.3 MB, free: 6.773 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002802/0.002829, allocations: 1.491 MB / 268.8 MB, free: 5.27 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.000708/0.003537, allocations: 279.1 kB / 269 MB, free: 4.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.664e-05/0.003623, allocations: 7.938 kB / 269 MB, free: 4.988 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001481/0.003771, allocations: 27.69 kB / 269.1 MB, free: 4.961 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 5.07e-05/0.003822, allocations: 11.86 kB / 269.1 MB, free: 4.949 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004475/0.004269, allocations: 131.6 kB / 269.2 MB, free: 4.82 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003635/0.004633, allocations: 263.5 kB / 269.5 MB, free: 4.562 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005424/0.005175, allocations: 150.7 kB / 269.6 MB, free: 4.41 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001825/0.005358, allocations: 135.7 kB / 269.8 MB, free: 4.277 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001374/0.005495, allocations: 67.78 kB / 269.8 MB, free: 4.211 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.56e-05/0.005541, allocations: 20 kB / 269.8 MB, free: 4.191 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.887e-05/0.00562, allocations: 32 kB / 269.9 MB, free: 4.16 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.114e-05/0.005701, allocations: 55.86 kB / 269.9 MB, free: 4.105 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.853e-05/0.005789, allocations: 59.83 kB / 270 MB, free: 4.047 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003637/0.006153, allocations: 267.1 kB / 270.2 MB, free: 3.785 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.635e-06/0.006156, allocations: 0 / 270.2 MB, free: 3.785 MB / 250.7 MB Notification: Performance of FrontEnd: time 7.92e-07/0.006156, allocations: 0 / 270.2 MB, free: 3.785 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.006162, allocations: 0 / 270.2 MB, free: 3.785 MB / 250.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.0007884/0.006951, allocations: 0.5224 MB / 270.8 MB, free: 3.227 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.39e-05/0.006985, allocations: 8.922 kB / 270.8 MB, free: 3.219 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.579e-05/0.00708, allocations: 40.8 kB / 270.8 MB, free: 3.18 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002772/0.007358, allocations: 172.3 kB / 271 MB, free: 2.984 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.842e-05/0.007396, allocations: 20.86 kB / 271 MB, free: 2.961 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.733e-05/0.007443, allocations: 36.31 kB / 271 MB, free: 2.926 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004636/0.007907, allocations: 249 kB / 271.3 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.238e-05/0.007919, allocations: 192 / 271.3 MB, free: 2.668 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.709e-05/0.007946, allocations: 12.38 kB / 271.3 MB, free: 2.656 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.865e-06/0.007954, allocations: 4.375 kB / 271.3 MB, free: 2.652 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.008267, allocations: 149.9 kB / 271.4 MB, free: 2.508 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001149/0.009416, allocations: 0.7319 MB / 272.2 MB, free: 1.734 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003439/0.00976, allocations: 171.1 kB / 272.3 MB, free: 1.555 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001438/0.009904, allocations: 79.59 kB / 272.4 MB, free: 1.473 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.63e-05/0.00993, allocations: 4 kB / 272.4 MB, free: 1.469 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002248/0.01015, allocations: 129 kB / 272.6 MB, free: 1.328 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 1.363e-06/0.01016, allocations: 0 / 272.6 MB, free: 1.328 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.0004924/0.01065, allocations: 228.6 kB / 272.8 MB, free: 1.102 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.609e-05/0.01071, allocations: 67.33 kB / 272.8 MB, free: 1.023 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002744/0.01099, allocations: 221.8 kB / 273.1 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.42e-05/0.01103, allocations: 37.69 kB / 273.1 MB, free: 0.7461 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001455/0.01118, allocations: 183.5 kB / 273.3 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.514e-05/0.01125, allocations: 67.53 kB / 273.3 MB, free: 0.4922 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001491/0.0114, allocations: 107.7 kB / 273.4 MB, free: 384 kB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0003072/0.01171, allocations: 0.5001 MB / 273.9 MB, free: 15.86 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001295/0.01184, allocations: 64.62 kB / 274 MB, free: 15.8 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000217/0.01206, allocations: 162.7 kB / 274.2 MB, free: 15.61 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003013/0.01236, allocations: 197.3 kB / 274.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.374e-06/0.01236, allocations: 4 kB / 274.4 MB, free: 15.38 MB / 266.7 MB Notification: Performance of matching and sorting (n=39) (initialization): time 0.0004501/0.01281, allocations: 265.3 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.01282, allocations: 4 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.314e-06/0.01283, allocations: 4 kB / 274.6 MB, free: 15.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.674e-05/0.01285, allocations: 3.938 kB / 274.6 MB, free: 15.1 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001418/0.01299, allocations: 35.92 kB / 274.7 MB, free: 15.07 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.013, allocations: 4 kB / 274.7 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.93e-05/0.0131, allocations: 27.78 kB / 274.7 MB, free: 15.04 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.907e-05/0.01313, allocations: 12.2 kB / 274.7 MB, free: 15.02 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 0.0001852/0.01331, allocations: 200.5 kB / 274.9 MB, free: 14.82 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.9e-05/0.01335, allocations: 27.89 kB / 274.9 MB, free: 14.79 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004065/0.01376, allocations: 198.4 kB / 275.1 MB, free: 14.59 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.003e-06/0.01377, allocations: 7.938 kB / 275.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.01377, allocations: 0 / 275.1 MB, free: 14.58 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.01e-05/0.01378, allocations: 7.984 kB / 275.1 MB, free: 14.57 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008432/0.01462, allocations: 0.5524 MB / 275.7 MB, free: 13.98 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.368e-06/0.01463, allocations: 3.984 kB / 275.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.209e-05/0.01471, allocations: 15.94 kB / 275.7 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.404e-06/0.01471, allocations: 4 kB / 275.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.899e-05/0.01473, allocations: 8 kB / 275.7 MB, free: 13.95 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.538e-06/0.01473, allocations: 7.922 kB / 275.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.01474, allocations: 0 / 275.7 MB, free: 13.94 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004363/0.01517, allocations: 348 kB / 276.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.534e-05/0.0152, allocations: 15.84 kB / 276.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.742e-05/0.01522, allocations: 8 kB / 276.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.025e-05/0.01531, allocations: 8 kB / 276.1 MB, free: 13.55 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.24e-05/0.01541, allocations: 23.95 kB / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.735e-05/0.01542, allocations: 4 kB / 276.1 MB, free: 13.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001008/0.01553, allocations: 147.2 kB / 276.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01553, allocations: 0 / 276.3 MB, free: 13.38 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003023/0.01583, allocations: 51.89 kB / 276.3 MB, free: 13.32 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: 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.0001771/0.016, allocations: 115.1 kB / 276.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0005656/0.01657, allocations: 187.5 kB / 276.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.663e-06/0.01657, allocations: 0 / 276.6 MB, free: 13.02 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.01674, allocations: 95.53 kB / 276.7 MB, free: 12.92 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003043/0.01704, allocations: 32.36 kB / 276.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006679/0.01771, allocations: 351.2 kB / 277.1 MB, free: 12.51 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001321/0.01784, allocations: 116.6 kB / 277.2 MB, free: 12.38 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 7.92e-05/0.01792, allocations: 25.95 kB / 277.2 MB, free: 12.36 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.835e-05/0.01799, allocations: 24.48 kB / 277.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of SimCode: time 4.41e-07/0.01799, allocations: 0 / 277.3 MB, free: 12.33 MB / 266.7 MB Notification: Performance of Templates: time 0.006114/0.02411, allocations: 1.955 MB / 279.2 MB, free: 10.41 MB / 266.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 -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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.5566420200048015]