Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2.2_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001217/0.001217, allocations: 110.6 kB / 17.75 MB, free: 5.324 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.001178/0.001178, allocations: 187.1 kB / 18.68 MB, free: 4.41 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.251/1.251, allocations: 205.1 MB / 224.5 MB, free: 12.25 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.7e-05/1.701e-05, allocations: 3.125 kB / 328.5 MB, free: 3.348 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003437/0.003462, allocations: 2.438 MB / 330.9 MB, free: 0.8984 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00196/0.005434, allocations: 1.244 MB / 332.2 MB, free: 15.64 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001567/0.005602, allocations: 11.94 kB / 332.2 MB, free: 15.63 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006646/0.006273, allocations: 239 kB / 332.4 MB, free: 15.4 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.0003235/0.006615, allocations: 155.2 kB / 332.6 MB, free: 15.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005552/0.007179, allocations: 279.4 kB / 332.9 MB, free: 14.97 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000488/0.007676, allocations: 0.5269 MB / 333.4 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003145/0.007998, allocations: 214.2 kB / 333.6 MB, free: 14.22 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.008199, allocations: 199.2 kB / 333.8 MB, free: 14.03 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002085/0.008415, allocations: 211.1 kB / 334 MB, free: 13.82 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.829e-05/0.008471, allocations: 36 kB / 334 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001835/0.00866, allocations: 119.9 kB / 334.1 MB, free: 13.67 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004338/0.009102, allocations: 0.6718 MB / 334.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002239/0.009332, allocations: 437.4 kB / 335.2 MB, free: 12.55 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.111e-05/0.009419, allocations: 71.69 kB / 335.3 MB, free: 12.48 MB / 286.1 MB Notification: Performance of FrontEnd: time 6.565e-05/0.00949, allocations: 43.69 kB / 335.4 MB, free: 12.44 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.001483/0.01098, allocations: 1.594 MB / 336.9 MB, free: 10.74 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0001255/0.01111, allocations: 107.7 kB / 337.1 MB, free: 10.63 MB / 286.1 MB Notification: Performance of Early Inline: time 0.000895/0.01201, allocations: 0.9951 MB / 338 MB, free: 9.609 MB / 286.1 MB Notification: Performance of simplify1: time 7.036e-05/0.01209, allocations: 63.91 kB / 338.1 MB, free: 9.547 MB / 286.1 MB Notification: Performance of Alias: time 0.001657/0.01376, allocations: 1.619 MB / 339.7 MB, free: 7.68 MB / 286.1 MB Notification: Performance of simplify2: time 4.143e-05/0.01381, allocations: 39.94 kB / 339.8 MB, free: 7.641 MB / 286.1 MB Notification: Performance of Events: time 0.0002585/0.01407, allocations: 207.2 kB / 340 MB, free: 7.434 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003593/0.01444, allocations: 358 kB / 340.3 MB, free: 7.07 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003557/0.01481, allocations: 334 kB / 340.6 MB, free: 6.715 MB / 286.1 MB Notification: Performance of Causalize: time 0.00173/0.01654, allocations: 1.677 MB / 342.3 MB, free: 5.012 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000675/0.01723, allocations: 0.7458 MB / 343.1 MB, free: 4.242 MB / 286.1 MB Notification: Performance of Inline: time 0.001399/0.01864, allocations: 1.501 MB / 344.6 MB, free: 2.707 MB / 286.1 MB Notification: Performance of Partitioning: time 7.776e-05/0.01872, allocations: 75.62 kB / 344.6 MB, free: 2.625 MB / 286.1 MB Notification: Performance of Cleanup: time 5.737e-05/0.01879, allocations: 59.88 kB / 344.7 MB, free: 2.566 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.003679/0.02247, allocations: 4.091 MB / 348.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Tearing: time 7.554e-06/0.02249, allocations: 4 kB / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Initialization: time 3.4e-07/0.0225, allocations: 0 / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 3.156e-06/0.02251, allocations: 7.938 kB / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Categorize: time 1.009e-05/0.02252, allocations: 0 / 348.8 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Solve: time 0.0005539/0.02308, allocations: 0.5272 MB / 349.3 MB, free: 14 MB / 302.1 MB Notification: Performance of Jacobian: time 3.095e-06/0.0231, allocations: 0 / 349.3 MB, free: 14 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 6.437e-05/0.02316, allocations: 65.22 kB / 349.4 MB, free: 13.95 MB / 302.1 MB Notification: Performance of SimCode: time 0.002504/0.02567, allocations: 2.453 MB / 351.9 MB, free: 11.46 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.