Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.1_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: 104.6 kB / 16.42 MB, free: 5.957 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.001277/0.001277, allocations: 185.5 kB / 17.36 MB, free: 5.574 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.333/1.333, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.228e-05/2.229e-05, allocations: 2.281 kB / 327.2 MB, free: 3.328 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.004221/0.004251, allocations: 2.442 MB / 329.6 MB, free: 0.875 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002461/0.006726, allocations: 1.248 MB / 330.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001992/0.006936, allocations: 11.94 kB / 330.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007848/0.007727, allocations: 235 kB / 331.1 MB, free: 15.38 MB / 286.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0003706/0.008124, allocations: 155.2 kB / 331.3 MB, free: 15.22 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000682/0.008814, allocations: 275.4 kB / 331.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005957/0.009419, allocations: 0.5231 MB / 332.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003427/0.00977, allocations: 214.2 kB / 332.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002024/0.009981, allocations: 199.2 kB / 332.5 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002165/0.0102, allocations: 207 kB / 332.7 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.188e-05/0.01026, allocations: 36 kB / 332.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002056/0.01048, allocations: 119.9 kB / 332.8 MB, free: 13.66 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004442/0.01093, allocations: 0.6718 MB / 333.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002466/0.01118, allocations: 437.5 kB / 333.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.182e-05/0.01127, allocations: 67.69 kB / 334 MB, free: 12.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.014e-05/0.01136, allocations: 51.67 kB / 334 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.001673/0.01303, allocations: 1.598 MB / 335.6 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001202/0.01316, allocations: 99.7 kB / 335.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0009676/0.01414, allocations: 1.003 MB / 336.7 MB, free: 9.59 MB / 286.1 MB Notification: Performance of simplify1: time 6.743e-05/0.01422, allocations: 67.89 kB / 336.8 MB, free: 9.523 MB / 286.1 MB Notification: Performance of Alias: time 0.001654/0.01587, allocations: 1.611 MB / 338.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of simplify2: time 5.068e-05/0.01594, allocations: 43.92 kB / 338.4 MB, free: 7.621 MB / 286.1 MB Notification: Performance of Events: time 0.0002536/0.0162, allocations: 203.3 kB / 338.6 MB, free: 7.418 MB / 286.1 MB Notification: Performance of Detect States: time 0.0005601/0.01677, allocations: 359.2 kB / 339 MB, free: 7.051 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003769/0.01715, allocations: 334 kB / 339.3 MB, free: 6.695 MB / 286.1 MB Notification: Performance of Causalize: time 0.001766/0.01893, allocations: 1.683 MB / 341 MB, free: 4.988 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0006704/0.01961, allocations: 0.7425 MB / 341.7 MB, free: 4.223 MB / 286.1 MB Notification: Performance of Inline: time 0.001466/0.02108, allocations: 1.496 MB / 343.2 MB, free: 2.695 MB / 286.1 MB Notification: Performance of Partitioning: time 9.695e-05/0.02119, allocations: 91.58 kB / 343.3 MB, free: 2.598 MB / 286.1 MB Notification: Performance of Cleanup: time 6.343e-05/0.02126, allocations: 59.88 kB / 343.4 MB, free: 2.539 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_125) slice: {}; [SCAL] (1) $SEV_3 = booleanTable.realToBoolean.u >= booleanTable.realToBoolean.threshold ($RES_EVT_120) slice: {}; Notification: Performance of Causalize: time 0.003846/0.02511, allocations: 4.072 MB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 8.386e-06/0.02513, allocations: 5.812 kB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Initialization: time 6.41e-07/0.02514, allocations: 0 / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 6.883e-06/0.02515, allocations: 7.938 kB / 347.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Categorize: time 1.313e-05/0.02517, allocations: 0 / 347.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of Solve: time 0.0006052/0.02578, allocations: 0.5313 MB / 348 MB, free: 13.98 MB / 302.1 MB Notification: Performance of Jacobian: time 3.907e-06/0.02579, allocations: 4 kB / 348 MB, free: 13.98 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: ........... 57 (scalar:56, 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: ........... 82 (scalar:79, 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.986e-05/0.02586, allocations: 60.28 kB / 348.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of SimCode: time 0.00282/0.02868, allocations: 2.46 MB / 350.5 MB, free: 11.44 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.