Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.StateGraph.Examples.FirstExample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 104.6 kB / 16.42 MB, free: 5.957 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001247/0.001247, allocations: 185.5 kB / 17.36 MB, free: 5.574 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.305/1.305, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.446e-05/2.446e-05, allocations: 6.219 kB / 327.2 MB, free: 3.363 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.00215/0.002182, allocations: 1.466 MB / 328.6 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006053/0.002798, allocations: 247.3 kB / 328.9 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.42e-05/0.002894, allocations: 8 kB / 328.9 MB, free: 1.637 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001167/0.003017, allocations: 19.69 kB / 328.9 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.38e-05/0.003072, allocations: 15.81 kB / 328.9 MB, free: 1.602 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003554/0.003433, allocations: 115.8 kB / 329 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.000291/0.003735, allocations: 255.4 kB / 329.3 MB, free: 1.238 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003161/0.004059, allocations: 186.3 kB / 329.5 MB, free: 1.051 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001235/0.004192, allocations: 115.8 kB / 329.6 MB, free: 0.9375 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001363/0.004335, allocations: 111.6 kB / 329.7 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 4.066e-05/0.004381, allocations: 31.94 kB / 329.7 MB, free: 0.7969 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.88e-05/0.004455, allocations: 35.98 kB / 329.7 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of combineBinaries: time 0.0002007/0.004662, allocations: 308.6 kB / 330 MB, free: 468 kB / 270.1 MB Notification: Performance of replaceArrayConstructors: time 7.277e-05/0.004741, allocations: 177.2 kB / 330.2 MB, free: 288 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.463e-05/0.00479, allocations: 31.88 kB / 330.2 MB, free: 256 kB / 270.1 MB Notification: Performance of FrontEnd: time 2.976e-05/0.004825, allocations: 31.8 kB / 330.3 MB, free: 224 kB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 59 (59) * Number of variables: 55 (55) Notification: Performance of Bindings: time 0.000923/0.005752, allocations: 0.9254 MB / 331.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001037/0.005862, allocations: 75.86 kB / 331.3 MB, free: 15.12 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005566/0.006425, allocations: 0.6581 MB / 331.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simplify1: time 5.096e-05/0.006483, allocations: 43.94 kB / 332 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Alias: time 0.001093/0.007583, allocations: 0.9852 MB / 333 MB, free: 13.28 MB / 286.1 MB Notification: Performance of simplify2: time 3.283e-05/0.007626, allocations: 31.97 kB / 333 MB, free: 13.25 MB / 286.1 MB Notification: Performance of Events: time 0.0001634/0.007795, allocations: 136.8 kB / 333.1 MB, free: 13.12 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002855/0.008087, allocations: 265.9 kB / 333.4 MB, free: 12.84 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002527/0.008348, allocations: 253.1 kB / 333.6 MB, free: 12.59 MB / 286.1 MB Notification: Performance of Causalize: time 0.001262/0.009616, allocations: 1.381 MB / 335 MB, free: 11.21 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004444/0.01007, allocations: 0.5503 MB / 335.6 MB, free: 10.63 MB / 286.1 MB Notification: Performance of Inline: time 0.0006336/0.01071, allocations: 0.737 MB / 336.3 MB, free: 9.859 MB / 286.1 MB Notification: Performance of Partitioning: time 5.162e-05/0.01077, allocations: 50.47 kB / 336.4 MB, free: 9.805 MB / 286.1 MB Notification: Performance of Cleanup: time 3.777e-05/0.01081, allocations: 39.91 kB / 336.4 MB, free: 9.766 MB / 286.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) step.outPort[1].reset = transition2.outPort.set ($RES_SIM_49) slice: {}; [SCAL] (1) initialStep.outPort[1].reset = transition1.outPort.set ($RES_SIM_53) slice: {}; [SCAL] (1) $SEV_4 = transition1.enableFire and time >= ((time - transition1.t_dummy) + transition1.waitTime) ($RES_EVT_87) slice: {}; [SCAL] (1) $SEV_1 = transition2.enableFire and time >= ((time - transition2.t_dummy) + transition2.waitTime) ($RES_EVT_84) slice: {}; Notification: Performance of Causalize: time 0.002033/0.01285, allocations: 2.307 MB / 338.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of Tearing: time 8.225e-06/0.01287, allocations: 0 / 338.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of Initialization: time 3.1e-07/0.01288, allocations: 0 / 338.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of Tearing: time 1.743e-06/0.01288, allocations: 0 / 338.7 MB, free: 7.465 MB / 286.1 MB Notification: Performance of Categorize: time 8.215e-06/0.01289, allocations: 4 kB / 338.7 MB, free: 7.461 MB / 286.1 MB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/NFFrontEnd/NFCeval.mo:2011:9-2012:55:writable] Error: Internal error NFCeval.evalBuiltinCall: unimplemented case for pre Notification: Performance of Solve: time 0.0002841/0.01318, allocations: 182.8 kB / 338.9 MB, free: 7.285 MB / 286.1 MB Notification: Performance of Jacobian: time 3.737e-06/0.01319, allocations: 0 / 338.9 MB, free: 7.285 MB / 286.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 0 * Number of ODE event partitions: ............... 0 * Number of algebraic event partitions: ......... 1 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 0 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 0 (0) {} * Number of discrete states: .................... 2 (2) {step.oldActive, initialStep.oldActive} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 39 (39) {initialStep.inPort.set, initialStep.inPort.occupied, initialStep.outPort.reset, initialStep.outPort.available, initialStep.outerStatePort.localActive, initialStep.newActive, transition1.enableFire, transition1.inPort.available, transition1.outPort.occupied, transition1.outPort.set, step.inPort.set, step.inPort.occupied, step.outPort.reset, step.outPort.available, step.outerStatePort.localActive, step.newActive, transition2.enableFire, transition2.inPort.available, transition2.outPort.occupied, transition2.outPort.set, stateGraphRoot.activeSteps, $FUN_1, $FUN_2, $FUN_3, $FUN_4, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $TEV_3, $TEV_2, $TEV_1, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 44 (scalar:44, array:0, record:0) * Number of multi strong components: ............ 4 (algorithm:0, when:4, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 56 (scalar:56, array:0, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 0 (linear: 0, nonlinear:0) Notification: Performance of backend: time 4.732e-05/0.01324, allocations: 60.97 kB / 338.9 MB, free: 7.234 MB / 286.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false