Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) 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_Variant2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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_4.0.0_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.001304/0.001304, allocations: 113 kB / 17.75 MB, free: 5.348 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.001245/0.001245, allocations: 184.8 kB / 18.68 MB, free: 4.426 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.313/1.313, allocations: 222.9 MB / 242.4 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.274e-05/2.275e-05, allocations: 2.281 kB / 351.9 MB, free: 3.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample_Variant2): time 0.002491/0.002522, allocations: 1.656 MB / 353.6 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006301/0.003166, allocations: 295.1 kB / 353.8 MB, free: 1.344 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.448e-05/0.00327, allocations: 4 kB / 353.8 MB, free: 1.34 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000137/0.003413, allocations: 31.67 kB / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.102e-05/0.003468, allocations: 11.81 kB / 353.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.003863, allocations: 119.8 kB / 354 MB, free: 1.18 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002836/0.004156, allocations: 263.4 kB / 354.3 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003065/0.004473, allocations: 214.1 kB / 354.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001224/0.004603, allocations: 127.7 kB / 354.6 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001522/0.004762, allocations: 123.5 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.193e-05/0.00481, allocations: 28 kB / 354.7 MB, free: 448 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.993e-05/0.004886, allocations: 31.98 kB / 354.8 MB, free: 416 kB / 286.1 MB Notification: Performance of combineBinaries: time 0.0002138/0.005106, allocations: 332.2 kB / 355.1 MB, free: 80 kB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001224/0.005235, allocations: 201.1 kB / 355.3 MB, free: 15.88 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.226e-05/0.005294, allocations: 39.75 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 5.625e-05/0.005355, allocations: 35.8 kB / 355.4 MB, free: 15.8 MB / 302.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.001005/0.006366, allocations: 1.011 MB / 356.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001142/0.006486, allocations: 74.5 kB / 356.5 MB, free: 14.62 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0005886/0.007084, allocations: 0.6724 MB / 357.1 MB, free: 13.92 MB / 302.1 MB Notification: Performance of simplify1: time 6.22e-05/0.007154, allocations: 51.92 kB / 357.2 MB, free: 13.87 MB / 302.1 MB Notification: Performance of Alias: time 0.001366/0.008526, allocations: 1.202 MB / 358.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of simplify2: time 4.318e-05/0.008579, allocations: 39.94 kB / 358.4 MB, free: 12.49 MB / 302.1 MB Notification: Performance of Events: time 0.000179/0.008763, allocations: 147.4 kB / 358.6 MB, free: 12.34 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003119/0.009082, allocations: 295 kB / 358.9 MB, free: 12.04 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002748/0.009368, allocations: 261.5 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of Causalize: time 0.001219/0.01059, allocations: 1.123 MB / 360.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004934/0.0111, allocations: 0.5841 MB / 360.8 MB, free: 10.02 MB / 302.1 MB Notification: Performance of Inline: time 0.000707/0.01181, allocations: 0.7939 MB / 361.6 MB, free: 9.191 MB / 302.1 MB Notification: Performance of Partitioning: time 6.783e-05/0.01189, allocations: 60.98 kB / 361.7 MB, free: 9.125 MB / 302.1 MB Notification: Performance of Cleanup: time 4.016e-05/0.01194, allocations: 35.97 kB / 361.7 MB, free: 9.09 MB / 302.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_55) slice: {}; [SCAL] (1) initialStep.outPort[1].reset = transition1.outPort.set ($RES_SIM_60) slice: {}; [SCAL] (1) $SEV_4 = transition1.enableFire and time >= ((time - transition1.t_dummy) + transition1.waitTime) ($RES_EVT_94) slice: {}; [SCAL] (1) $SEV_1 = (transition2.localCondition and transition2.inPort.available) and not transition2.outPort.occupied ($RES_EVT_91) slice: {}; Notification: Performance of Causalize: time 0.002622/0.01456, allocations: 2.357 MB / 364.1 MB, free: 6.699 MB / 302.1 MB Notification: Performance of Tearing: time 8.566e-06/0.01458, allocations: 3.938 kB / 364.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of Initialization: time 4.31e-07/0.01459, allocations: 0 / 364.1 MB, free: 6.695 MB / 302.1 MB Notification: Performance of Tearing: time 5.891e-06/0.0146, allocations: 4 kB / 364.1 MB, free: 6.691 MB / 302.1 MB Notification: Performance of Categorize: time 1.526e-05/0.01462, allocations: 4 kB / 364.1 MB, free: 6.688 MB / 302.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.0003381/0.01497, allocations: 190.5 kB / 364.3 MB, free: 6.5 MB / 302.1 MB Notification: Performance of Jacobian: time 3.537e-06/0.01498, allocations: 0 / 364.3 MB, free: 6.5 MB / 302.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: ......... 2 * 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: .................... 4 (4) {timer.entryTime, transition2.t_start, step.oldActive, initialStep.oldActive} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 41 (41) {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_9, $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: ........... 46 (scalar:46, array:0, record:0) * Number of multi strong components: ............ 5 (algorithm:0, when:5, 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: ........... 61 (scalar:61, 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.908e-05/0.01505, allocations: 56.75 kB / 364.3 MB, free: 6.445 MB / 302.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false