Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_ThreePhaseTwoLevel_PWM",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_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 3.2.3+maint.om/package.mo): time 0.0009618/0.0009618, allocations: 180.2 kB / 8.478 MB, free: 1.84 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.06/1.06, allocations: 205.2 MB / 214.1 MB, free: 5.094 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000807/0.000807, allocations: 87.28 kB / 262.1 MB, free: 5.145 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1481/0.1489, allocations: 52.99 MB / 315.1 MB, free: 41.38 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06054/0.2095, allocations: 47.58 MB / 362.7 MB, free: 9.848 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2228/0.4322, allocations: 108.9 MB / 471.5 MB, free: 15.99 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002484/0.4325, allocations: 94.36 kB / 471.6 MB, free: 15.94 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 400 * Number of variables: 400 Notification: Performance of Generate backend data structure: time 0.09513/0.5277, allocations: 36.17 MB / 0.4959 GB, free: 1.555 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.525e-05/0.5277, allocations: 8 kB / 0.4959 GB, free: 1.547 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007533/0.5285, allocations: 233.3 kB / 0.4961 GB, free: 1.316 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002884/0.5314, allocations: 1.376 MB / 0.4974 GB, free: 204 kB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000659/0.5321, allocations: 207.1 kB / 0.4976 GB, free: 15.99 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003572/0.5324, allocations: 95.91 kB / 0.4977 GB, free: 15.9 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003689/0.5361, allocations: 2.364 MB / 0.5 GB, free: 14.38 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003537/0.5397, allocations: 2.341 MB / 0.5023 GB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.559e-05/0.5398, allocations: 0 / 0.5023 GB, free: 12.45 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001545/0.5399, allocations: 4 kB / 0.5023 GB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.171e-05/0.54, allocations: 66.94 kB / 0.5024 GB, free: 12.38 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01393/0.5539, allocations: 7.824 MB / 0.51 GB, free: 4.438 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002382/0.5563, allocations: 1.946 MB / 0.5119 GB, free: 2.48 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001775/0.5581, allocations: 1.339 MB / 0.5132 GB, free: 1.141 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.428e-05/0.5582, allocations: 13.31 kB / 0.5133 GB, free: 1.129 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001542/0.5598, allocations: 1.117 MB / 0.5144 GB, free: 15.98 MB / 378.7 MB Notification: Performance of pre-optimization done (n=143): time 4.008e-06/0.5598, allocations: 0 / 0.5144 GB, free: 15.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=143): time 0.003506/0.5633, allocations: 2.346 MB / 0.5166 GB, free: 13.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001359/0.5635, allocations: 294.3 kB / 0.5169 GB, free: 13.27 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001483/0.565, allocations: 1.06 MB / 0.518 GB, free: 12.2 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001248/0.5651, allocations: 25.7 kB / 0.518 GB, free: 12.17 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004306/0.5655, allocations: 0.5198 MB / 0.5185 GB, free: 11.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000413/0.566, allocations: 433.7 kB / 0.5189 GB, free: 11.21 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.41e-05/0.5661, allocations: 0 / 0.5189 GB, free: 11.21 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.5662, allocations: 373.9 kB / 0.5193 GB, free: 10.84 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001241/0.5675, allocations: 0.9175 MB / 0.5202 GB, free: 9.922 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001428/0.5689, allocations: 1.23 MB / 0.5214 GB, free: 8.566 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001301/0.5702, allocations: 0.9587 MB / 0.5223 GB, free: 7.605 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.781e-06/0.5702, allocations: 0 / 0.5223 GB, free: 7.605 MB / 378.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003835/0.5741, allocations: 2.596 MB / 0.5248 GB, free: 4.988 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.614e-05/0.5741, allocations: 4 kB / 0.5248 GB, free: 4.984 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.5741, allocations: 8 kB / 0.5248 GB, free: 4.977 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001745/0.5759, allocations: 0.7871 MB / 0.5256 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000994/0.5769, allocations: 215.8 kB / 0.5258 GB, free: 3.969 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01027/0.5872, allocations: 9.113 MB / 0.5347 GB, free: 10.51 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002556/0.5898, allocations: 378.5 kB / 0.5351 GB, free: 10.14 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001952/0.59, allocations: 59.98 kB / 0.5351 GB, free: 10.08 MB / 394.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,harmonic.mean1.y,$PRE.harmonic.mean2.y,harmonic.mean2.y,$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.0004147/0.5904, allocations: 210.5 kB / 0.5353 GB, free: 9.863 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002751/0.5907, allocations: 154.1 kB / 0.5355 GB, free: 9.711 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00385/0.5946, allocations: 2.5 MB / 0.5379 GB, free: 7.184 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.343e-05/0.5946, allocations: 12 kB / 0.5379 GB, free: 7.172 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.5946, allocations: 4 kB / 0.5379 GB, free: 7.168 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.408e-05/0.5946, allocations: 11.91 kB / 0.538 GB, free: 7.156 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007601/0.6022, allocations: 4.912 MB / 0.5427 GB, free: 2.188 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.151e-06/0.6023, allocations: 3.984 kB / 0.5428 GB, free: 2.184 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007664/0.603, allocations: 139.8 kB / 0.5429 GB, free: 2.047 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001535/0.6046, allocations: 0.7551 MB / 0.5436 GB, free: 1.285 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001407/0.6047, allocations: 19.98 kB / 0.5436 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0099/0.6147, allocations: 8.893 MB / 0.5523 GB, free: 8.02 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6147, allocations: 4 kB / 0.5523 GB, free: 8.016 MB / 410.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0056/0.6203, allocations: 3.997 MB / 0.5562 GB, free: 3.988 MB / 410.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.007443/0.6278, allocations: 5.896 MB / 0.562 GB, free: 14.06 MB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00112/0.6289, allocations: 490.8 kB / 0.5625 GB, free: 13.56 MB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000342/0.6293, allocations: 15.98 kB / 0.5625 GB, free: 13.55 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002317/0.6316, allocations: 315.7 kB / 0.5628 GB, free: 13.24 MB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006917/0.6323, allocations: 352.8 kB / 0.5631 GB, free: 12.89 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001229/0.6325, allocations: 43.97 kB / 0.5632 GB, free: 12.85 MB / 426.7 MB Notification: Performance of sort global known variables: time 0.001125/0.6336, allocations: 0.7992 MB / 0.5639 GB, free: 12.05 MB / 426.7 MB Notification: Performance of remove unused functions: time 0.002469/0.6361, allocations: 0.5182 MB / 0.5644 GB, free: 11.53 MB / 426.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,harmonic.mean2.y) * 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.0005249/0.6366, allocations: 220.4 kB / 0.5646 GB, free: 11.3 MB / 426.7 MB Notification: Performance of simCode: created initialization part: time 0.004169/0.6408, allocations: 2.698 MB / 0.5673 GB, free: 8.551 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.6408, allocations: 1.75 kB / 0.5673 GB, free: 8.551 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002522/0.6434, allocations: 1.815 MB / 0.5691 GB, free: 6.703 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001629/0.645, allocations: 344.5 kB / 0.5694 GB, free: 6.363 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008524/0.6536, allocations: 3.612 MB / 0.5729 GB, free: 2.703 MB / 426.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001879/0.6555, allocations: 1.811 MB / 0.5747 GB, free: 0.8516 MB / 426.7 MB Notification: Performance of SimCode: time 3.166e-06/0.6555, allocations: 0 / 0.5747 GB, free: 0.8516 MB / 426.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_ThreePhaseTwoLevel_PWM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-05 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_MultiPhaseTwoLevel_ThreePhaseTwoLevel_PWM.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.MultiPhaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)