Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_Modelica.StateGraph.Examples.FirstExample") translateModel(Modelica.StateGraph.Examples.FirstExample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transition1.enableFire|transition2.enableFire",fileNamePrefix="Modelica_4.0.0_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.001143/0.001143, 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.001113/0.001113, 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 4.0.0+maint.om/package.mo): time 1.207/1.207, allocations: 222.9 MB / 242.4 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.494e-05/1.495e-05, allocations: 5.797 kB / 351.9 MB, free: 3.316 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.StateGraph.Examples.FirstExample): time 0.0019/0.001924, allocations: 1.477 MB / 353.4 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005204/0.002455, allocations: 280.7 kB / 353.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.498e-05/0.00253, allocations: 0 / 353.6 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001039/0.00264, allocations: 31.67 kB / 353.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 3.611e-05/0.002683, allocations: 19.8 kB / 353.7 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003198/0.003012, allocations: 103.8 kB / 353.8 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002409/0.003265, allocations: 255.4 kB / 354.1 MB, free: 1.152 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002492/0.003521, allocations: 174.4 kB / 354.2 MB, free: 0.9766 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001049/0.003635, allocations: 123.7 kB / 354.3 MB, free: 0.8555 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000124/0.003765, allocations: 111.5 kB / 354.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.939e-05/0.003811, allocations: 28 kB / 354.5 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.309e-05/0.003879, allocations: 32 kB / 354.5 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0002017/0.004087, allocations: 308.5 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 8.108e-05/0.004177, allocations: 193.2 kB / 355 MB, free: 196 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.062e-05/0.004223, allocations: 23.94 kB / 355 MB, free: 172 kB / 286.1 MB Notification: Performance of FrontEnd: time 4.028e-05/0.004268, allocations: 39.8 kB / 355.1 MB, free: 132 kB / 286.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.0008679/0.005141, allocations: 0.937 MB / 356 MB, free: 15.09 MB / 302.1 MB Notification: Performance of FunctionAlias: time 9.381e-05/0.005241, allocations: 75.84 kB / 356.1 MB, free: 15.01 MB / 302.1 MB Notification: Performance of Early Inline: time 0.000546/0.005793, allocations: 0.6465 MB / 356.7 MB, free: 14.34 MB / 302.1 MB Notification: Performance of simplify1: time 5.093e-05/0.005851, allocations: 51.91 kB / 356.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Alias: time 0.00116/0.007017, allocations: 1.095 MB / 357.9 MB, free: 13.07 MB / 302.1 MB Notification: Performance of simplify2: time 3.776e-05/0.007064, allocations: 43.94 kB / 357.9 MB, free: 13.03 MB / 302.1 MB Notification: Performance of Events: time 0.0001566/0.007228, allocations: 140.8 kB / 358 MB, free: 12.89 MB / 302.1 MB Notification: Performance of Detect States: time 0.0002538/0.007488, allocations: 265.9 kB / 358.3 MB, free: 12.62 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002463/0.007742, allocations: 257.2 kB / 358.6 MB, free: 12.36 MB / 302.1 MB Notification: Performance of Causalize: time 0.001124/0.008873, allocations: 1.069 MB / 359.6 MB, free: 11.29 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004557/0.009338, allocations: 0.5541 MB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of Inline: time 0.0006502/0.009995, allocations: 0.7331 MB / 360.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of Partitioning: time 5.463e-05/0.01006, allocations: 58.34 kB / 361 MB, free: 9.871 MB / 302.1 MB Notification: Performance of Cleanup: time 3.562e-05/0.0101, allocations: 35.97 kB / 361 MB, free: 9.836 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_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.002337/0.01244, allocations: 2.214 MB / 363.2 MB, free: 7.582 MB / 302.1 MB Notification: Performance of Tearing: time 4.899e-06/0.01246, allocations: 7.938 kB / 363.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of Initialization: time 3.3e-07/0.01246, allocations: 0 / 363.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of Tearing: time 1.152e-06/0.01247, allocations: 0 / 363.2 MB, free: 7.574 MB / 302.1 MB Notification: Performance of Categorize: time 7.464e-06/0.01248, allocations: 3.984 kB / 363.2 MB, free: 7.57 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.0002745/0.01276, allocations: 182.4 kB / 363.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of Jacobian: time 3.216e-06/0.01277, allocations: 0 / 363.4 MB, free: 7.395 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: ......... 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.674e-05/0.01282, allocations: 53.41 kB / 363.5 MB, free: 7.348 MB / 302.1 MB Error: Internal error NBEquation.WhenEquationBody.getBodyAttributes.getConditions failed for condition: false