Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.1_Modelica.Blocks.Examples.BooleanNetwork1") translateModel(Modelica.Blocks.Examples.BooleanNetwork1,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_3.2.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.001248/0.001248, allocations: 105.8 kB / 16.42 MB, free: 6.465 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.001182/0.001182, allocations: 183.2 kB / 17.36 MB, free: 5.699 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.314/1.314, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.179e-05/2.18e-05, allocations: 2.281 kB / 327.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.BooleanNetwork1): time 0.003538/0.003568, allocations: 2.431 MB / 329.6 MB, free: 0.8828 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001993/0.00558, allocations: 1.252 MB / 330.9 MB, free: 15.62 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001702/0.005762, allocations: 8 kB / 330.9 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006819/0.006451, allocations: 238.9 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.000324/0.006807, allocations: 151.2 kB / 331.3 MB, free: 15.23 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006045/0.007422, allocations: 279.4 kB / 331.5 MB, free: 14.96 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004918/0.007924, allocations: 0.5192 MB / 332.1 MB, free: 14.43 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003156/0.008248, allocations: 222.2 kB / 332.3 MB, free: 14.21 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001967/0.008452, allocations: 195.2 kB / 332.5 MB, free: 14.02 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.008662, allocations: 211 kB / 332.7 MB, free: 13.81 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.052e-05/0.008721, allocations: 36 kB / 332.7 MB, free: 13.77 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00019/0.008916, allocations: 123.9 kB / 332.8 MB, free: 13.65 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004089/0.009334, allocations: 0.6757 MB / 333.5 MB, free: 12.97 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0002188/0.00956, allocations: 433.5 kB / 333.9 MB, free: 12.54 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.115e-05/0.009637, allocations: 67.69 kB / 334 MB, free: 12.47 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.512e-05/0.009729, allocations: 47.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.001467/0.0112, allocations: 1.594 MB / 335.6 MB, free: 10.72 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000126/0.01134, allocations: 99.81 kB / 335.7 MB, free: 10.62 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0008907/0.01223, allocations: 0.9989 MB / 336.7 MB, free: 9.598 MB / 286.1 MB Notification: Performance of simplify1: time 6.259e-05/0.01231, allocations: 63.89 kB / 336.8 MB, free: 9.535 MB / 286.1 MB Notification: Performance of Alias: time 0.001637/0.01395, allocations: 1.623 MB / 338.4 MB, free: 7.664 MB / 286.1 MB Notification: Performance of simplify2: time 4.047e-05/0.014, allocations: 39.94 kB / 338.4 MB, free: 7.625 MB / 286.1 MB Notification: Performance of Events: time 0.0002533/0.01426, allocations: 211.2 kB / 338.7 MB, free: 7.414 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003638/0.01464, allocations: 355.2 kB / 339 MB, free: 7.051 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003334/0.01498, allocations: 322 kB / 339.3 MB, free: 6.707 MB / 286.1 MB Notification: Performance of Causalize: time 0.001644/0.01663, allocations: 1.69 MB / 341 MB, free: 4.992 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.000661/0.0173, allocations: 0.7381 MB / 341.7 MB, free: 4.23 MB / 286.1 MB Notification: Performance of Inline: time 0.001436/0.01875, allocations: 1.505 MB / 343.2 MB, free: 2.695 MB / 286.1 MB Notification: Performance of Partitioning: time 7.999e-05/0.01884, allocations: 79.61 kB / 343.3 MB, free: 2.609 MB / 286.1 MB Notification: Performance of Cleanup: time 5.827e-05/0.01891, allocations: 59.88 kB / 343.4 MB, free: 2.551 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.003626/0.02254, allocations: 4.083 MB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 7.905e-06/0.02256, allocations: 0 / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Initialization: time 2.114e-06/0.02257, allocations: 4 kB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Tearing: time 6.782e-06/0.02258, allocations: 3.938 kB / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Categorize: time 1.263e-05/0.02259, allocations: 0 / 347.5 MB, free: 14.59 MB / 302.1 MB Notification: Performance of Solve: time 0.0005969/0.02319, allocations: 0.5352 MB / 348 MB, free: 13.99 MB / 302.1 MB Notification: Performance of Jacobian: time 3.166e-06/0.02321, allocations: 0 / 348 MB, free: 13.99 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.252e-05/0.02328, allocations: 59.81 kB / 348.1 MB, free: 13.94 MB / 302.1 MB Notification: Performance of SimCode: time 0.002683/0.02597, allocations: 2.465 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.