Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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) 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(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder1A.c.v|firstOrder1B.y|firstOrder2A.c.v|firstOrder2B.y|PIA.c.v|PIB.x|addA.opAmp.v_out|addB.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|firstOrder1A.c.v|firstOrder1B.y|firstOrder2A.c.v|firstOrder2B.y|PIA.c.v|PIB.x|addA.opAmp.v_out|addB.y",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.00129/0.001289, allocations: 118 kB / 18.47 MB, free: 4.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00139/0.00139, allocations: 210.8 kB / 19.42 MB, free: 3.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.363/1.363, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.898e-05/2.899e-05, allocations: 4.531 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.007994/0.008032, allocations: 7.89 MB / 367.3 MB, free: 5.012 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004085/0.01215, allocations: 1.905 MB / 369.2 MB, free: 3.102 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007801/0.01295, allocations: 27.88 kB / 369.2 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000495/0.01346, allocations: 237.7 kB / 369.4 MB, free: 2.84 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008639/0.01437, allocations: 436.3 kB / 369.9 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008518/0.01523, allocations: 0.4916 MB / 370.3 MB, free: 1.918 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.2239/0.2391, allocations: 2.032 MB / 372.4 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001676/0.2408, allocations: 0.6221 MB / 373 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00128/0.2421, allocations: 0.6448 MB / 373.6 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008881/0.243, allocations: 0.7078 MB / 374.3 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003028/0.2433, allocations: 178.7 kB / 374.5 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003157/0.2437, allocations: 179.4 kB / 374.7 MB, free: 10.13 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001734/0.2454, allocations: 2.396 MB / 377.1 MB, free: 8.906 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0008007/0.2462, allocations: 1.441 MB / 378.5 MB, free: 7.938 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004239/0.2467, allocations: 277.1 kB / 378.8 MB, free: 7.883 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0003215/0.247, allocations: 39.77 kB / 378.8 MB, free: 7.883 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 311 (311) * Number of variables: 311 (311) Notification: Performance of Bindings: time 0.006744/0.2537, allocations: 7.091 MB / 385.9 MB, free: 3.973 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003404/0.2541, allocations: 316.8 kB / 386.2 MB, free: 3.766 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003311/0.2574, allocations: 3.558 MB / 389.8 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simplify1: time 0.0005053/0.2579, allocations: 331.5 kB / 390.1 MB, free: 1.297 MB / 302.1 MB Notification: Performance of Alias: time 0.0111/0.269, allocations: 7.603 MB / 397.7 MB, free: 12.89 MB / 318.1 MB Notification: Performance of simplify2: time 0.0004545/0.2695, allocations: 211.8 kB / 397.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of Events: time 0.0007914/0.2703, allocations: 0.5672 MB / 398.5 MB, free: 12.48 MB / 318.1 MB Notification: Performance of Detect States: time 0.0008765/0.2712, allocations: 0.7337 MB / 399.2 MB, free: 12.01 MB / 318.1 MB Notification: Performance of Partitioning: time 0.001269/0.2725, allocations: 1.055 MB / 400.3 MB, free: 11.3 MB / 318.1 MB Notification: Performance of Causalize: time 0.004214/0.2767, allocations: 3.905 MB / 404.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of After Index Reduction Inline: time 0.002224/0.279, allocations: 2.255 MB / 406.5 MB, free: 7.109 MB / 318.1 MB Notification: Performance of Inline: time 0.004288/0.2833, allocations: 4.204 MB / 410.7 MB, free: 3.156 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0003111/0.2836, allocations: 239.6 kB / 410.9 MB, free: 2.902 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001754/0.2838, allocations: 179.7 kB / 411.1 MB, free: 2.727 MB / 318.1 MB Notification: Performance of Causalize: time 0.01397/0.2977, allocations: 10.88 MB / 421.9 MB, free: 7.773 MB / 334.1 MB Notification: Performance of Tearing: time 0.001633/0.2994, allocations: 1.689 MB / 423.6 MB, free: 5.906 MB / 334.1 MB Notification: Performance of Initialization: time 9.31e-07/0.2994, allocations: 7.938 kB / 423.6 MB, free: 5.898 MB / 334.1 MB Notification: Performance of Tearing: time 0.001752/0.3012, allocations: 2.189 MB / 425.8 MB, free: 3.438 MB / 334.1 MB Notification: Performance of Categorize: time 4.824e-05/0.3013, allocations: 16.17 kB / 425.8 MB, free: 3.422 MB / 334.1 MB Notification: Performance of Solve: time 0.001407/0.3027, allocations: 0.6712 MB / 426.5 MB, free: 2.746 MB / 334.1 MB Notification: Performance of Jacobian: time 0.001903/0.3046, allocations: 1.749 MB / 428.3 MB, free: 0.9258 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: ............... 2 * Number of algebraic event partitions: ......... 13 * 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: ............................. 6 (6) {PIA.c.v, firstOrder1A.v, firstOrder2A.v, PIB.x, firstOrder1B.y, firstOrder2B.y} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 27 (27) {$SEV_22, $SEV_21, $SEV_20, $SEV_19, $SEV_18, $SEV_17, $SEV_16, $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: ........... 111 (scalar:111, 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: ... 6 (linear: 0, nonlinear:6) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 214 (scalar:214, 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.0001202/0.3047, allocations: 69.89 kB / 428.3 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of SimCode: time 0.007135/0.3119, allocations: 6.587 MB / 434.9 MB, free: 10.14 MB / 350.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.