Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1.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.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|and1.u.1.|and1.u.2.|and1.u.3.|booleanTable.y|changing.u|nand1.u.1.|nand1.u.2.|onDelay.u|or1.u.1.|or1.u.2.|or2.u.1.|or2.u.2.|rSFlipFlop.pre.u|rising.u|set1.y|triggeredAdd.y|xor1.u.1.|xor1.u.2.",fileNamePrefix="Modelica_3.2.3_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001244/0.001244, allocations: 110.2 kB / 18.41 MB, free: 4.68 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.001157/0.001157, allocations: 194.6 kB / 19.35 MB, free: 3.754 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.402/1.402, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.723e-05/2.724e-05, allocations: 9.172 kB / 329.2 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.00362/0.003656, allocations: 2.433 MB / 331.6 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002212/0.005884, allocations: 1.252 MB / 332.9 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001797/0.006076, allocations: 7.938 kB / 332.9 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007999/0.006885, allocations: 243 kB / 333.1 MB, free: 15.39 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004112/0.007307, allocations: 159.1 kB / 333.3 MB, free: 15.24 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006325/0.007951, allocations: 279.4 kB / 333.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005394/0.0085, allocations: 0.5153 MB / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004201/0.008929, allocations: 218.2 kB / 334.3 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002311/0.009168, allocations: 199.2 kB / 334.5 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002203/0.009395, allocations: 207.1 kB / 334.7 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 6.168e-05/0.009465, allocations: 36 kB / 334.7 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002249/0.009696, allocations: 123.9 kB / 334.8 MB, free: 13.67 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004955/0.0102, allocations: 0.6757 MB / 335.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002214/0.01043, allocations: 433.5 kB / 335.9 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.668e-05/0.01052, allocations: 67.69 kB / 336 MB, free: 12.49 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001116/0.01064, allocations: 55.67 kB / 336 MB, free: 12.43 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: 88 (86) * Number of variables: 88 (80) Notification: Performance of Bindings: time 0.001698/0.01235, allocations: 1.598 MB / 337.6 MB, free: 10.73 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001447/0.0125, allocations: 115.7 kB / 337.7 MB, free: 10.61 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009184/0.01343, allocations: 0.999 MB / 338.7 MB, free: 9.586 MB / 286.1 MB Notification: Performance of simplify1: time 6.454e-05/0.0135, allocations: 55.91 kB / 338.8 MB, free: 9.531 MB / 286.1 MB Notification: Performance of Alias: time 0.001984/0.01549, allocations: 1.816 MB / 340.6 MB, free: 7.465 MB / 286.1 MB Notification: Performance of simplify2: time 4.426e-05/0.01555, allocations: 43.91 kB / 340.7 MB, free: 7.422 MB / 286.1 MB Notification: Performance of Events: time 0.0002818/0.01583, allocations: 209.9 kB / 340.9 MB, free: 7.211 MB / 286.1 MB Notification: Performance of Detect States: time 0.0004168/0.01626, allocations: 375.1 kB / 341.2 MB, free: 6.828 MB / 286.1 MB Notification: Performance of Partitioning: time 0.00037/0.01664, allocations: 330 kB / 341.5 MB, free: 6.477 MB / 286.1 MB Notification: Performance of Causalize: time 0.001576/0.01822, allocations: 1.361 MB / 342.9 MB, free: 5.086 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0007142/0.01895, allocations: 0.7518 MB / 343.7 MB, free: 4.301 MB / 286.1 MB Notification: Performance of Inline: time 0.001635/0.02059, allocations: 1.509 MB / 345.2 MB, free: 2.762 MB / 286.1 MB Notification: Performance of Partitioning: time 8.405e-05/0.02069, allocations: 75.62 kB / 345.2 MB, free: 2.68 MB / 286.1 MB Notification: Performance of Cleanup: time 6.783e-05/0.02076, allocations: 67.86 kB / 345.3 MB, free: 2.613 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) pre(not falling.not_u) = rising.pre_u_start ($RES_SIM_6) slice: {}; [SCAL] (1) $SEV_8 = time >= booleanPulse2.pulseStart and time < (booleanPulse2.pulseStart + booleanPulse2.Twidth) ($RES_EVT_126) slice: {}; [SCAL] (1) onDelay.delaySignal = $START.onDelay.delaySignal ($RES_SRT_128) slice: {}; Notification: Performance of Causalize: time 0.004275/0.02504, allocations: 3.756 MB / 349.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Tearing: time 8.856e-06/0.02507, allocations: 4 kB / 349.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Initialization: time 5.11e-07/0.02507, allocations: 0 / 349.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Tearing: time 3.627e-06/0.02508, allocations: 0 / 349.1 MB, free: 14.81 MB / 302.1 MB Notification: Performance of Categorize: time 1.707e-05/0.0251, allocations: 4 kB / 349.1 MB, free: 14.8 MB / 302.1 MB Notification: Performance of Solve: time 0.0006707/0.02578, allocations: 0.5354 MB / 349.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of Jacobian: time 3.697e-06/0.02579, allocations: 0 / 349.6 MB, free: 14.21 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: ......... 4 * 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: .................... 5 (5) {triggeredAdd.y, booleanTable.combiTimeTable.nextTimeEvent, booleanTable.combiTimeTable.nextTimeEventScaled, booleanPulse2.pulseStart, booleanPulse1.pulseStart} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 59 (51) {and1.u, and1.y, booleanPulse1.y, booleanStep.y, or1.u, or1.y, xor1.u, xor1.y, nand1.u, nand1.y, or2.u, or2.y, onDelay.u, onDelay.y, onDelay.delaySignal, onDelay.t_next, rising.y, set1.expr, set1.u, set1.y, set1.firstActiveIndex, falling.y, falling.not_u, changing.y, rSFlipFlop.nor.u2, rSFlipFlop.nor.y, rSFlipFlop.nor1.u1, sampleTriggerSet.y, sampleTriggerReset.y, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_11, $TEV_10, $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: ........... 58 (scalar:57, array:1, record:0) * Number of multi strong components: ............ 7 (algorithm:1, when:5, if:1, 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: ........... 83 (scalar:80, array:2, record:1) * Number of multi strong components: ............ 4 (algorithm:3, when:0, if:1, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001204/0.02592, allocations: 59.25 kB / 349.7 MB, free: 14.16 MB / 302.1 MB Notification: Performance of SimCode: time 0.002873/0.0288, allocations: 2.452 MB / 352.1 MB, free: 11.66 MB / 302.1 MB Error: Template error: A template call failed (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../lib/x86_64-linux-gnu/omc/libOpenModelicaCompiler.so: (null)). One possible reason could be that a template imported function call failed (which should not happen for functions called from within template code; templates assert pure 'match'/non-failing semantics). [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/Compiler/SimCode/SerializeModelInfo.mo:116:9-116:84:writable] Error: Internal error SerializeModelInfo.serialize failed [CodegenCFunctions.tpl:6337:11-6337:11:writable] Error: Template error: Code generation does not support change(not falling.not_u). [CodegenCFunctions.tpl:7222:11-7222:11:writable] Error: Template error: Code generation does not support pre(not falling.not_u). [CodegenCFunctions.tpl:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.