Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001186/0.001186, allocations: 117 kB / 17.76 MB, free: 5.32 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.001161/0.001161, allocations: 188.6 kB / 18.69 MB, free: 4.402 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.211/1.211, allocations: 222.9 MB / 242.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.94e-05/1.941e-05, allocations: 2.281 kB / 351.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003162/0.003189, allocations: 2.441 MB / 354.4 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00193/0.005133, allocations: 1.333 MB / 355.7 MB, free: 15.46 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001428/0.005287, allocations: 11.94 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006276/0.005921, allocations: 231 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003307/0.006273, allocations: 157.1 kB / 356.1 MB, free: 15.07 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006188/0.006902, allocations: 310.2 kB / 356.4 MB, free: 14.77 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005123/0.007424, allocations: 0.5153 MB / 356.9 MB, free: 14.25 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003009/0.007733, allocations: 222.1 kB / 357.1 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001869/0.007927, allocations: 195.2 kB / 357.3 MB, free: 13.83 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.008128, allocations: 215 kB / 357.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.175e-05/0.008198, allocations: 36 kB / 357.6 MB, free: 13.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002013/0.008405, allocations: 123.9 kB / 357.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0004334/0.008846, allocations: 0.6679 MB / 358.4 MB, free: 12.79 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002134/0.009066, allocations: 433.4 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.849e-05/0.009151, allocations: 67.75 kB / 358.8 MB, free: 12.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.717e-05/0.009254, allocations: 47.73 kB / 358.9 MB, free: 12.25 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.001531/0.01079, allocations: 1.606 MB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0001382/0.01094, allocations: 112.3 kB / 360.6 MB, free: 10.42 MB / 302.1 MB Notification: Performance of Early Inline: time 0.0009151/0.01186, allocations: 1.003 MB / 361.6 MB, free: 9.387 MB / 302.1 MB Notification: Performance of simplify1: time 6.069e-05/0.01193, allocations: 67.89 kB / 361.7 MB, free: 9.32 MB / 302.1 MB Notification: Performance of Alias: time 0.001908/0.01384, allocations: 1.816 MB / 363.5 MB, free: 7.254 MB / 302.1 MB Notification: Performance of simplify2: time 4.724e-05/0.0139, allocations: 39.94 kB / 363.5 MB, free: 7.215 MB / 302.1 MB Notification: Performance of Events: time 0.0002505/0.01416, allocations: 213.9 kB / 363.7 MB, free: 7.004 MB / 302.1 MB Notification: Performance of Detect States: time 0.0003876/0.01456, allocations: 367.2 kB / 364.1 MB, free: 6.629 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0003453/0.01491, allocations: 322 kB / 364.4 MB, free: 6.285 MB / 302.1 MB Notification: Performance of Causalize: time 0.001501/0.01642, allocations: 1.368 MB / 365.8 MB, free: 4.887 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.000668/0.0171, allocations: 0.7557 MB / 366.5 MB, free: 4.105 MB / 302.1 MB Notification: Performance of Inline: time 0.001462/0.01857, allocations: 1.504 MB / 368 MB, free: 2.562 MB / 302.1 MB Notification: Performance of Partitioning: time 7.898e-05/0.01866, allocations: 75.62 kB / 368.1 MB, free: 2.484 MB / 302.1 MB Notification: Performance of Cleanup: time 7.252e-05/0.01874, allocations: 63.88 kB / 368.2 MB, free: 2.422 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.1463/0.1651, allocations: 3.758 MB / 371.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of Tearing: time 1.1e-05/0.1651, allocations: 0 / 371.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of Initialization: time 1.352e-06/0.1651, allocations: 4.156 kB / 371.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of Tearing: time 8.756e-06/0.1651, allocations: 1.75 kB / 371.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of Categorize: time 2.326e-05/0.1652, allocations: 2.656 kB / 371.9 MB, free: 18.01 MB / 302.1 MB Notification: Performance of Solve: time 0.0007139/0.1659, allocations: 0.5331 MB / 372.5 MB, free: 17.69 MB / 302.1 MB Notification: Performance of Jacobian: time 4.028e-06/0.1659, allocations: 1.312 kB / 372.5 MB, free: 17.69 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.665e-05/0.166, allocations: 50.69 kB / 372.5 MB, free: 17.68 MB / 302.1 MB Notification: Performance of SimCode: time 0.002711/0.1687, allocations: 2.457 MB / 375 MB, free: 16.5 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.