Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator.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) 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(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") translateModel(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|c.v|opAmp1.out.v|opAmp1.out.i|opAmp2.out.v|opAmp2.out.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 106.3 kB / 18.41 MB, free: 4.668 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.0013/0.0013, allocations: 192.3 kB / 19.35 MB, free: 3.742 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.697/1.697, allocations: 205.1 MB / 225.2 MB, free: 12.22 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.53e-05/2.531e-05, allocations: 2.281 kB / 329.2 MB, free: 3.297 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.SignalGenerator): time 0.004439/0.004472, allocations: 2.915 MB / 332.1 MB, free: 376 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001481/0.005981, allocations: 0.7838 MB / 332.9 MB, free: 15.57 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001619/0.006154, allocations: 11.94 kB / 332.9 MB, free: 15.56 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001963/0.006357, allocations: 51.44 kB / 333 MB, free: 15.51 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002022/0.006569, allocations: 99.17 kB / 333.1 MB, free: 15.41 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000303/0.006899, allocations: 131.8 kB / 333.2 MB, free: 15.29 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.007376, allocations: 454.2 kB / 333.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002698/0.007654, allocations: 135.6 kB / 333.8 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001521/0.007813, allocations: 143.4 kB / 333.9 MB, free: 14.56 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001896/0.008012, allocations: 167.3 kB / 334.1 MB, free: 14.4 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.262e-05/0.008071, allocations: 32 kB / 334.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.823e-05/0.008135, allocations: 36 kB / 334.1 MB, free: 14.33 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0004599/0.008601, allocations: 0.5642 MB / 334.7 MB, free: 13.76 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0001919/0.008798, allocations: 335.1 kB / 335 MB, free: 13.43 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.645e-05/0.008873, allocations: 63.81 kB / 335.1 MB, free: 13.37 MB / 286.1 MB Notification: Performance of FrontEnd: time 5.123e-05/0.00893, allocations: 15.94 kB / 335.1 MB, free: 13.35 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 75 (75) * Number of variables: 75 (75) Notification: Performance of Bindings: time 0.001612/0.01055, allocations: 1.624 MB / 336.7 MB, free: 11.62 MB / 286.1 MB Notification: Performance of FunctionAlias: time 8.084e-05/0.01064, allocations: 75.81 kB / 336.8 MB, free: 11.54 MB / 286.1 MB Notification: Performance of Early Inline: time 0.0007452/0.01139, allocations: 0.8 MB / 337.6 MB, free: 10.71 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001008/0.0115, allocations: 79.91 kB / 337.7 MB, free: 10.64 MB / 286.1 MB Notification: Performance of Alias: time 0.002195/0.0137, allocations: 1.631 MB / 339.3 MB, free: 8.781 MB / 286.1 MB Notification: Performance of simplify2: time 5.46e-05/0.01377, allocations: 55.94 kB / 339.4 MB, free: 8.727 MB / 286.1 MB Notification: Performance of Events: time 0.0001815/0.01396, allocations: 111.8 kB / 339.5 MB, free: 8.617 MB / 286.1 MB Notification: Performance of Detect States: time 0.0003357/0.0143, allocations: 182.3 kB / 339.7 MB, free: 8.426 MB / 286.1 MB Notification: Performance of Partitioning: time 0.0003203/0.01463, allocations: 251.7 kB / 339.9 MB, free: 8.141 MB / 286.1 MB Notification: Performance of Causalize: time 0.001185/0.01583, allocations: 0.9318 MB / 340.8 MB, free: 7.168 MB / 286.1 MB Notification: Performance of After Index Reduction Inline: time 0.0005922/0.01643, allocations: 0.5233 MB / 341.4 MB, free: 6.617 MB / 286.1 MB Notification: Performance of Inline: time 0.001222/0.01767, allocations: 0.9782 MB / 342.3 MB, free: 5.602 MB / 286.1 MB Notification: Performance of Partitioning: time 8.065e-05/0.01776, allocations: 62.3 kB / 342.4 MB, free: 5.535 MB / 286.1 MB Notification: Performance of Cleanup: time 0.0001255/0.01789, allocations: 105.1 kB / 342.5 MB, free: 5.426 MB / 286.1 MB Notification: Performance of Causalize: time 0.003714/0.02162, allocations: 2.912 MB / 345.4 MB, free: 2.488 MB / 286.1 MB Notification: Performance of Tearing: time 0.001239/0.02287, allocations: 1.262 MB / 346.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of Initialization: time 7.92e-07/0.02288, allocations: 0 / 346.7 MB, free: 1.031 MB / 286.1 MB Notification: Performance of Tearing: time 0.0005792/0.02347, allocations: 0.692 MB / 347.4 MB, free: 248 kB / 286.1 MB Notification: Performance of Categorize: time 3.455e-05/0.02351, allocations: 11.98 kB / 347.4 MB, free: 236 kB / 286.1 MB Notification: Performance of Solve: time 0.0003507/0.02387, allocations: 166.5 kB / 347.5 MB, free: 68 kB / 286.1 MB Notification: Performance of Jacobian: time 0.0004917/0.02438, allocations: 475.2 kB / 348 MB, free: 15.56 MB / 302.1 MB Notification: Partition statistics after passing the back-end: * Number of ODE partitions: ..................... 0 * Number of algebraic partitions: ............... 1 * Number of ODE event partitions: ............... 1 * Number of algebraic event partitions: ......... 3 * 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: ............................. 1 (1) {c.v} * Number of discrete states: .................... 0 (0) {} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 7 (7) {$SEV_6, $SEV_5, $SEV_4, $SEV_3, $SEV_2, $SEV_1, $SEV_0} * Number of top-level inputs: ................... 0 (0) {} Notification: [Simulation] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 26 (scalar:26, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 49 (scalar:49, 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: ... 2 (linear: 0, nonlinear:2) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 55 (scalar:55, 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: ... 2 (linear: 0, nonlinear:2) Notification: Performance of backend: time 6.281e-05/0.02445, allocations: 33.02 kB / 348 MB, free: 15.53 MB / 302.1 MB Notification: Performance of SimCode: time 0.001905/0.02636, allocations: 1.875 MB / 349.9 MB, free: 13.63 MB / 302.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.