Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.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_4.0.0_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_4.0.0_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.001318/0.001318, allocations: 113 kB / 17.75 MB, free: 5.305 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.001346/0.001347, allocations: 184.7 kB / 18.68 MB, free: 4.383 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.307/1.307, allocations: 222.9 MB / 242.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.507e-05/2.509e-05, allocations: 5.797 kB / 352 MB, free: 3.238 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R): time 0.006202/0.006236, allocations: 4.78 MB / 356.8 MB, free: 14.43 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002258/0.008512, allocations: 1.371 MB / 358.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003059/0.008831, allocations: 19.94 kB / 358.1 MB, free: 13.03 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003273/0.009166, allocations: 130.6 kB / 358.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004327/0.009606, allocations: 202.1 kB / 358.5 MB, free: 12.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006671/0.0103, allocations: 363.1 kB / 358.8 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001012/0.01132, allocations: 1.169 MB / 360 MB, free: 11.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005575/0.01189, allocations: 427 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003859/0.01228, allocations: 394.5 kB / 360.8 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003893/0.01268, allocations: 414.1 kB / 361.2 MB, free: 9.938 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001183/0.01281, allocations: 100 kB / 361.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00012/0.01293, allocations: 103.9 kB / 361.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of combineBinaries: time 0.0008481/0.01379, allocations: 1.402 MB / 362.8 MB, free: 8.32 MB / 302.1 MB Notification: Performance of replaceArrayConstructors: time 0.0004206/0.01422, allocations: 0.8542 MB / 363.7 MB, free: 7.453 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.01437, allocations: 159.5 kB / 363.8 MB, free: 7.297 MB / 302.1 MB Notification: Performance of FrontEnd: time 0.0001499/0.01453, allocations: 51.73 kB / 363.9 MB, free: 7.246 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: 171 (171) * Number of variables: 171 (167) Notification: Performance of Bindings: time 0.003162/0.0177, allocations: 3.987 MB / 367.9 MB, free: 3.094 MB / 302.1 MB Notification: Performance of FunctionAlias: time 0.0003968/0.0181, allocations: 394.5 kB / 368.2 MB, free: 2.711 MB / 302.1 MB Notification: Performance of Early Inline: time 0.001853/0.01997, allocations: 2.135 MB / 370.4 MB, free: 0.5352 MB / 302.1 MB Notification: Performance of simplify1: time 0.0001887/0.02016, allocations: 187.8 kB / 370.6 MB, free: 360 kB / 302.1 MB Notification: Performance of Alias: time 0.2128/0.2329, allocations: 3.998 MB / 374.6 MB, free: 15.69 MB / 302.1 MB Notification: Performance of simplify2: time 0.0001973/0.2332, allocations: 123.4 kB / 374.7 MB, free: 15.69 MB / 302.1 MB Notification: Performance of Events: time 0.0005241/0.2337, allocations: 425.3 kB / 375.1 MB, free: 15.62 MB / 302.1 MB Notification: Performance of Detect States: time 0.0008394/0.2346, allocations: 0.7823 MB / 375.9 MB, free: 15.49 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0007638/0.2353, allocations: 0.6983 MB / 376.6 MB, free: 15.28 MB / 302.1 MB Notification: Performance of Causalize: time 0.003683/0.239, allocations: 2.827 MB / 379.4 MB, free: 14.54 MB / 302.1 MB Notification: Performance of After Index Reduction Inline: time 0.001668/0.2407, allocations: 1.693 MB / 381.1 MB, free: 13.89 MB / 302.1 MB Notification: Performance of Inline: time 0.003007/0.2437, allocations: 2.914 MB / 384 MB, free: 12.18 MB / 302.1 MB Notification: Performance of Partitioning: time 0.0001933/0.2439, allocations: 173.4 kB / 384.2 MB, free: 12.07 MB / 302.1 MB Notification: Performance of Cleanup: time 0.000346/0.2443, allocations: 347.5 kB / 384.5 MB, free: 11.87 MB / 302.1 MB Notification: Performance of Causalize: time 0.01675/0.261, allocations: 15.3 MB / 399.8 MB, free: 3.055 MB / 302.1 MB Notification: Performance of Tearing: time 0.001123/0.2622, allocations: 1.508 MB / 401.3 MB, free: 1.609 MB / 302.1 MB Notification: Performance of Initialization: time 1.443e-06/0.2622, allocations: 4 kB / 401.3 MB, free: 1.605 MB / 302.1 MB Notification: Performance of Tearing: time 0.000548/0.2628, allocations: 0.7522 MB / 402.1 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of Categorize: time 3.391e-05/0.2628, allocations: 4 kB / 402.1 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of Solve: time 0.0009216/0.2637, allocations: 489.1 kB / 402.6 MB, free: 492 kB / 302.1 MB Notification: Performance of Jacobian: time 0.001484/0.2652, allocations: 1.306 MB / 403.9 MB, free: 15.22 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_last, fundamentalWaveCurrent.mean1.y_last, fundamentalWaveVoltage.mean2.y_last, fundamentalWaveVoltage.mean1.y_last, 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.0001141/0.2654, allocations: 89.75 kB / 404 MB, free: 15.18 MB / 318.1 MB Notification: Performance of SimCode: time 0.004031/0.2694, allocations: 4.142 MB / 408.1 MB, free: 11.1 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.