Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.1_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.1+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+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.1_ModelicaTest.Blocks.OnDelay") translateModel(ModelicaTest.Blocks.OnDelay,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.1_ModelicaTest.Blocks.OnDelay") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 104.5 kB / 16.42 MB, free: 6.512 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: 189.9 kB / 17.35 MB, free: 5.754 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.2/1.2, allocations: 205.1 MB / 223.2 MB, free: 12.21 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.1+maint.om/package.mo): time 0.1557/0.1557, allocations: 38 MB / 308.6 MB, free: 5.984 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.177e-05/2.177e-05, allocations: 2.281 kB / 433.6 MB, free: 14.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.OnDelay): time 0.002458/0.002488, allocations: 1.876 MB / 435.5 MB, free: 12.61 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.003806, allocations: 0.9519 MB / 436.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001589/0.003976, allocations: 4 kB / 436.4 MB, free: 11.65 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005866/0.004569, allocations: 191.4 kB / 436.6 MB, free: 11.46 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.0003096/0.004888, allocations: 127.5 kB / 436.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003925/0.005289, allocations: 167.5 kB / 436.9 MB, free: 11.18 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000257/0.005554, allocations: 295.4 kB / 437.2 MB, free: 10.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001114/0.005672, allocations: 33.67 kB / 437.2 MB, free: 10.85 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001062/0.005784, allocations: 115.6 kB / 437.3 MB, free: 10.74 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001211/0.005912, allocations: 111.6 kB / 437.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 3.152e-05/0.00595, allocations: 16 kB / 437.5 MB, free: 10.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001052/0.006062, allocations: 71.91 kB / 437.5 MB, free: 10.54 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.000147/0.006215, allocations: 300.9 kB / 437.8 MB, free: 10.25 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 4.975e-05/0.006271, allocations: 173.4 kB / 438 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 3.903e-05/0.006316, allocations: 35.94 kB / 438 MB, free: 10.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.492e-05/0.006345, allocations: 7.938 kB / 438 MB, free: 10.03 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.0005794/0.006929, allocations: 0.8213 MB / 438.9 MB, free: 9.105 MB / 318.1 MB Notification: Performance of FunctionAlias: time 4e-05/0.006975, allocations: 47.89 kB / 438.9 MB, free: 9.059 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0002557/0.007236, allocations: 432 kB / 439.3 MB, free: 8.609 MB / 318.1 MB Notification: Performance of simplify1: time 2.657e-05/0.007269, allocations: 19.97 kB / 439.3 MB, free: 8.59 MB / 318.1 MB Notification: Performance of Alias: time 0.0003949/0.007669, allocations: 447.2 kB / 439.8 MB, free: 8.086 MB / 318.1 MB Notification: Performance of simplify2: time 1.373e-05/0.007692, allocations: 15.97 kB / 439.8 MB, free: 8.07 MB / 318.1 MB Notification: Performance of Events: time 0.0001462/0.007843, allocations: 131.5 kB / 439.9 MB, free: 7.941 MB / 318.1 MB Notification: Performance of Detect States: time 0.0002409/0.00809, allocations: 259.5 kB / 440.2 MB, free: 7.68 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0001497/0.008247, allocations: 196.4 kB / 440.4 MB, free: 7.457 MB / 318.1 MB Notification: Performance of Causalize: time 0.0005911/0.008845, allocations: 0.7594 MB / 441.1 MB, free: 6.668 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0003014/0.009156, allocations: 0.502 MB / 441.6 MB, free: 6.137 MB / 318.1 MB Notification: Performance of Inline: time 0.00062/0.009783, allocations: 0.9074 MB / 442.5 MB, free: 5.195 MB / 318.1 MB Notification: Performance of Partitioning: time 3.559e-05/0.009828, allocations: 54.28 kB / 442.6 MB, free: 5.133 MB / 318.1 MB Notification: Performance of Cleanup: time 3.718e-05/0.00987, allocations: 51.95 kB / 442.6 MB, free: 5.082 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.001509/0.01138, allocations: 2.283 MB / 444.9 MB, free: 2.789 MB / 318.1 MB Notification: Performance of Tearing: time 5.891e-06/0.0114, allocations: 3.984 kB / 444.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of Initialization: time 3.21e-07/0.0114, allocations: 0 / 444.9 MB, free: 2.785 MB / 318.1 MB Notification: Performance of Tearing: time 1.984e-06/0.01141, allocations: 8.234 kB / 444.9 MB, free: 2.777 MB / 318.1 MB Notification: Performance of Categorize: time 9.017e-06/0.01142, allocations: 4 kB / 444.9 MB, free: 2.773 MB / 318.1 MB Notification: Performance of Solve: time 0.0003505/0.01178, allocations: 0.7435 MB / 445.7 MB, free: 1.895 MB / 318.1 MB Notification: Performance of Jacobian: time 2.675e-06/0.01179, allocations: 0 / 445.7 MB, free: 1.895 MB / 318.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.454e-05/0.01185, allocations: 38.5 kB / 445.7 MB, free: 1.867 MB / 318.1 MB Notification: Performance of SimCode: time 0.001399/0.01325, allocations: 1.745 MB / 447.5 MB, free: 172 kB / 318.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.