Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2.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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") translateModel(Modelica.StateGraph.Examples.FirstExample_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_3.2.3_Modelica.StateGraph.Examples.FirstExample_Variant2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001312/0.001319, allocations: 102.3 kB / 18.41 MB, free: 4.664 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.001292/0.001292, allocations: 192.3 kB / 19.35 MB, free: 3.738 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.531/1.531, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.873e-05/2.874e-05, allocations: 7.203 kB / 329.1 MB, free: 3.371 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002709/0.002749, allocations: 1.658 MB / 330.8 MB, free: 1.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006467/0.003409, allocations: 263.2 kB / 331 MB, free: 1.441 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.697e-05/0.003516, allocations: 4 kB / 331.1 MB, free: 1.438 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.003661, allocations: 31.67 kB / 331.1 MB, free: 1.406 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 4.516e-05/0.003713, allocations: 15.75 kB / 331.1 MB, free: 1.391 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004032/0.004139, allocations: 127.8 kB / 331.2 MB, free: 1.266 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.004439, allocations: 255.6 kB / 331.5 MB, free: 1.016 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003247/0.004771, allocations: 214.9 kB / 331.7 MB, free: 0.8008 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001278/0.004907, allocations: 123.6 kB / 331.8 MB, free: 0.6797 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00016/0.005073, allocations: 123.5 kB / 331.9 MB, free: 0.5586 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 5.018e-05/0.005131, allocations: 28 kB / 332 MB, free: 0.5312 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.497e-05/0.005222, allocations: 28 kB / 332 MB, free: 0.5039 MB / 270.1 MB Notification: Performance of combineBinaries: time 0.0002443/0.005475, allocations: 336.2 kB / 332.3 MB, free: 176 kB / 270.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001343/0.005616, allocations: 201 kB / 332.5 MB, free: 15.97 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.187e-05/0.005674, allocations: 31.88 kB / 332.5 MB, free: 15.94 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.626e-05/0.005745, allocations: 39.8 kB / 332.6 MB, free: 15.9 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 64 (64) * Number of variables: 60 (60) Notification: Performance of Bindings: time 0.001151/0.006903, allocations: 0.9756 MB / 333.5 MB, free: 14.82 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001273/0.007038, allocations: 90.38 kB / 333.6 MB, free: 14.73 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0006986/0.007744, allocations: 0.6685 MB / 334.3 MB, free: 14.04 MB / 286.1 MB Notification: Performance of simplify1: time 8.179e-05/0.007835, allocations: 55.92 kB / 334.4 MB, free: 13.98 MB / 286.1 MB Notification: Performance of Alias: time 0.001862/0.009704, allocations: 1.217 MB / 335.6 MB, free: 12.62 MB / 286.1 MB Notification: Performance of simplify2: time 6.021e-05/0.009778, allocations: 39.94 kB / 335.6 MB, free: 12.58 MB / 286.1 MB Notification: Performance of Events: time 0.0002195/0.01, allocations: 132.8 kB / 335.7 MB, free: 12.45 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004284/0.01044, allocations: 275 kB / 336 MB, free: 12.17 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003732/0.01083, allocations: 257.2 kB / 336.3 MB, free: 11.91 MB / 286.1 MB Notification: Performance of Causalize: time 0.001492/0.01233, allocations: 1.077 MB / 337.3 MB, free: 10.83 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006639/0.013, allocations: 0.5618 MB / 337.9 MB, free: 10.24 MB / 286.1 MB Notification: Performance of Inline: time 0.000878/0.01389, allocations: 0.7563 MB / 338.7 MB, free: 9.449 MB / 286.1 MB Notification: Performance of Partitioning: time 7.083e-05/0.01398, allocations: 66.3 kB / 338.7 MB, free: 9.375 MB / 286.1 MB Notification: Performance of Cleanup: time 5.11e-05/0.01403, allocations: 31.97 kB / 338.8 MB, free: 9.344 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_54) slice: {}; [SCAL] (1) initialStep.outPort[1].reset = transition1.outPort.set ($RES_SIM_59) slice: {}; [SCAL] (1) $SEV_4 = transition1.enableFire and time >= ((time - transition1.t_dummy) + transition1.waitTime) ($RES_EVT_92) slice: {}; [SCAL] (1) $SEV_1 = (transition2.localCondition and transition2.inPort.available) and not transition2.outPort.occupied ($RES_EVT_89) slice: {}; Notification: Performance of Causalize: time 0.002771/0.01681, allocations: 2.268 MB / 341 MB, free: 7.039 MB / 286.1 MB Notification: Performance of Tearing: time 8.115e-06/0.01684, allocations: 4 kB / 341 MB, free: 7.035 MB / 286.1 MB Notification: Performance of Initialization: time 5.01e-07/0.01684, allocations: 0 / 341 MB, free: 7.035 MB / 286.1 MB Notification: Performance of Tearing: time 2.555e-06/0.01685, allocations: 0 / 341 MB, free: 7.035 MB / 286.1 MB Notification: Performance of Categorize: time 1.406e-05/0.01687, allocations: 4 kB / 341 MB, free: 7.031 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.000346/0.01722, allocations: 182.4 kB / 341.2 MB, free: 6.852 MB / 286.1 MB Notification: Performance of Jacobian: time 4.388e-06/0.01723, allocations: 4 kB / 341.2 MB, free: 6.848 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: .................... 3 (3) {timer.entryTime, step.oldActive, initialStep.oldActive} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 40 (40) {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.localCondition, 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_8, $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: ........... 45 (scalar:45, 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: ........... 58 (scalar:58, 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 6.823e-05/0.01731, allocations: 50.14 kB / 341.3 MB, free: 6.797 MB / 286.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false