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/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.001158/0.001158, allocations: 190.7 kB / 8.136 MB, free: 2.195 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.07/1.07, allocations: 194.2 MB / 202.8 MB, free: 8.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001801/0.001802, allocations: 121.4 kB / 247.7 MB, free: 6.242 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 5.42e-06/5.44e-06, allocations: 0 / 297.6 MB, free: 7.949 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07091/0.07093, allocations: 44.48 MB / 342.1 MB, free: 11.36 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2025/0.2735, allocations: 78.74 MB / 420.8 MB, free: 16.31 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002019/0.2737, allocations: 83 kB / 420.9 MB, free: 16.26 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03005/0.3038, allocations: 11.41 MB / 432.3 MB, free: 6.918 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.507e-05/0.3039, allocations: 23.92 kB / 432.3 MB, free: 6.895 MB / 314.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 162 * Number of variables: 162 Notification: Performance of Generate backend data structure: time 0.001732/0.3056, allocations: 0.9681 MB / 433.3 MB, free: 5.922 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.3057, allocations: 12.03 kB / 433.3 MB, free: 5.91 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002108/0.3059, allocations: 94.86 kB / 433.4 MB, free: 5.816 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007418/0.3067, allocations: 0.4993 MB / 433.9 MB, free: 5.359 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.51e-05/0.3067, allocations: 27.98 kB / 433.9 MB, free: 5.332 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.978e-05/0.3068, allocations: 51.48 kB / 434 MB, free: 5.285 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007877/0.3076, allocations: 445.4 kB / 434.4 MB, free: 5.027 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009008/0.3085, allocations: 0.5816 MB / 435 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.173e-05/0.3085, allocations: 1.219 kB / 435 MB, free: 4.578 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.078e-05/0.3086, allocations: 15.8 kB / 435 MB, free: 4.566 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.35e-05/0.3086, allocations: 16 kB / 435 MB, free: 4.551 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003275/0.3119, allocations: 2.45 MB / 437.5 MB, free: 2.559 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006187/0.3125, allocations: 448.4 kB / 437.9 MB, free: 2.258 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.3129, allocations: 247.1 kB / 438.2 MB, free: 2.109 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.282e-05/0.3129, allocations: 12.44 kB / 438.2 MB, free: 2.098 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005026/0.3135, allocations: 351.2 kB / 438.5 MB, free: 1.836 MB / 314.7 MB Notification: Performance of pre-optimization done (n=67): time 2.946e-06/0.3135, allocations: 0 / 438.5 MB, free: 1.836 MB / 314.7 MB Notification: Performance of matching and sorting (n=67): time 0.0008966/0.3144, allocations: 0.541 MB / 439 MB, free: 1.438 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.3144, allocations: 119 kB / 439.2 MB, free: 1.301 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.3148, allocations: 385.3 kB / 439.5 MB, free: 1.004 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 4.86e-05/0.3148, allocations: 25.7 kB / 439.6 MB, free: 0.9727 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001128/0.315, allocations: 254.7 kB / 439.8 MB, free: 0.7461 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.3151, allocations: 191.3 kB / 440 MB, free: 0.582 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.167e-05/0.3151, allocations: 0 / 440 MB, free: 0.582 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 7.969e-05/0.3152, allocations: 376.7 kB / 440.4 MB, free: 236 kB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002936/0.3155, allocations: 178.3 kB / 440.5 MB, free: 136 kB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003919/0.3159, allocations: 350.2 kB / 440.9 MB, free: 15.81 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003594/0.3163, allocations: 198.9 kB / 441.1 MB, free: 15.7 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.731e-06/0.3163, allocations: 4 kB / 441.1 MB, free: 15.69 MB / 330.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001066/0.3174, allocations: 0.6336 MB / 441.7 MB, free: 15.21 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005977/0.318, allocations: 1.83 MB / 443.5 MB, free: 13.28 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.318, allocations: 4 kB / 443.6 MB, free: 13.27 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004976/0.3185, allocations: 156.4 kB / 443.7 MB, free: 13.16 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005576/0.3191, allocations: 127.7 kB / 443.8 MB, free: 13.04 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002388/0.3215, allocations: 2.066 MB / 445.9 MB, free: 11.2 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005456/0.3221, allocations: 75.66 kB / 446 MB, free: 11.13 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.034e-05/0.3221, allocations: 27.92 kB / 446 MB, free: 11.11 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.3221, allocations: 4 kB / 446 MB, free: 11.1 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009461/0.3231, allocations: 0.5409 MB / 446.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.085e-06/0.3231, allocations: 4 kB / 446.5 MB, free: 10.72 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003999/0.3235, allocations: 147.3 kB / 446.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005126/0.324, allocations: 119.7 kB / 446.8 MB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002278/0.3263, allocations: 2.048 MB / 448.9 MB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005012/0.3268, allocations: 67.5 kB / 448.9 MB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.475e-05/0.3269, allocations: 27.36 kB / 448.9 MB, free: 8.586 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (70): * Single equations (assignments): 68 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of prepare postOptimizeDAE: time 0.000187/0.3271, allocations: 157 kB / 449.1 MB, free: 8.434 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001016/0.3272, allocations: 67.23 kB / 449.2 MB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001039/0.3283, allocations: 0.566 MB / 449.7 MB, free: 7.977 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.252e-06/0.3283, allocations: 8 kB / 449.7 MB, free: 7.969 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.657e-06/0.3283, allocations: 3.984 kB / 449.7 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.313e-06/0.3283, allocations: 0 / 449.7 MB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002026/0.3303, allocations: 1.294 MB / 451 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.715e-06/0.3304, allocations: 0 / 451 MB, free: 6.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004904/0.3309, allocations: 91.25 kB / 451.1 MB, free: 6.91 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004493/0.3313, allocations: 154.1 kB / 451.3 MB, free: 6.801 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.249e-05/0.3314, allocations: 11.61 kB / 451.3 MB, free: 6.793 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002239/0.3336, allocations: 2.039 MB / 453.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.394e-06/0.3336, allocations: 0 / 453.3 MB, free: 4.984 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001351/0.335, allocations: 0.9466 MB / 454.3 MB, free: 4.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002596/0.3353, allocations: 195.2 kB / 454.5 MB, free: 4.145 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001112/0.3354, allocations: 15.02 kB / 454.5 MB, free: 4.133 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000497/0.3359, allocations: 43.97 kB / 454.5 MB, free: 4.09 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001419/0.336, allocations: 57.75 kB / 454.6 MB, free: 4.047 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.022e-05/0.3361, allocations: 23.3 kB / 454.6 MB, free: 4.027 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0002931/0.3364, allocations: 287.1 kB / 454.9 MB, free: 3.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001006/0.3374, allocations: 299.1 kB / 455.2 MB, free: 3.523 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (50): * Single equations (assignments): 41 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001941/0.3376, allocations: 144.4 kB / 455.3 MB, free: 3.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001912/0.3395, allocations: 1.146 MB / 456.5 MB, free: 2.477 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.3396, allocations: 7.312 kB / 456.5 MB, free: 2.473 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006168/0.3402, allocations: 410.7 kB / 456.9 MB, free: 2.156 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004723/0.3407, allocations: 84.81 kB / 457 MB, free: 2.098 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.3431, allocations: 0.9559 MB / 457.9 MB, free: 1.219 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006559/0.3438, allocations: 0.9996 MB / 458.9 MB, free: 204 kB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.3438, allocations: 0 / 458.9 MB, free: 204 kB / 330.7 MB Notification: Performance of Templates: time 0.02119/0.365, allocations: 12.4 MB / 471.3 MB, free: 3.844 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1)