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_RL.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_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") translateModel(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,tolerance=1e-06,outputFormat="empty",numberOfIntervals=1000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL") [: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.001063/0.001063, allocations: 193.5 kB / 8.137 MB, free: 2.164 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.067/1.067, allocations: 194.2 MB / 202.8 MB, free: 8.672 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.001753/0.001753, allocations: 119 kB / 247.7 MB, free: 6.434 MB / 202.7 MB Notification: Performance of FrontEnd - loaded program: time 6.002e-06/6.112e-06, allocations: 0 / 297.6 MB, free: 8.035 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07534/0.07536, allocations: 44.48 MB / 342.1 MB, free: 11.45 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2067/0.2822, allocations: 79.03 MB / 421.1 MB, free: 16.2 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002844/0.2825, allocations: 87.44 kB / 421.2 MB, free: 16.16 MB / 314.7 MB Notification: Performance of FrontEnd: time 0.03119/0.3137, allocations: 11.74 MB / 432.9 MB, free: 6.535 MB / 314.7 MB Notification: Performance of Transformations before backend: time 5.023e-05/0.3138, allocations: 23.38 kB / 433 MB, free: 6.516 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: 168 * Number of variables: 168 Notification: Performance of Generate backend data structure: time 0.001937/0.3157, allocations: 0.9923 MB / 433.9 MB, free: 5.516 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.308e-05/0.3158, allocations: 12.03 kB / 434 MB, free: 5.504 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002582/0.3161, allocations: 94.88 kB / 434.1 MB, free: 5.41 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008491/0.3169, allocations: 0.5139 MB / 434.6 MB, free: 4.938 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.901e-05/0.317, allocations: 23.98 kB / 434.6 MB, free: 4.914 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001098/0.3171, allocations: 47.25 kB / 434.6 MB, free: 4.871 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008774/0.318, allocations: 455.3 kB / 435.1 MB, free: 4.605 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000961/0.3189, allocations: 0.612 MB / 435.7 MB, free: 4.133 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.613e-05/0.319, allocations: 3.906 kB / 435.7 MB, free: 4.129 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.848e-05/0.3191, allocations: 11.55 kB / 435.7 MB, free: 4.121 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.39e-05/0.3191, allocations: 16 kB / 435.7 MB, free: 4.105 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003534/0.3226, allocations: 2.543 MB / 438.3 MB, free: 2.023 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003797/0.323, allocations: 259.5 kB / 438.5 MB, free: 1.859 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003508/0.3234, allocations: 253 kB / 438.8 MB, free: 1.703 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.505e-05/0.3234, allocations: 12.03 kB / 438.8 MB, free: 1.695 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005112/0.324, allocations: 355.2 kB / 439.1 MB, free: 1.434 MB / 314.7 MB Notification: Performance of pre-optimization done (n=69): time 2.344e-06/0.324, allocations: 0 / 439.1 MB, free: 1.434 MB / 314.7 MB Notification: Performance of matching and sorting (n=69): time 0.0009146/0.3249, allocations: 0.5405 MB / 439.7 MB, free: 1.035 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.755e-05/0.3249, allocations: 123.1 kB / 439.8 MB, free: 0.8945 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003706/0.3253, allocations: 384 kB / 440.2 MB, free: 0.5977 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 5.057e-05/0.3254, allocations: 37 kB / 440.2 MB, free: 0.5586 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001149/0.3255, allocations: 249.1 kB / 440.4 MB, free: 344 kB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001241/0.3256, allocations: 213.4 kB / 440.6 MB, free: 156 kB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.345e-05/0.3257, allocations: 0 / 440.6 MB, free: 156 kB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001435/0.3258, allocations: 369.4 kB / 441 MB, free: 15.81 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003455/0.3262, allocations: 174.5 kB / 441.2 MB, free: 15.71 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004133/0.3266, allocations: 359.3 kB / 441.5 MB, free: 15.39 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003587/0.327, allocations: 219.4 kB / 441.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.849e-06/0.327, allocations: 4 kB / 441.7 MB, free: 15.24 MB / 330.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001093/0.3281, allocations: 0.6398 MB / 442.4 MB, free: 14.76 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005538/0.3287, allocations: 1.829 MB / 444.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.134e-05/0.3287, allocations: 8 kB / 444.2 MB, free: 12.82 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004815/0.3292, allocations: 141.9 kB / 444.4 MB, free: 12.71 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006415/0.3298, allocations: 133 kB / 444.5 MB, free: 12.59 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002384/0.3322, allocations: 2.118 MB / 446.6 MB, free: 10.71 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005579/0.3328, allocations: 79.55 kB / 446.7 MB, free: 10.63 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.287e-05/0.3329, allocations: 31.56 kB / 446.7 MB, free: 10.61 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.502e-06/0.3329, allocations: 4 kB / 446.7 MB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000948/0.3338, allocations: 0.5527 MB / 447.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.572e-06/0.3338, allocations: 8.062 kB / 447.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003732/0.3342, allocations: 135.7 kB / 447.4 MB, free: 10.11 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005142/0.3348, allocations: 127.4 kB / 447.5 MB, free: 9.988 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002215/0.337, allocations: 2.111 MB / 449.7 MB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005041/0.3375, allocations: 67.66 kB / 449.7 MB, free: 8.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.049e-05/0.3376, allocations: 30.62 kB / 449.7 MB, free: 8.02 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 (74): * Single equations (assignments): 72 * 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 13} Notification: Performance of prepare postOptimizeDAE: time 0.0001927/0.3378, allocations: 143.7 kB / 449.9 MB, free: 7.875 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000108/0.3379, allocations: 67.16 kB / 450 MB, free: 7.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001054/0.3389, allocations: 0.5777 MB / 450.5 MB, free: 7.41 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.514e-06/0.339, allocations: 8 kB / 450.5 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.923e-06/0.339, allocations: 0 / 450.5 MB, free: 7.402 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.777e-06/0.339, allocations: 3.984 kB / 450.5 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/0.3409, allocations: 1.317 MB / 451.9 MB, free: 6.406 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.3409, allocations: 5.906 kB / 451.9 MB, free: 6.402 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005504/0.3415, allocations: 99.38 kB / 452 MB, free: 6.309 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004161/0.3419, allocations: 135.2 kB / 452.1 MB, free: 6.215 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.242e-05/0.342, allocations: 7.984 kB / 452.1 MB, free: 6.207 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002453/0.3444, allocations: 2.09 MB / 454.2 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.886e-06/0.3444, allocations: 0 / 454.2 MB, free: 4.352 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.00153/0.346, allocations: 0.9584 MB / 455.1 MB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002803/0.3463, allocations: 198.1 kB / 455.3 MB, free: 3.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001099/0.3464, allocations: 15.2 kB / 455.4 MB, free: 3.488 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005071/0.3469, allocations: 43.97 kB / 455.4 MB, free: 3.445 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000158/0.3471, allocations: 57.25 kB / 455.5 MB, free: 3.402 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.468e-05/0.3471, allocations: 26.36 kB / 455.5 MB, free: 3.383 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003558/0.3475, allocations: 285.1 kB / 455.8 MB, free: 3.172 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001228/0.3487, allocations: 322 kB / 456.1 MB, free: 2.859 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * 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 (53): * Single equations (assignments): 44 * 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 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002232/0.349, allocations: 133.8 kB / 456.2 MB, free: 2.719 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.002076/0.3511, allocations: 1.152 MB / 457.4 MB, free: 1.82 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3511, allocations: 4.812 kB / 457.4 MB, free: 1.816 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006292/0.3517, allocations: 418.2 kB / 457.8 MB, free: 1.496 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005034/0.3522, allocations: 85.91 kB / 457.9 MB, free: 1.438 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002652/0.3549, allocations: 1.003 MB / 458.9 MB, free: 0.5117 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007319/0.3556, allocations: 1 MB / 459.9 MB, free: 15.49 MB / 346.7 MB Notification: Performance of SimCode: time 6.31e-07/0.3557, allocations: 0 / 459.9 MB, free: 15.49 MB / 346.7 MB Notification: Performance of Templates: time 0.02136/0.377, allocations: 12.32 MB / 472.2 MB, free: 3.211 MB / 346.7 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & ./Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1)