Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) [: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 4.0.0+maint.om/package.mo): time 0.001103/0.001103, allocations: 187.4 kB / 8.133 MB, free: 2.203 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.144/1.144, allocations: 221.4 MB / 229.9 MB, free: 3.066 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009179/0.000918, allocations: 105.2 kB / 280.8 MB, free: 1.305 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0918/0.09275, allocations: 55.83 MB / 336.6 MB, free: 9.461 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1966/0.2893, allocations: 50.39 MB / 387 MB, free: 37.95 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1098/0.3992, allocations: 109.4 MB / 496.4 MB, free: 9.336 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002239/0.3994, allocations: 91.88 kB / 496.5 MB, free: 9.246 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 402 * Number of variables: 402 Notification: Performance of Generate backend data structure: time 0.2103/0.6097, allocations: 36.58 MB / 0.5206 GB, free: 89.41 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.876e-05/0.6098, allocations: 8 kB / 0.5206 GB, free: 89.41 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008296/0.6106, allocations: 233.3 kB / 0.5208 GB, free: 89.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002805/0.6134, allocations: 1.393 MB / 0.5222 GB, free: 87.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006217/0.6141, allocations: 196.6 kB / 0.5224 GB, free: 87.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004213/0.6145, allocations: 95.98 kB / 0.5224 GB, free: 87.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003633/0.6181, allocations: 2.364 MB / 0.5248 GB, free: 85.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003363/0.6215, allocations: 2.341 MB / 0.527 GB, free: 82.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.81e-05/0.6216, allocations: 3.906 kB / 0.527 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001872/0.6218, allocations: 4 kB / 0.527 GB, free: 82.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.522e-05/0.6218, allocations: 66.95 kB / 0.5271 GB, free: 82.55 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01216/0.634, allocations: 7.824 MB / 0.5348 GB, free: 74.68 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002039/0.636, allocations: 1.934 MB / 0.5366 GB, free: 72.74 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001487/0.6375, allocations: 1.323 MB / 0.5379 GB, free: 71.41 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.367e-05/0.6376, allocations: 21.12 kB / 0.538 GB, free: 71.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001251/0.6389, allocations: 1.121 MB / 0.539 GB, free: 70.25 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 3.607e-06/0.6389, allocations: 0 / 0.539 GB, free: 70.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.002787/0.6417, allocations: 2.334 MB / 0.5413 GB, free: 67.9 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.148e-05/0.6418, allocations: 286.3 kB / 0.5416 GB, free: 67.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.643, allocations: 1.06 MB / 0.5426 GB, free: 66.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001038/0.6431, allocations: 33.7 kB / 0.5427 GB, free: 66.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003011/0.6434, allocations: 0.5235 MB / 0.5432 GB, free: 65.92 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002862/0.6437, allocations: 433.6 kB / 0.5436 GB, free: 65.5 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.779e-05/0.6438, allocations: 0 / 0.5436 GB, free: 65.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.853e-05/0.6439, allocations: 361.9 kB / 0.5439 GB, free: 65.14 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001017/0.6449, allocations: 0.9176 MB / 0.5448 GB, free: 64.22 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001136/0.6461, allocations: 1.214 MB / 0.546 GB, free: 62.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001089/0.6472, allocations: 0.9665 MB / 0.547 GB, free: 61.92 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.6472, allocations: 4 kB / 0.547 GB, free: 61.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003011/0.6502, allocations: 2.577 MB / 0.5495 GB, free: 59.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.6502, allocations: 8 kB / 0.5495 GB, free: 59.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.483e-05/0.6503, allocations: 12.19 kB / 0.5495 GB, free: 59.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001396/0.6517, allocations: 0.7921 MB / 0.5503 GB, free: 58.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008344/0.6525, allocations: 219.6 kB / 0.5505 GB, free: 58.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007797/0.6603, allocations: 9.128 MB / 0.5594 GB, free: 48.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002177/0.6625, allocations: 382.5 kB / 0.5598 GB, free: 48.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001423/0.6627, allocations: 56 kB / 0.5598 GB, free: 48.4 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * Number of states: 0 () * Number of discrete variables: 53 ($PRE.pwm.svPWM.firstTrigger,pwm.svPWM.firstTrigger,$PRE.pwm.svPWM.phiSec,pwm.svPWM.phiSec,$PRE.pwm.svPWM.phiPos,pwm.svPWM.phiPos,$PRE.pwm.svPWM.phiRef,pwm.svPWM.phiRef,$PRE.pwm.svPWM.uRef,pwm.svPWM.uRef,$whenCondition3,$whenCondition2,$PRE.harmonic.mean1.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean2.y_last,$whenCondition4,$whenCondition1,pwm.svPWM.sampleTrigger,$PRE.pwm.svPWM.ka,pwm.svPWM.ka,$PRE.pwm.svPWM.kb,pwm.svPWM.kb,$PRE.pwm.svPWM.ta,pwm.svPWM.ta,$PRE.pwm.svPWM.tb,pwm.svPWM.tb,$PRE.pwm.svPWM.t0,pwm.svPWM.t0,$PRE.pwm.svPWM.T0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (132): * Single equations (assignments): 124 * Array equations: 2 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 15,4 15,4 15} Notification: Performance of prepare postOptimizeDAE: time 0.0003079/0.663, allocations: 211.1 kB / 0.56 GB, free: 48.18 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002232/0.6632, allocations: 154.1 kB / 0.5602 GB, free: 48.03 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002985/0.6662, allocations: 2.496 MB / 0.5626 GB, free: 45.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.6662, allocations: 12 kB / 0.5626 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.6662, allocations: 0 / 0.5626 GB, free: 45.5 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.6663, allocations: 7.969 kB / 0.5626 GB, free: 45.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006065/0.6723, allocations: 4.915 MB / 0.5674 GB, free: 40.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.6723, allocations: 0 / 0.5674 GB, free: 40.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006698/0.673, allocations: 131.8 kB / 0.5675 GB, free: 40.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001298/0.6743, allocations: 0.7666 MB / 0.5683 GB, free: 39.64 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001154/0.6745, allocations: 15.98 kB / 0.5683 GB, free: 39.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007266/0.6817, allocations: 8.892 MB / 0.577 GB, free: 30.4 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.595e-06/0.6817, allocations: 0 / 0.577 GB, free: 30.4 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004075/0.6858, allocations: 4 MB / 0.5809 GB, free: 26.38 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.00545/0.6913, allocations: 5.892 MB / 0.5867 GB, free: 20.47 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007065/0.692, allocations: 486.8 kB / 0.5871 GB, free: 19.97 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00026/0.6923, allocations: 19.89 kB / 0.5871 GB, free: 19.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002068/0.6943, allocations: 315.7 kB / 0.5874 GB, free: 19.64 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005341/0.6949, allocations: 357.2 kB / 0.5878 GB, free: 19.3 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001034/0.695, allocations: 39.98 kB / 0.5878 GB, free: 19.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0008064/0.6958, allocations: 0.8031 MB / 0.5886 GB, free: 18.45 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002021/0.6978, allocations: 0.5183 MB / 0.5891 GB, free: 17.93 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 7 (harmonic.mean1.x,harmonic.mean2.x,integrator.y,filter[1].x[1],filter[1].x[2],filter[2].x[1],filter[2].x[2]) * Number of discrete variables: 39 (pwm.svPWM.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pwm.svPWM.firstTrigger,pwm.svPWM.uRef,pwm.svPWM.phiRef,pwm.svPWM.phiPos,pwm.svPWM.ka,pwm.svPWM.kb,pwm.svPWM.phiSec,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.t0,pwm.svPWM.T0,multiPhase2Level.andCondition_p[1].y,multiPhase2Level.andCondition_p[2].y,multiPhase2Level.andCondition_p[3].y,multiPhase2Level.andCondition_n[1].y,multiPhase2Level.andCondition_n[2].y,multiPhase2Level.andCondition_n[3].y,multiPhase2Level.fire_n[1],multiPhase2Level.fire_n[2],multiPhase2Level.fire_n[3],multiPhase2Level.transistor_p.idealGTOThyristor[1].off,multiPhase2Level.transistor_p.idealGTOThyristor[2].off,multiPhase2Level.transistor_p.idealGTOThyristor[3].off,multiPhase2Level.diode_p.idealDiode[1].off,multiPhase2Level.diode_p.idealDiode[2].off,multiPhase2Level.diode_p.idealDiode[3].off,multiPhase2Level.transistor_n.idealGTOThyristor[1].off,multiPhase2Level.transistor_n.idealGTOThyristor[2].off,multiPhase2Level.transistor_n.idealGTOThyristor[3].off,multiPhase2Level.diode_n.idealDiode[1].off,multiPhase2Level.diode_n.idealDiode[2].off,multiPhase2Level.diode_n.idealDiode[3].off,harmonic.mean1.y_last,harmonic.mean2.y_last) * Number of discrete states: 13 (harmonic.mean1.x,harmonic.mean2.x,pwm.svPWM.T0,pwm.svPWM.t0,pwm.svPWM.ta,pwm.svPWM.tb,pwm.svPWM.phiSec,pwm.svPWM.kb,pwm.svPWM.ka,pwm.svPWM.phiPos,pwm.svPWM.phiRef,pwm.svPWM.uRef,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (82): * Single equations (assignments): 75 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 3 {4 14,4 14,4 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003446/0.6982, allocations: 221.2 kB / 0.5893 GB, free: 17.71 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002927/0.7011, allocations: 2.691 MB / 0.5919 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.7011, allocations: 4 kB / 0.592 GB, free: 14.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001821/0.703, allocations: 1.801 MB / 0.5937 GB, free: 13.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00124/0.7042, allocations: 366.5 kB / 0.5941 GB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006645/0.7109, allocations: 3.628 MB / 0.5976 GB, free: 9.105 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001295/0.7122, allocations: 1.818 MB / 0.5994 GB, free: 7.25 MB / 378.7 MB Notification: Performance of SimCode: time 3.5e-07/0.7122, allocations: 0 / 0.5994 GB, free: 7.25 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-05 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)