Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.BooleanNetwork1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.BooleanNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001118/0.001119, allocations: 119.7 kB / 18.47 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001174/0.001174, allocations: 205.1 kB / 19.42 MB, free: 3.758 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.25/1.25, allocations: 227.4 MB / 247.6 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.631e-05/1.632e-05, allocations: 6.219 kB / 359.3 MB, free: 13.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003106/0.003131, allocations: 2.49 MB / 361.8 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002049/0.005193, allocations: 1.473 MB / 363.3 MB, free: 9.027 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001402/0.005344, allocations: 7.938 kB / 363.3 MB, free: 9.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005845/0.005935, allocations: 238.9 kB / 363.5 MB, free: 8.785 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003857/0.006329, allocations: 199 kB / 363.7 MB, free: 8.59 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005226/0.006862, allocations: 263.3 kB / 364 MB, free: 8.332 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004828/0.007356, allocations: 0.5348 MB / 364.5 MB, free: 7.793 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003143/0.007679, allocations: 206.2 kB / 364.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.007894, allocations: 207.2 kB / 364.9 MB, free: 7.375 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.0081, allocations: 215 kB / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.256e-05/0.00816, allocations: 36 kB / 365.2 MB, free: 7.129 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001932/0.008359, allocations: 115.9 kB / 365.3 MB, free: 7.016 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004458/0.008813, allocations: 0.6795 MB / 366 MB, free: 6.328 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002023/0.009022, allocations: 441.3 kB / 366.4 MB, free: 5.891 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.685e-05/0.009094, allocations: 71.75 kB / 366.5 MB, free: 5.82 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.171e-05/0.009181, allocations: 47.67 kB / 366.5 MB, free: 5.773 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: 88 (86) * Number of variables: 88 (80) Notification: Performance of Bindings: time 0.001373/0.01056, allocations: 1.629 MB / 368.1 MB, free: 4.035 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001116/0.01068, allocations: 111 kB / 368.2 MB, free: 3.93 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0008604/0.01155, allocations: 1.018 MB / 369.3 MB, free: 2.883 MB / 302.1 MB Notification: Performance of simplify1: time 5.817e-05/0.01161, allocations: 63.89 kB / 369.3 MB, free: 2.82 MB / 302.1 MB Notification: Performance of Alias: time 0.001774/0.01339, allocations: 1.808 MB / 371.1 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simplify2: time 3.964e-05/0.01345, allocations: 47.94 kB / 371.2 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of Events: time 0.0002358/0.01369, allocations: 205.9 kB / 371.4 MB, free: 0.5078 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003488/0.01405, allocations: 371.1 kB / 371.7 MB, free: 136 kB / 302.1 MB Notification: Performance of Partitioning: time 0.1541/0.1682, allocations: 312.7 kB / 372.1 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Causalize: time 0.001745/0.17, allocations: 1.361 MB / 373.4 MB, free: 14.61 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000698/0.1707, allocations: 0.7605 MB / 374.2 MB, free: 14.51 MB / 302.1 MB Notification: Performance of Inline: time 0.001533/0.1722, allocations: 1.51 MB / 375.7 MB, free: 14.32 MB / 302.1 MB Notification: Performance of Partitioning: time 7.511e-05/0.1723, allocations: 77.73 kB / 375.8 MB, free: 14.29 MB / 302.1 MB Notification: Performance of Cleanup: time 6.458e-05/0.1724, allocations: 57.91 kB / 375.8 MB, free: 14.29 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) 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.004071/0.1765, allocations: 3.767 MB / 379.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Tearing: time 9.207e-06/0.1765, allocations: 0 / 379.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Initialization: time 9.52e-07/0.1765, allocations: 1.156 kB / 379.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Tearing: time 7.154e-06/0.1765, allocations: 0 / 379.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Categorize: time 1.964e-05/0.1765, allocations: 4.797 kB / 379.6 MB, free: 13.43 MB / 302.1 MB Notification: Performance of Solve: time 0.0005778/0.1771, allocations: 0.5362 MB / 380.1 MB, free: 13.09 MB / 302.1 MB Notification: Performance of Jacobian: time 2.946e-06/0.1771, allocations: 1.5 kB / 380.1 MB, free: 13.09 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 5.765e-05/0.1772, allocations: 58.92 kB / 380.2 MB, free: 13.07 MB / 302.1 MB Notification: Performance of SimCode: time 0.002525/0.1797, allocations: 2.458 MB / 382.6 MB, free: 11.68 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.