Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001265/0.001264, allocations: 111.8 kB / 17.75 MB, free: 5.312 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.001328/0.001328, allocations: 185.8 kB / 18.68 MB, free: 4.398 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.312/1.312, allocations: 205.1 MB / 224.6 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.38e-05/2.38e-05, allocations: 2.281 kB / 328.5 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.002234/0.002266, allocations: 1.467 MB / 329.9 MB, free: 1.895 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005678/0.002845, allocations: 247.3 kB / 330.2 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.303e-05/0.002929, allocations: 4 kB / 330.2 MB, free: 1.648 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001013/0.003039, allocations: 23.69 kB / 330.2 MB, free: 1.625 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.21e-05/0.003096, allocations: 15.86 kB / 330.2 MB, free: 1.609 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003585/0.003459, allocations: 111.8 kB / 330.3 MB, free: 1.5 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.003724, allocations: 251.5 kB / 330.6 MB, free: 1.254 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002761/0.004008, allocations: 186.3 kB / 330.8 MB, free: 1.066 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.004129, allocations: 123.7 kB / 330.9 MB, free: 0.9453 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.004282, allocations: 119.4 kB / 331 MB, free: 0.8281 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 3.879e-05/0.004327, allocations: 28 kB / 331 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.541e-05/0.004398, allocations: 32 kB / 331.1 MB, free: 0.7695 MB / 270.1 MB Notification: Performance of combineBinaries: time 0.0002008/0.004604, allocations: 308.6 kB / 331.4 MB, free: 476 kB / 270.1 MB Notification: Performance of replaceArrayConstructors: time 8.671e-05/0.004697, allocations: 177.2 kB / 331.5 MB, free: 296 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 4.182e-05/0.004744, allocations: 31.88 kB / 331.6 MB, free: 264 kB / 270.1 MB Notification: Performance of FrontEnd: time 3.328e-05/0.004782, allocations: 27.81 kB / 331.6 MB, free: 236 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.0009484/0.005735, allocations: 0.937 MB / 332.5 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FunctionAlias: time 9.76e-05/0.005839, allocations: 67.89 kB / 332.6 MB, free: 15.12 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0005683/0.006414, allocations: 0.6503 MB / 333.2 MB, free: 14.45 MB / 286.1 MB Notification: Performance of simplify1: time 5.368e-05/0.006474, allocations: 47.92 kB / 333.3 MB, free: 14.4 MB / 286.1 MB Notification: Performance of Alias: time 0.001083/0.007564, allocations: 0.9813 MB / 334.3 MB, free: 13.3 MB / 286.1 MB Notification: Performance of simplify2: time 4.07e-05/0.007615, allocations: 43.94 kB / 334.3 MB, free: 13.25 MB / 286.1 MB Notification: Performance of Events: time 0.0001723/0.007794, allocations: 128.8 kB / 334.4 MB, free: 13.13 MB / 286.1 MB Notification: Performance of Detect States: time 0.0002808/0.008083, allocations: 268.9 kB / 334.7 MB, free: 12.86 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0002606/0.008351, allocations: 257.1 kB / 335 MB, free: 12.59 MB / 286.1 MB Notification: Performance of Causalize: time 0.001317/0.009675, allocations: 1.377 MB / 336.3 MB, free: 11.22 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004741/0.01016, allocations: 0.5542 MB / 336.9 MB, free: 10.64 MB / 286.1 MB Notification: Performance of Inline: time 0.0006694/0.01084, allocations: 0.7331 MB / 337.6 MB, free: 9.871 MB / 286.1 MB Notification: Performance of Partitioning: time 6.498e-05/0.01091, allocations: 54.36 kB / 337.7 MB, free: 9.812 MB / 286.1 MB Notification: Performance of Cleanup: time 3.914e-05/0.01095, allocations: 39.95 kB / 337.7 MB, free: 9.773 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.002109/0.01307, allocations: 2.302 MB / 340 MB, free: 7.477 MB / 286.1 MB Notification: Performance of Tearing: time 6.832e-06/0.01309, allocations: 3.938 kB / 340 MB, free: 7.473 MB / 286.1 MB Notification: Performance of Initialization: time 5.11e-07/0.01309, allocations: 0 / 340 MB, free: 7.473 MB / 286.1 MB Notification: Performance of Tearing: time 3.586e-06/0.0131, allocations: 3.984 kB / 340 MB, free: 7.469 MB / 286.1 MB Notification: Performance of Categorize: time 9.728e-06/0.01311, allocations: 4 kB / 340 MB, free: 7.465 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.0003033/0.01342, allocations: 186.5 kB / 340.2 MB, free: 7.285 MB / 286.1 MB Notification: Performance of Jacobian: time 2.925e-06/0.01343, allocations: 0 / 340.2 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 5.031e-05/0.01349, allocations: 53.86 kB / 340.3 MB, free: 7.242 MB / 286.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false