Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|inductor.i|fundamentalWaveCurrent.mean1.y|fundamentalWaveCurrent.mean2.y|fundamentalWaveVoltage.mean1.y|fundamentalWaveVoltage.mean2.y|inverter.ac.v|inverter.ac.i",fileNamePrefix="Modelica_3.2.3_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.001172/0.001172, allocations: 107.6 kB / 18.41 MB, free: 4.688 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.001037/0.001037, allocations: 187.1 kB / 19.35 MB, free: 3.766 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.599/1.599, allocations: 205.1 MB / 225.2 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.81e-05/2.811e-05, allocations: 6.438 kB / 329.2 MB, free: 3.324 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL): time 0.006101/0.006154, allocations: 4.842 MB / 334 MB, free: 14.45 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002633/0.008802, allocations: 1.415 MB / 335.5 MB, free: 13.03 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003566/0.00917, allocations: 23.81 kB / 335.5 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000367/0.009544, allocations: 138.6 kB / 335.6 MB, free: 12.87 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005396/0.01009, allocations: 206 kB / 335.8 MB, free: 12.67 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000752/0.01089, allocations: 363.5 kB / 336.2 MB, free: 12.31 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001335/0.01224, allocations: 1.188 MB / 337.4 MB, free: 11.12 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006935/0.01294, allocations: 439.1 kB / 337.8 MB, free: 10.67 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005046/0.01345, allocations: 390.5 kB / 338.2 MB, free: 10.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00052/0.01398, allocations: 437.9 kB / 338.6 MB, free: 9.855 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000139/0.01413, allocations: 100 kB / 338.7 MB, free: 9.758 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001463/0.01428, allocations: 100 kB / 338.8 MB, free: 9.66 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001081/0.01537, allocations: 1.41 MB / 340.2 MB, free: 8.234 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005755/0.01596, allocations: 0.8813 MB / 341.1 MB, free: 7.34 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002031/0.01617, allocations: 151.5 kB / 341.2 MB, free: 7.191 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0002216/0.0164, allocations: 55.67 kB / 341.3 MB, free: 7.137 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.003822/0.02022, allocations: 4.046 MB / 345.3 MB, free: 2.922 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0005185/0.02076, allocations: 404.2 kB / 345.7 MB, free: 2.527 MB / 286.1 MB Notification: Performance of Early Inline: time 0.002485/0.02325, allocations: 2.155 MB / 347.9 MB, free: 340 kB / 286.1 MB Notification: Performance of simplify1: time 0.0003286/0.0236, allocations: 187.8 kB / 348.1 MB, free: 152 kB / 286.1 MB Notification: Performance of Alias: time 0.005837/0.02945, allocations: 4.02 MB / 352.1 MB, free: 11.73 MB / 302.1 MB Notification: Performance of simplify2: time 0.000173/0.02964, allocations: 127.8 kB / 352.2 MB, free: 11.61 MB / 302.1 MB Notification: Performance of Events: time 0.0005396/0.03019, allocations: 435.4 kB / 352.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of Detect States: time 0.0008424/0.03104, allocations: 0.7925 MB / 353.4 MB, free: 10.35 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007624/0.03182, allocations: 0.7111 MB / 354.1 MB, free: 9.57 MB / 302.1 MB Notification: Performance of Causalize: time 0.003342/0.03517, allocations: 2.85 MB / 357 MB, free: 6.641 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001749/0.03694, allocations: 1.712 MB / 358.7 MB, free: 4.898 MB / 302.1 MB Notification: Performance of Inline: time 0.003028/0.03998, allocations: 2.963 MB / 361.7 MB, free: 1.883 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002783/0.04027, allocations: 175.7 kB / 361.8 MB, free: 1.695 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0003276/0.0406, allocations: 355.5 kB / 362.2 MB, free: 1.34 MB / 302.1 MB Notification: Performance of Causalize: time 0.01818/0.05879, allocations: 15.53 MB / 377.7 MB, free: 1.613 MB / 318.1 MB Notification: Performance of Tearing: time 0.00143/0.06026, allocations: 1.387 MB / 379.1 MB, free: 132 kB / 318.1 MB Notification: Performance of Initialization: time 1.252e-06/0.06028, allocations: 4 kB / 379.1 MB, free: 128 kB / 318.1 MB Notification: Performance of Tearing: time 0.2324/0.2926, allocations: 0.6762 MB / 379.8 MB, free: 42.27 MB / 318.1 MB Notification: Performance of Categorize: time 6.296e-05/0.2928, allocations: 7.922 kB / 379.8 MB, free: 42.27 MB / 318.1 MB Notification: Performance of Solve: time 0.001873/0.2946, allocations: 0.5044 MB / 380.3 MB, free: 42.25 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001969/0.2966, allocations: 1.296 MB / 381.6 MB, free: 41.88 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.0001801/0.2968, allocations: 102.1 kB / 381.7 MB, free: 41.85 MB / 318.1 MB Notification: Performance of SimCode: time 0.005992/0.3028, allocations: 4.133 MB / 385.8 MB, free: 40.35 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.