Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit.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) 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(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_4.0.0_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_4.0.0_Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001231/0.001231, allocations: 110.6 kB / 17.75 MB, free: 5.312 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.0009617/0.0009618, allocations: 183.1 kB / 18.68 MB, free: 4.398 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.308/1.308, allocations: 222.9 MB / 242.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.149e-05/3.15e-05, allocations: 2.281 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.OpAmps.ControlCircuit): time 0.008079/0.008118, allocations: 7.868 MB / 359.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004425/0.01258, allocations: 1.862 MB / 361.7 MB, free: 9.461 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009977/0.0136, allocations: 27.94 kB / 361.7 MB, free: 9.434 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005697/0.01418, allocations: 233.7 kB / 362 MB, free: 9.203 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009863/0.01523, allocations: 448.2 kB / 362.4 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009284/0.01616, allocations: 0.4955 MB / 362.9 MB, free: 8.266 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.01795, allocations: 2.036 MB / 364.9 MB, free: 6.223 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007906/0.01875, allocations: 0.6257 MB / 365.5 MB, free: 5.57 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006357/0.0194, allocations: 0.6383 MB / 366.2 MB, free: 4.93 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006313/0.02004, allocations: 0.7117 MB / 366.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001932/0.02024, allocations: 176 kB / 367.1 MB, free: 4.043 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002177/0.02046, allocations: 183.9 kB / 367.3 MB, free: 3.863 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.001492/0.02196, allocations: 2.392 MB / 369.6 MB, free: 1.445 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.2265/0.2485, allocations: 1.443 MB / 371.1 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0009187/0.2494, allocations: 276 kB / 371.4 MB, free: 14.39 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0004713/0.2499, allocations: 45.02 kB / 371.4 MB, free: 14.39 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.006089/0.256, allocations: 7.075 MB / 378.5 MB, free: 13.27 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0002598/0.2563, allocations: 318 kB / 378.8 MB, free: 13.07 MB / 302.1 MB Notification: Performance of Early Inline: time 0.003143/0.2594, allocations: 3.568 MB / 382.4 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simplify1: time 0.0004017/0.2598, allocations: 327.3 kB / 382.7 MB, free: 10.59 MB / 302.1 MB Notification: Performance of Alias: time 0.008942/0.2688, allocations: 7.602 MB / 390.3 MB, free: 6.188 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002732/0.2691, allocations: 200.7 kB / 390.5 MB, free: 6.121 MB / 302.1 MB Notification: Performance of Events: time 0.0006704/0.2698, allocations: 0.5693 MB / 391 MB, free: 5.785 MB / 302.1 MB Notification: Performance of Detect States: time 0.0009021/0.2707, allocations: 0.743 MB / 391.8 MB, free: 5.305 MB / 302.1 MB Notification: Performance of Partitioning: time 0.001095/0.2718, allocations: 1.049 MB / 392.8 MB, free: 4.605 MB / 302.1 MB Notification: Performance of Causalize: time 0.004176/0.276, allocations: 3.901 MB / 396.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001965/0.2779, allocations: 2.256 MB / 399 MB, free: 1.555 MB / 302.1 MB Notification: Performance of Inline: time 0.003971/0.2819, allocations: 4.217 MB / 403.2 MB, free: 14.21 MB / 318.1 MB Notification: Performance of Partitioning: time 0.0002617/0.2822, allocations: 231.7 kB / 403.4 MB, free: 13.96 MB / 318.1 MB Notification: Performance of Cleanup: time 0.0001532/0.2823, allocations: 175.8 kB / 403.6 MB, free: 13.79 MB / 318.1 MB Notification: Performance of Causalize: time 0.01196/0.2943, allocations: 10.89 MB / 414.5 MB, free: 2.828 MB / 318.1 MB Notification: Performance of Tearing: time 0.00147/0.2958, allocations: 1.69 MB / 416.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of Initialization: time 1.403e-06/0.2958, allocations: 0 / 416.2 MB, free: 0.957 MB / 318.1 MB Notification: Performance of Tearing: time 0.001773/0.2976, allocations: 2.208 MB / 418.4 MB, free: 14.48 MB / 334.1 MB Notification: Performance of Categorize: time 3.85e-05/0.2977, allocations: 4 kB / 418.4 MB, free: 14.47 MB / 334.1 MB Notification: Performance of Solve: time 0.001024/0.2987, allocations: 0.6739 MB / 419.1 MB, free: 13.79 MB / 334.1 MB Notification: Performance of Jacobian: time 0.001669/0.3004, allocations: 1.738 MB / 420.8 MB, free: 11.98 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 8.882e-05/0.3005, allocations: 74.83 kB / 420.9 MB, free: 11.91 MB / 334.1 MB Notification: Performance of SimCode: time 0.005829/0.3063, allocations: 6.584 MB / 427.5 MB, free: 5.184 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.