Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) 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(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00115/0.001151, allocations: 106.9 kB / 16.42 MB, free: 6.418 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.001108/0.001108, allocations: 187.2 kB / 17.36 MB, free: 5.684 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.189/1.189, allocations: 205.1 MB / 223.2 MB, free: 12.2 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.1612/0.1612, allocations: 39.95 MB / 310.6 MB, free: 4 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.279e-05/1.279e-05, allocations: 2.281 kB / 436.4 MB, free: 11.77 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.001961/0.001981, allocations: 1.888 MB / 438.3 MB, free: 9.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001007/0.002999, allocations: 0.948 MB / 439.2 MB, free: 8.914 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.443e-05/0.003084, allocations: 4 kB / 439.2 MB, free: 8.91 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004407/0.003532, allocations: 183.4 kB / 439.4 MB, free: 8.73 MB / 318.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.0002194/0.00376, allocations: 127.5 kB / 439.5 MB, free: 8.605 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002878/0.004056, allocations: 170.3 kB / 439.7 MB, free: 8.441 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002183/0.004283, allocations: 295.4 kB / 440 MB, free: 8.152 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.871e-05/0.004379, allocations: 33.61 kB / 440 MB, free: 8.117 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.779e-05/0.004484, allocations: 111.6 kB / 440.1 MB, free: 8.008 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.892e-05/0.004589, allocations: 119.5 kB / 440.2 MB, free: 7.891 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.506e-05/0.004621, allocations: 20 kB / 440.3 MB, free: 7.871 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.9e-05/0.004725, allocations: 63.92 kB / 440.3 MB, free: 7.809 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0001369/0.004869, allocations: 304.9 kB / 440.6 MB, free: 7.508 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 5.004e-05/0.004924, allocations: 173.5 kB / 440.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.567e-05/0.004965, allocations: 35.88 kB / 440.8 MB, free: 7.301 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.42e-05/0.004984, allocations: 4 kB / 440.8 MB, free: 7.297 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 21 (18) * Number of variables: 21 (21) Notification: Performance of Bindings: time 0.0005762/0.005564, allocations: 0.8251 MB / 441.7 MB, free: 6.367 MB / 318.1 MB Notification: Performance of FunctionAlias: time 3.739e-05/0.005608, allocations: 47.89 kB / 441.7 MB, free: 6.32 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0002491/0.005862, allocations: 432.1 kB / 442.1 MB, free: 5.871 MB / 318.1 MB Notification: Performance of simplify1: time 2.268e-05/0.00589, allocations: 19.91 kB / 442.1 MB, free: 5.852 MB / 318.1 MB Notification: Performance of Alias: time 0.0003491/0.006244, allocations: 447.2 kB / 442.6 MB, free: 5.348 MB / 318.1 MB Notification: Performance of simplify2: time 1.32e-05/0.006266, allocations: 15.97 kB / 442.6 MB, free: 5.332 MB / 318.1 MB Notification: Performance of Events: time 0.0001262/0.006397, allocations: 131.4 kB / 442.7 MB, free: 5.203 MB / 318.1 MB Notification: Performance of Detect States: time 0.0001914/0.006595, allocations: 248.1 kB / 443 MB, free: 4.949 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001381/0.006741, allocations: 208.4 kB / 443.2 MB, free: 4.715 MB / 318.1 MB Notification: Performance of Causalize: time 0.0005469/0.007294, allocations: 0.7554 MB / 443.9 MB, free: 3.938 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003023/0.007605, allocations: 0.5099 MB / 444.4 MB, free: 3.398 MB / 318.1 MB Notification: Performance of Inline: time 0.0006069/0.008218, allocations: 0.9153 MB / 445.3 MB, free: 2.449 MB / 318.1 MB Notification: Performance of Partitioning: time 3.668e-05/0.008263, allocations: 54.34 kB / 445.4 MB, free: 2.387 MB / 318.1 MB Notification: Performance of Cleanup: time 3.874e-05/0.008307, allocations: 51.95 kB / 445.5 MB, free: 2.336 MB / 318.1 MB Warning: NBResolveSingularities.balanceInitialization reports an overdetermined initialization! Checking for consistency is not yet supported, following equations had to be removed: [SCAL] (1) $SEV_3 = booleanTable.realToBoolean.u >= booleanTable.realToBoolean.threshold ($RES_EVT_44) slice: {}; [SCAL] (1) $TEV_7 = time >= booleanStep3.startTime ($RES_EVT_39) slice: {}; [SCAL] (1) $TEV_6 = time >= booleanStep2.startTime ($RES_EVT_38) slice: {}; Notification: Performance of Causalize: time 0.001476/0.009787, allocations: 2.28 MB / 447.7 MB, free: 48 kB / 318.1 MB Notification: Performance of Tearing: time 5.029e-06/0.009803, allocations: 8 kB / 447.7 MB, free: 40 kB / 318.1 MB Notification: Performance of Initialization: time 3.01e-07/0.009808, allocations: 0 / 447.7 MB, free: 40 kB / 318.1 MB Notification: Performance of Tearing: time 1.834e-06/0.009814, allocations: 0 / 447.7 MB, free: 40 kB / 318.1 MB Notification: Performance of Categorize: time 8.576e-06/0.009827, allocations: 4 kB / 447.7 MB, free: 36 kB / 318.1 MB Notification: Performance of Solve: time 0.0004827/0.01031, allocations: 0.7397 MB / 448.5 MB, free: 15.16 MB / 334.1 MB Notification: Performance of Jacobian: time 2.354e-06/0.01033, allocations: 0 / 448.5 MB, free: 15.16 MB / 334.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: .................... 2 (2) {booleanTable.combiTimeTable.nextTimeEvent, booleanTable.combiTimeTable.nextTimeEventScaled} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 27 (27) {onDelay1.u, onDelay1.y, onDelay1.delaySignal, onDelay1.t_next, booleanStep3.y, onDelay3.y, onDelay3.delaySignal, onDelay3.t_next, booleanStep2.y, onDelay2.y, onDelay2.delaySignal, onDelay2.t_next, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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: ........... 20 (scalar:20, array:0, record:0) * Number of multi strong components: ............ 8 (algorithm:3, when:2, if:3, 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: ........... 34 (scalar:32, array:1, record:1) * Number of multi strong components: ............ 8 (algorithm:5, when:0, if:3, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 5.558e-05/0.01039, allocations: 41.03 kB / 448.5 MB, free: 15.13 MB / 334.1 MB Notification: Performance of SimCode: time 0.001602/0.01199, allocations: 1.751 MB / 450.3 MB, free: 13.43 MB / 334.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:5962:14-5962:14:writable] Error: Template error: daeExpLbinary:ERR.