Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001374/0.001374, allocations: 106.8 kB / 16.42 MB, free: 6.512 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.001239/0.001239, allocations: 187.2 kB / 17.35 MB, free: 5.754 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.506/1.506, allocations: 205.1 MB / 223.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.687e-05/2.688e-05, allocations: 2.281 kB / 327.2 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.006198/0.006233, allocations: 4.841 MB / 332.1 MB, free: 14.44 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002523/0.008772, allocations: 1.423 MB / 333.5 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002999/0.009084, allocations: 15.94 kB / 333.5 MB, free: 13 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003222/0.009413, allocations: 142.5 kB / 333.6 MB, free: 12.86 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004466/0.009866, allocations: 206.1 kB / 333.8 MB, free: 12.65 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006388/0.01054, allocations: 363.5 kB / 334.2 MB, free: 12.3 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001055/0.0116, allocations: 1.188 MB / 335.4 MB, free: 11.11 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005795/0.01219, allocations: 427.1 kB / 335.8 MB, free: 10.66 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003906/0.01259, allocations: 398.5 kB / 336.2 MB, free: 10.27 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003764/0.01298, allocations: 426 kB / 336.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.01311, allocations: 103.9 kB / 336.7 MB, free: 9.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001156/0.01323, allocations: 100 kB / 336.8 MB, free: 9.656 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009284/0.01416, allocations: 1.41 MB / 338.2 MB, free: 8.23 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005082/0.01468, allocations: 0.8735 MB / 339.1 MB, free: 7.344 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001802/0.01487, allocations: 167.5 kB / 339.3 MB, free: 7.18 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001361/0.01501, allocations: 47.67 kB / 339.3 MB, free: 7.133 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: 173 (173) * Number of variables: 173 (169) Notification: Performance of Bindings: time 0.003515/0.01853, allocations: 4.05 MB / 343.4 MB, free: 2.914 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004193/0.01896, allocations: 419.3 kB / 343.8 MB, free: 2.508 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001994/0.02096, allocations: 2.151 MB / 345.9 MB, free: 324 kB / 286.1 MB Notification: Performance of simplify1: time 0.0001907/0.02116, allocations: 187.8 kB / 346.1 MB, free: 136 kB / 286.1 MB Notification: Performance of Alias: time 0.003797/0.02496, allocations: 3.621 MB / 349.7 MB, free: 12.12 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001257/0.0251, allocations: 123.8 kB / 349.8 MB, free: 12 MB / 302.1 MB Notification: Performance of Events: time 0.0004703/0.02558, allocations: 428.1 kB / 350.3 MB, free: 11.57 MB / 302.1 MB Notification: Performance of Detect States: time 0.0008126/0.0264, allocations: 0.7894 MB / 351 MB, free: 10.75 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006983/0.02711, allocations: 0.7032 MB / 351.7 MB, free: 9.977 MB / 302.1 MB Notification: Performance of Causalize: time 0.003711/0.03083, allocations: 3.976 MB / 355.7 MB, free: 6.039 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001574/0.03243, allocations: 1.712 MB / 357.4 MB, free: 4.297 MB / 302.1 MB Notification: Performance of Inline: time 0.002776/0.03522, allocations: 2.964 MB / 360.4 MB, free: 1.281 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001964/0.03543, allocations: 183.6 kB / 360.6 MB, free: 1.086 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003096/0.03574, allocations: 351.5 kB / 360.9 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of Causalize: time 0.1764/0.2121, allocations: 18.33 MB / 379.3 MB, free: 42.87 MB / 318.1 MB Notification: Performance of Tearing: time 0.001542/0.2137, allocations: 1.387 MB / 380.6 MB, free: 42.39 MB / 318.1 MB Notification: Performance of Initialization: time 2.425e-06/0.2137, allocations: 0.5312 kB / 380.6 MB, free: 42.39 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007148/0.2144, allocations: 0.6864 MB / 381.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of Categorize: time 3.813e-05/0.2145, allocations: 8.734 kB / 381.3 MB, free: 42.12 MB / 318.1 MB Notification: Performance of Solve: time 0.001589/0.2161, allocations: 0.4996 MB / 381.8 MB, free: 42.07 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001415/0.2175, allocations: 1.31 MB / 383.1 MB, free: 41.7 MB / 318.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: ............... 1 * 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: ............................. 5 (5) {fundamentalWaveVoltage.mean1.x, fundamentalWaveVoltage.mean2.x, fundamentalWaveCurrent.mean1.x, fundamentalWaveCurrent.mean2.x, inductor.i} * Number of discrete states: .................... 8 (8) {fundamentalWaveCurrent.mean2.y, fundamentalWaveCurrent.mean1.y, fundamentalWaveVoltage.mean2.y, fundamentalWaveVoltage.mean1.y, signalPWM.sawtooth.T_start, signalPWM.sawtooth.count, signalPWM.zeroOrderHold.firstTrigger, signalPWM.zeroOrderHold.ySample} * Number of clocked states: ..................... 0 (0) {NOT YET AVAILABLE} * Number of discrete variables: ................. 40 (40) {inverter.enableLogic.booleanReplicator.y, inverter.enableLogic.internalEnable, inverter.andCondition_p.u1, inverter.andCondition_p.u2, inverter.andCondition_p.y, inverter.andCondition_n.u2, inverter.andCondition_n.y, inverter.transistor_p.off, inverter.diode_p.off, inverter.transistor_n.off, inverter.diode_n.off, signalPWM.zeroOrderHold.sampleTrigger, $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_14, $TEV_13, $TEV_12, $TEV_11, $TEV_10, $TEV_9, $TEV_8, $TEV_7, $TEV_6, $TEV_5, $TEV_4, $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: ........... 89 (scalar:87, array:2, record:0) * Number of multi strong components: ............ 8 (algorithm:0, when:8, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 162 (scalar:160, array:2, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: [Initialization (lambda=0)] Strong Component statistics after passing the back-end: * Number of single strong components: ........... 162 (scalar:160, array:2, record:0) * Number of multi strong components: ............ 2 (algorithm:2, when:0, if:0, tuple:0) * Number of for-loop strong components: ......... 0 (generic: 0, entwined:0) * Number of algebraic-loop strong components: ... 1 (linear: 0, nonlinear:1) Notification: Performance of backend: time 0.0001199/0.2176, allocations: 106.9 kB / 383.2 MB, free: 41.67 MB / 318.1 MB Notification: Performance of SimCode: time 0.004119/0.2218, allocations: 4.126 MB / 387.4 MB, free: 40.16 MB / 318.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.