Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_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.001095/0.001095, allocations: 108 kB / 18.41 MB, free: 4.645 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.00103/0.00103, allocations: 194.7 kB / 19.35 MB, free: 3.723 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.525/1.525, allocations: 205.1 MB / 225.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.523e-05/3.525e-05, allocations: 3.266 kB / 329.1 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.003543/0.00359, allocations: 1.476 MB / 330.6 MB, free: 1.887 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007906/0.004407, allocations: 239.3 kB / 330.8 MB, free: 1.652 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001076/0.004532, allocations: 8 kB / 330.9 MB, free: 1.645 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001525/0.004694, allocations: 27.67 kB / 330.9 MB, free: 1.617 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 6.773e-05/0.004773, allocations: 11.81 kB / 330.9 MB, free: 1.605 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005238/0.005306, allocations: 119.8 kB / 331 MB, free: 1.488 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004131/0.005762, allocations: 251.5 kB / 331.3 MB, free: 1.242 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004123/0.006187, allocations: 186.3 kB / 331.4 MB, free: 1.055 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001649/0.006364, allocations: 115.8 kB / 331.5 MB, free: 0.9414 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002058/0.006582, allocations: 111.6 kB / 331.7 MB, free: 0.832 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 6.408e-05/0.006656, allocations: 31.94 kB / 331.7 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.979e-05/0.006766, allocations: 35.98 kB / 331.7 MB, free: 0.7656 MB / 270.1 MB Notification: Performance of combineBinaries: time 0.0002987/0.007075, allocations: 300.6 kB / 332 MB, free: 480 kB / 270.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001291/0.007215, allocations: 185.2 kB / 332.2 MB, free: 292 kB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.103e-05/0.007285, allocations: 31.88 kB / 332.2 MB, free: 260 kB / 270.1 MB Notification: Performance of FrontEnd: time 7.111e-05/0.007366, allocations: 31.8 kB / 332.3 MB, free: 228 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.001428/0.008803, allocations: 0.9332 MB / 333.2 MB, free: 15.19 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001445/0.008959, allocations: 75.83 kB / 333.3 MB, free: 15.11 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009325/0.009903, allocations: 0.6503 MB / 333.9 MB, free: 14.43 MB / 286.1 MB Notification: Performance of simplify1: time 8.423e-05/0.009999, allocations: 47.94 kB / 334 MB, free: 14.39 MB / 286.1 MB Notification: Performance of Alias: time 0.001994/0.01201, allocations: 1.101 MB / 335.1 MB, free: 13.16 MB / 286.1 MB Notification: Performance of simplify2: time 6.347e-05/0.01208, allocations: 35.95 kB / 335.1 MB, free: 13.13 MB / 286.1 MB Notification: Performance of Events: time 0.0002619/0.01236, allocations: 132.7 kB / 335.2 MB, free: 13 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004465/0.01282, allocations: 277.9 kB / 335.5 MB, free: 12.71 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0004246/0.01325, allocations: 257.1 kB / 335.8 MB, free: 12.45 MB / 286.1 MB Notification: Performance of Causalize: time 0.001909/0.01518, allocations: 1.073 MB / 336.8 MB, free: 11.38 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007767/0.01597, allocations: 0.5385 MB / 337.4 MB, free: 10.81 MB / 286.1 MB Notification: Performance of Inline: time 0.001104/0.01709, allocations: 0.7331 MB / 338.1 MB, free: 10.04 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0001114/0.01722, allocations: 74.31 kB / 338.2 MB, free: 9.961 MB / 286.1 MB Notification: Performance of Cleanup: time 5.553e-05/0.01728, allocations: 31.97 kB / 338.2 MB, free: 9.93 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.003946/0.02124, allocations: 2.225 MB / 340.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of Tearing: time 9.177e-06/0.02127, allocations: 0 / 340.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of Initialization: time 8.92e-07/0.02128, allocations: 0 / 340.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of Tearing: time 4.228e-06/0.02129, allocations: 0 / 340.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of Categorize: time 1.976e-05/0.02132, allocations: 8 kB / 340.4 MB, free: 7.656 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.0005203/0.02185, allocations: 170.5 kB / 340.6 MB, free: 7.492 MB / 286.1 MB Notification: Performance of Jacobian: time 5.431e-06/0.02187, allocations: 0 / 340.6 MB, free: 7.492 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 9.41e-05/0.02197, allocations: 54.05 kB / 340.7 MB, free: 7.438 MB / 286.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false