Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo", uses=false) Using package AES with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") translateModel(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="AES_AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001011/0.001016, allocations: 110.3 kB / 16.42 MB, free: 6.43 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.001006/0.001006, allocations: 188.2 kB / 17.36 MB, free: 5.723 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.318/1.318, allocations: 222.9 MB / 241 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/AES main/package.mo): time 0.09081/0.09081, allocations: 22.32 MB / 313.5 MB, free: 8.871 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.68e-05/2.681e-05, allocations: 2.281 kB / 437.7 MB, free: 11.79 MB / 318.1 MB Notification: Performance of NFInst.instantiate(AES.Coursework.ThermSys_control_problems.Temperature_control_pipes.Tcontrol_pipes_sensor_dynamics_02_PI): time 0.003068/0.003104, allocations: 2.187 MB / 439.9 MB, free: 9.59 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.004428, allocations: 0.8027 MB / 440.7 MB, free: 8.781 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.004555, allocations: 11.94 kB / 440.7 MB, free: 8.77 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003495/0.004911, allocations: 75.42 kB / 440.7 MB, free: 8.695 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002382/0.005169, allocations: 103.4 kB / 440.8 MB, free: 8.594 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004711/0.005649, allocations: 279 kB / 441.1 MB, free: 8.324 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006145/0.006272, allocations: 0.6043 MB / 441.7 MB, free: 7.719 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000229/0.00651, allocations: 116.1 kB / 441.8 MB, free: 7.605 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002166/0.006734, allocations: 199.3 kB / 442 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002338/0.006975, allocations: 191.1 kB / 442.2 MB, free: 7.223 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.934e-05/0.007042, allocations: 32 kB / 442.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.064e-05/0.007098, allocations: 36 kB / 442.3 MB, free: 7.156 MB / 318.1 MB Notification: Performance of combineBinaries: time 0.0003761/0.007479, allocations: 0.5713 MB / 442.9 MB, free: 6.578 MB / 318.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001882/0.007673, allocations: 358.6 kB / 443.2 MB, free: 6.223 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.424e-05/0.007733, allocations: 47.75 kB / 443.2 MB, free: 6.176 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.878e-05/0.007777, allocations: 15.88 kB / 443.3 MB, free: 6.16 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: 49 (49) * Number of variables: 49 (49) Notification: Performance of Bindings: time 0.001416/0.009198, allocations: 1.618 MB / 444.9 MB, free: 4.43 MB / 318.1 MB Notification: Performance of FunctionAlias: time 6.586e-05/0.009274, allocations: 63.81 kB / 444.9 MB, free: 4.367 MB / 318.1 MB Notification: Performance of Early Inline: time 0.0006709/0.00995, allocations: 0.6634 MB / 445.6 MB, free: 3.676 MB / 318.1 MB Notification: Performance of simplify1: time 7.919e-05/0.01004, allocations: 63.91 kB / 445.7 MB, free: 3.613 MB / 318.1 MB Notification: Performance of Alias: time 0.00144/0.01148, allocations: 1.19 MB / 446.9 MB, free: 2.273 MB / 318.1 MB Notification: Performance of simplify2: time 5.274e-05/0.01154, allocations: 51.92 kB / 446.9 MB, free: 2.223 MB / 318.1 MB Notification: Performance of Events: time 0.0001607/0.01171, allocations: 112.8 kB / 447 MB, free: 2.109 MB / 318.1 MB Notification: Performance of Detect States: time 0.000257/0.01198, allocations: 214.1 kB / 447.2 MB, free: 1.887 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002284/0.01221, allocations: 204.8 kB / 447.4 MB, free: 1.664 MB / 318.1 MB Notification: Performance of Causalize: time 0.0008014/0.01302, allocations: 0.6766 MB / 448.1 MB, free: 0.9609 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.0004928/0.01353, allocations: 0.5444 MB / 448.7 MB, free: 400 kB / 318.1 MB Notification: Performance of Inline: time 0.001133/0.01467, allocations: 1.084 MB / 449.7 MB, free: 15.27 MB / 334.1 MB Notification: Performance of Partitioning: time 7.102e-05/0.01475, allocations: 58.36 kB / 449.8 MB, free: 15.2 MB / 334.1 MB Notification: Performance of Cleanup: time 0.0001008/0.01485, allocations: 124.9 kB / 449.9 MB, free: 15.08 MB / 334.1 MB Notification: Performance of Causalize: time 0.005903/0.02076, allocations: 5.168 MB / 455.1 MB, free: 9.891 MB / 334.1 MB Notification: Performance of Tearing: time 0.001318/0.02209, allocations: 1.528 MB / 456.6 MB, free: 8.168 MB / 334.1 MB Notification: Performance of Initialization: time 7.11e-07/0.0221, allocations: 4 kB / 456.6 MB, free: 8.164 MB / 334.1 MB Notification: Performance of Tearing: time 0.0006779/0.02279, allocations: 0.8129 MB / 457.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of Categorize: time 1.195e-05/0.02281, allocations: 0 / 457.4 MB, free: 7.254 MB / 334.1 MB Notification: Performance of Solve: time 0.0007817/0.0236, allocations: 1.13 MB / 458.6 MB, free: 6 MB / 334.1 MB Notification: Performance of Jacobian: time 0.0006618/0.02427, allocations: 0.6879 MB / 459.2 MB, free: 5.27 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: ............... 1 * Number of algebraic event partitions: ......... 2 * Number of clocked partitions: ................. 0 * Number of initial partitions: ................. 1 * Number of initial(lambda=0) partitions: ....... 1 Notification: Variable statistics after passing the back-end: * Number of states: ............................. 6 (6) {P_tforP.x_scaled, sens_tforP.x_scaled, P_tforS.x_scaled, sens_tforS.x_scaled, PI_tuned_for_process.add1.u2, PI_tuned_for_sensor.add1.u2} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {$SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $TEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 14 (scalar:10, array:4, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, 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: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 38 (scalar:28, array:10, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 42 (scalar:32, array:10, record:0) * Number of multi strong components: ............ 0 (algorithm:0, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 4 (linear: 0, nonlinear:4) Notification: Performance of backend: time 0.0001658/0.02444, allocations: 43.27 kB / 459.3 MB, free: 5.23 MB / 334.1 MB Notification: Performance of SimCode: time 0.002102/0.02656, allocations: 2.555 MB / 461.8 MB, free: 2.609 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.