Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_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.001135/0.001135, allocations: 107.9 kB / 17.75 MB, free: 5.352 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.0008864/0.0008865, allocations: 189.8 kB / 18.68 MB, free: 4.426 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.275/1.275, allocations: 205.1 MB / 224.5 MB, free: 12.23 MB / 190.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.106e-05/2.107e-05, allocations: 2.281 kB / 328.5 MB, free: 3.305 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006235/0.006266, allocations: 4.727 MB / 333.3 MB, free: 14.55 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002954/0.009233, allocations: 1.411 MB / 334.7 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007671/0.01001, allocations: 15.94 kB / 334.7 MB, free: 13.12 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000543/0.01056, allocations: 130.6 kB / 334.8 MB, free: 12.99 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009393/0.01151, allocations: 206.1 kB / 335 MB, free: 12.79 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009854/0.01251, allocations: 355.5 kB / 335.4 MB, free: 12.44 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001653/0.01418, allocations: 1.157 MB / 336.5 MB, free: 11.28 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006115/0.0148, allocations: 427 kB / 337 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004414/0.01525, allocations: 386.5 kB / 337.3 MB, free: 10.46 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003889/0.01565, allocations: 418 kB / 337.7 MB, free: 10.05 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001197/0.01578, allocations: 96 kB / 337.8 MB, free: 9.953 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001127/0.01589, allocations: 100 kB / 337.9 MB, free: 9.855 MB / 286.1 MB Notification: Performance of combineBinaries: time 0.0009651/0.01686, allocations: 1.383 MB / 339.3 MB, free: 8.457 MB / 286.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004462/0.01732, allocations: 0.8427 MB / 340.2 MB, free: 7.602 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001476/0.01747, allocations: 163.4 kB / 340.3 MB, free: 7.441 MB / 286.1 MB Notification: Performance of FrontEnd: time 0.0001223/0.0176, allocations: 43.75 kB / 340.4 MB, free: 7.398 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.00318/0.02079, allocations: 3.949 MB / 344.3 MB, free: 3.281 MB / 286.1 MB Notification: Performance of FunctionAlias: time 0.000397/0.02119, allocations: 412.2 kB / 344.7 MB, free: 2.879 MB / 286.1 MB Notification: Performance of Early Inline: time 0.001989/0.02319, allocations: 2.1 MB / 346.8 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of simplify1: time 0.0001811/0.02338, allocations: 183.8 kB / 347 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of Alias: time 0.003702/0.02708, allocations: 3.49 MB / 350.5 MB, free: 12.68 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001194/0.02722, allocations: 119.8 kB / 350.6 MB, free: 12.57 MB / 302.1 MB Notification: Performance of Events: time 0.0004599/0.02768, allocations: 422.4 kB / 351 MB, free: 12.15 MB / 302.1 MB Notification: Performance of Detect States: time 0.0007085/0.0284, allocations: 0.773 MB / 351.8 MB, free: 11.35 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0006961/0.02911, allocations: 0.7032 MB / 352.5 MB, free: 10.58 MB / 302.1 MB Notification: Performance of Causalize: time 0.003605/0.03272, allocations: 3.914 MB / 356.4 MB, free: 6.691 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.00154/0.03427, allocations: 1.709 MB / 358.1 MB, free: 4.953 MB / 302.1 MB Notification: Performance of Inline: time 0.002738/0.03702, allocations: 2.91 MB / 361 MB, free: 1.992 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001877/0.03722, allocations: 171.6 kB / 361.2 MB, free: 1.805 MB / 302.1 MB Notification: Performance of Cleanup: time 0.0002904/0.03751, allocations: 351.5 kB / 361.5 MB, free: 1.457 MB / 302.1 MB Notification: Performance of Causalize: time 0.01536/0.05288, allocations: 18.01 MB / 379.5 MB, free: 404 kB / 318.1 MB Notification: Performance of Tearing: time 0.1591/0.212, allocations: 1.499 MB / 381 MB, free: 43.7 MB / 318.1 MB Notification: Performance of Initialization: time 2.004e-06/0.2121, allocations: 0 / 381 MB, free: 43.7 MB / 318.1 MB Notification: Performance of Tearing: time 0.0006814/0.2128, allocations: 0.7508 MB / 381.8 MB, free: 43.44 MB / 318.1 MB Notification: Performance of Categorize: time 3.902e-05/0.2128, allocations: 4.312 kB / 381.8 MB, free: 43.44 MB / 318.1 MB Notification: Performance of Solve: time 0.001514/0.2143, allocations: 493.8 kB / 382.3 MB, free: 43.39 MB / 318.1 MB Notification: Performance of Jacobian: time 0.001411/0.2158, allocations: 1.287 MB / 383.6 MB, free: 43.02 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 9.811e-05/0.2159, allocations: 104.4 kB / 383.7 MB, free: 42.98 MB / 318.1 MB Notification: Performance of SimCode: time 0.004023/0.2199, allocations: 4.109 MB / 387.8 MB, free: 41.48 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.