Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.LimPID.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.LimPID") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001309/0.001309, allocations: 111.2 kB / 18.47 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001422/0.001422, allocations: 202.8 kB / 19.42 MB, free: 3.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.101/1.101, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1664/0.1664, allocations: 46.1 MB / 345 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.397e-05/1.398e-05, allocations: 2.281 kB / 481.9 MB, free: 4.176 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.LimPID): time 0.004152/0.004174, allocations: 4.37 MB / 486.3 MB, free: 15.79 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002373/0.006557, allocations: 1.574 MB / 487.9 MB, free: 14.2 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005034/0.007071, allocations: 35.81 kB / 487.9 MB, free: 14.17 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003491/0.007428, allocations: 158.3 kB / 488 MB, free: 14.01 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003858/0.00782, allocations: 162.3 kB / 488.2 MB, free: 13.85 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001036/0.008867, allocations: 0.5953 MB / 488.8 MB, free: 13.26 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.009887, allocations: 1.14 MB / 489.9 MB, free: 12.12 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005201/0.01042, allocations: 464 kB / 490.4 MB, free: 11.65 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003347/0.01076, allocations: 362.3 kB / 490.7 MB, free: 11.29 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003023/0.01107, allocations: 389.7 kB / 491.1 MB, free: 10.91 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001148/0.01119, allocations: 88 kB / 491.2 MB, free: 10.82 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.76e-05/0.01129, allocations: 84 kB / 491.3 MB, free: 10.74 MB / 366.1 MB Notification: Performance of combineBinaries: time 0.0007531/0.01205, allocations: 1.527 MB / 492.8 MB, free: 9.195 MB / 366.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004747/0.01253, allocations: 1.035 MB / 493.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000148/0.01268, allocations: 151.4 kB / 494 MB, free: 7.996 MB / 366.1 MB Notification: Performance of FrontEnd: time 0.0001203/0.01281, allocations: 79.48 kB / 494.1 MB, free: 7.918 MB / 366.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.003071/0.01588, allocations: 4.401 MB / 498.5 MB, free: 3.344 MB / 366.1 MB Notification: Performance of FunctionAlias: time 0.0001435/0.01603, allocations: 163.7 kB / 498.6 MB, free: 3.184 MB / 366.1 MB Notification: Performance of Early Inline: time 0.001348/0.01739, allocations: 1.757 MB / 0.4887 GB, free: 1.387 MB / 366.1 MB Notification: Performance of simplify1: time 0.0001231/0.01752, allocations: 155.8 kB / 0.4888 GB, free: 1.234 MB / 366.1 MB Notification: Performance of Alias: time 0.003606/0.02113, allocations: 4.035 MB / 0.4928 GB, free: 12.64 MB / 382.1 MB Notification: Performance of simplify2: time 9.679e-05/0.02124, allocations: 95.88 kB / 0.4928 GB, free: 12.54 MB / 382.1 MB Notification: Performance of Events: time 0.0003453/0.02159, allocations: 371.9 kB / 0.4932 GB, free: 12.17 MB / 382.1 MB Notification: Performance of Detect States: time 0.000442/0.02204, allocations: 433.6 kB / 0.4936 GB, free: 11.73 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0004576/0.02251, allocations: 0.5195 MB / 0.4941 GB, free: 11.12 MB / 382.1 MB Notification: Performance of Causalize: time 0.00157/0.02408, allocations: 1.687 MB / 0.4958 GB, free: 9.352 MB / 382.1 MB Notification: Performance of After Index Reduction Inline: time 0.0009243/0.02502, allocations: 1.189 MB / 0.4969 GB, free: 8.133 MB / 382.1 MB Notification: Performance of Inline: time 0.001893/0.02691, allocations: 2.255 MB / 0.4991 GB, free: 5.824 MB / 382.1 MB Notification: Performance of Partitioning: time 0.0001114/0.02704, allocations: 123.5 kB / 0.4993 GB, free: 5.695 MB / 382.1 MB Notification: Performance of Cleanup: time 0.0002372/0.02728, allocations: 243.5 kB / 0.4995 GB, free: 5.453 MB / 382.1 MB Notification: Performance of Causalize: time 0.004995/0.03228, allocations: 5.264 MB / 0.5046 GB, free: 160 kB / 382.1 MB Notification: Performance of Tearing: time 0.1325/0.1648, allocations: 2.127 MB / 0.5067 GB, free: 29.99 MB / 382.1 MB Notification: Performance of Initialization: time 1.633e-06/0.1648, allocations: 5.25 kB / 0.5067 GB, free: 29.99 MB / 382.1 MB Notification: Performance of Tearing: time 1.129e-05/0.1648, allocations: 8.203 kB / 0.5067 GB, free: 29.99 MB / 382.1 MB Notification: Performance of Categorize: time 2.375e-05/0.1648, allocations: 2.906 kB / 0.5067 GB, free: 29.99 MB / 382.1 MB Notification: Performance of Solve: time 0.001151/0.166, allocations: 1.572 MB / 0.5083 GB, free: 29.04 MB / 382.1 MB Notification: Performance of Jacobian: time 0.0005722/0.1666, allocations: 1.195 MB / 0.5094 GB, free: 28.25 MB / 382.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: ......... 8 * 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: ................. 20 (20) {$SEV_15, $SEV_14, $SEV_13, $SEV_12, $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: ........... 72 (scalar:72, 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: ........... 94 (scalar:94, 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: ........... 108 (scalar:108, 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.0001001/0.1667, allocations: 64.52 kB / 0.5095 GB, free: 28.23 MB / 382.1 MB Notification: Performance of SimCode: time 0.002604/0.1693, allocations: 4.108 MB / 0.5135 GB, free: 26.7 MB / 382.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.