Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID.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.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+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.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID") translateModel(ModelicaTest.Blocks.LimPID,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|PID1.I.y|PID2.I.y|PID3.I.y|PID4.I.y|firstOrder1.y|firstOrder2.y|firstOrder3.y|firstOrder4.y",fileNamePrefix="ModelicaTest_3.2.3_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001497/0.001497, allocations: 109.9 kB / 17.09 MB, free: 6.004 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.001666/0.001666, allocations: 199 kB / 18.02 MB, free: 5.086 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.835/1.835, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2762/0.2762, allocations: 43.52 MB / 314.8 MB, free: 464 kB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.918e-05/2.918e-05, allocations: 5.656 kB / 442.4 MB, free: 5.746 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004487/0.004524, allocations: 4.422 MB / 446.8 MB, free: 1.301 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003479/0.008023, allocations: 1.594 MB / 448.4 MB, free: 15.7 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004367/0.008475, allocations: 39.81 kB / 448.5 MB, free: 15.66 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004337/0.008919, allocations: 166.2 kB / 448.6 MB, free: 15.49 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004346/0.009362, allocations: 166.2 kB / 448.8 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001466/0.01087, allocations: 0.5889 MB / 449.4 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.001302/0.01218, allocations: 1.171 MB / 450.6 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007483/0.01294, allocations: 456.2 kB / 451 MB, free: 13.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003763/0.01332, allocations: 374.2 kB / 451.4 MB, free: 12.74 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003938/0.01372, allocations: 389.7 kB / 451.7 MB, free: 12.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.01386, allocations: 84 kB / 451.8 MB, free: 12.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001205/0.014, allocations: 88 kB / 451.9 MB, free: 12.19 MB / 334.1 MB Notification: Performance of combineBinaries: time 0.001158/0.01516, allocations: 1.566 MB / 453.5 MB, free: 10.6 MB / 334.1 MB Notification: Performance of replaceArrayConstructors: time 0.0006546/0.01582, allocations: 1.062 MB / 454.5 MB, free: 9.523 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00016/0.01599, allocations: 151.4 kB / 454.7 MB, free: 9.375 MB / 334.1 MB Notification: Performance of FrontEnd: time 0.0001829/0.01618, allocations: 83.42 kB / 454.8 MB, free: 9.293 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 156 (156) * Number of variables: 156 (156) Notification: Performance of Bindings: time 0.004191/0.02038, allocations: 4.296 MB / 459.1 MB, free: 4.82 MB / 334.1 MB Notification: Performance of FunctionAlias: time 0.000147/0.02054, allocations: 159.8 kB / 459.2 MB, free: 4.664 MB / 334.1 MB Notification: Performance of Early Inline: time 0.00179/0.02233, allocations: 1.76 MB / 461 MB, free: 2.863 MB / 334.1 MB Notification: Performance of simplify1: time 0.0001454/0.02249, allocations: 147.8 kB / 461.1 MB, free: 2.719 MB / 334.1 MB Notification: Performance of Alias: time 0.005354/0.02785, allocations: 4.045 MB / 465.2 MB, free: 14.12 MB / 350.1 MB Notification: Performance of simplify2: time 0.0001097/0.02798, allocations: 95.86 kB / 465.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of Events: time 0.0004176/0.02841, allocations: 335.1 kB / 465.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of Detect States: time 0.0004659/0.02889, allocations: 410.3 kB / 466 MB, free: 13.27 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0005491/0.02945, allocations: 479.1 kB / 466.5 MB, free: 12.74 MB / 350.1 MB Notification: Performance of Causalize: time 0.001958/0.03141, allocations: 1.576 MB / 468 MB, free: 11.11 MB / 350.1 MB Notification: Performance of After Index Reduction Inline: time 0.001265/0.03269, allocations: 1.157 MB / 469.2 MB, free: 9.926 MB / 350.1 MB Notification: Performance of Inline: time 0.002543/0.03525, allocations: 2.2 MB / 471.4 MB, free: 7.684 MB / 350.1 MB Notification: Performance of Partitioning: time 0.0001615/0.03542, allocations: 119.6 kB / 471.5 MB, free: 7.559 MB / 350.1 MB Notification: Performance of Cleanup: time 0.0002481/0.03568, allocations: 247.5 kB / 471.7 MB, free: 7.316 MB / 350.1 MB Notification: Performance of Causalize: time 0.006785/0.04247, allocations: 5.184 MB / 476.9 MB, free: 2.102 MB / 350.1 MB Notification: Performance of Tearing: time 0.002079/0.04457, allocations: 2.141 MB / 479.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Initialization: time 1.102e-06/0.04459, allocations: 0 / 479.1 MB, free: 15.67 MB / 366.1 MB Notification: Performance of Tearing: time 1.184e-05/0.04461, allocations: 3.938 kB / 479.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of Categorize: time 2.422e-05/0.04464, allocations: 4 kB / 479.1 MB, free: 15.66 MB / 366.1 MB Notification: Performance of Solve: time 0.001456/0.0461, allocations: 1.181 MB / 480.3 MB, free: 14.37 MB / 366.1 MB Notification: Performance of Jacobian: time 0.001035/0.04715, allocations: 1.215 MB / 481.5 MB, free: 13.01 MB / 366.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: ............... 4 * Number of algebraic event partitions: ......... 4 * 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: ............................. 8 (8) {PID1.I.y, firstOrder1.y, PID2.I.y, firstOrder2.y, PID3.I.y, firstOrder3.y, PID4.I.y, firstOrder4.y} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 16 (16) {$SEV_11, $SEV_10, $SEV_9, $SEV_8, $SEV_7, $SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0, $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: ........... 68 (scalar:68, array:0, 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: ... 0 (linear: 0, nonlinear:0) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 90 (scalar:90, array:0, 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: ........... 104 (scalar:104, array:0, 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.0002069/0.04736, allocations: 68.7 kB / 481.5 MB, free: 12.95 MB / 366.1 MB Notification: Performance of SimCode: time 0.005027/0.0524, allocations: 4.093 MB / 485.6 MB, free: 8.75 MB / 366.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.