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_R.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_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|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_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001553/0.001553, allocations: 108 kB / 18.41 MB, free: 4.664 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.001452/0.001452, allocations: 194.6 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.607/1.607, allocations: 205.1 MB / 225.2 MB, free: 12.27 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.986e-05/2.987e-05, allocations: 3.266 kB / 329.2 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006261/0.006299, allocations: 4.732 MB / 333.9 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002936/0.009253, allocations: 1.411 MB / 335.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000355/0.009622, allocations: 15.94 kB / 335.4 MB, free: 13.11 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003774/0.01001, allocations: 134.6 kB / 335.5 MB, free: 12.98 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005136/0.01053, allocations: 198.1 kB / 335.7 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007674/0.01134, allocations: 359.5 kB / 336 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001147/0.0125, allocations: 1.157 MB / 337.2 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000655/0.01317, allocations: 423 kB / 337.6 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000451/0.01363, allocations: 390.5 kB / 338 MB, free: 10.45 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004857/0.01412, allocations: 422 kB / 338.4 MB, free: 10.04 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001425/0.01427, allocations: 100 kB / 338.5 MB, free: 9.941 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001244/0.0144, allocations: 96 kB / 338.6 MB, free: 9.848 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.001056/0.01547, allocations: 1.375 MB / 340 MB, free: 8.457 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0005492/0.01602, allocations: 0.8505 MB / 340.8 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001963/0.01623, allocations: 151.5 kB / 341 MB, free: 7.445 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.000185/0.01642, allocations: 51.67 kB / 341 MB, free: 7.395 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: 167 (167) * Number of variables: 167 (163) Notification: Performance of Bindings: time 0.003784/0.02022, allocations: 3.952 MB / 345 MB, free: 3.273 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.0004386/0.02066, allocations: 400.2 kB / 345.4 MB, free: 2.883 MB / 286.1 MB Notification: Performance of Early Inline: time 0.002128/0.0228, allocations: 2.1 MB / 347.5 MB, free: 0.7461 MB / 286.1 MB Notification: Performance of simplify1: time 0.0002265/0.02304, allocations: 179.8 kB / 347.6 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of Alias: time 0.005248/0.02829, allocations: 3.877 MB / 351.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of simplify2: time 0.0002436/0.02856, allocations: 123.8 kB / 351.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Events: time 0.0006732/0.02925, allocations: 434.4 kB / 352.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of Detect States: time 0.001053/0.03031, allocations: 0.7691 MB / 352.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0009305/0.03125, allocations: 0.7071 MB / 353.5 MB, free: 10.18 MB / 302.1 MB Notification: Performance of Causalize: time 0.003374/0.03464, allocations: 2.822 MB / 356.4 MB, free: 7.277 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001816/0.03647, allocations: 1.689 MB / 358 MB, free: 5.555 MB / 302.1 MB Notification: Performance of Inline: time 0.00323/0.03971, allocations: 2.916 MB / 361 MB, free: 2.586 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0002507/0.03998, allocations: 175.6 kB / 361.1 MB, free: 2.398 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0004646/0.04046, allocations: 355.4 kB / 361.5 MB, free: 2.043 MB / 302.1 MB Notification: Performance of Causalize: time 0.01906/0.05952, allocations: 15.3 MB / 376.8 MB, free: 2.547 MB / 318.1 MB Notification: Performance of Tearing: time 0.00157/0.06114, allocations: 1.506 MB / 378.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of Initialization: time 1.222e-06/0.06115, allocations: 0 / 378.3 MB, free: 0.9375 MB / 318.1 MB Notification: Performance of Tearing: time 0.0007807/0.06194, allocations: 0.7515 MB / 379 MB, free: 140 kB / 318.1 MB Notification: Performance of Categorize: time 3.391e-05/0.06198, allocations: 4 kB / 379 MB, free: 136 kB / 318.1 MB Notification: Performance of Solve: time 0.2293/0.2913, allocations: 479.6 kB / 379.5 MB, free: 42.16 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001852/0.2931, allocations: 1.291 MB / 380.8 MB, free: 41.83 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: ............................. 4 (4) {fundamentalWaveVoltage.mean1.x, fundamentalWaveVoltage.mean2.x, fundamentalWaveCurrent.mean1.x, fundamentalWaveCurrent.mean2.x} * 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: ........... 84 (scalar:82, 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: ........... 155 (scalar:153, 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: ........... 155 (scalar:153, 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.0001531/0.2933, allocations: 92.06 kB / 380.9 MB, free: 41.79 MB / 318.1 MB Notification: Performance of SimCode: time 0.004919/0.2982, allocations: 4.102 MB / 385 MB, free: 40.31 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.