Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001029/0.001029, allocations: 198.5 kB / 8.539 MB, free: 1.824 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.135/1.135, allocations: 225.5 MB / 234.4 MB, free: 3.398 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008607/0.0008607, allocations: 98.25 kB / 286.3 MB, free: 5.211 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09292/0.09381, allocations: 56.91 MB / 343.2 MB, free: 8.645 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08335/0.1772, allocations: 51.48 MB / 394.7 MB, free: 5.098 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2343/0.4116, allocations: 110.2 MB / 0.4931 GB, free: 15.34 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002045/0.4118, allocations: 93.69 kB / 0.4932 GB, free: 15.29 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.0939/0.5057, allocations: 37.23 MB / 0.5295 GB, free: 15.12 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.431e-05/0.5057, allocations: 8 kB / 0.5295 GB, free: 15.11 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00124/0.507, allocations: 293.2 kB / 0.5298 GB, free: 14.82 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002854/0.5099, allocations: 1.394 MB / 0.5312 GB, free: 13.37 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000644/0.5105, allocations: 204.6 kB / 0.5314 GB, free: 13.16 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000334/0.5109, allocations: 92 kB / 0.5314 GB, free: 13.07 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.003803/0.5147, allocations: 2.36 MB / 0.5337 GB, free: 10.71 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00357/0.5183, allocations: 2.332 MB / 0.536 GB, free: 8.254 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.716e-05/0.5183, allocations: 4 kB / 0.536 GB, free: 8.25 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001629/0.5185, allocations: 11.98 kB / 0.536 GB, free: 8.238 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.607e-05/0.5186, allocations: 70.86 kB / 0.5361 GB, free: 8.168 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01409/0.5327, allocations: 7.819 MB / 0.5437 GB, free: 240 kB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002489/0.5352, allocations: 1.934 MB / 0.5456 GB, free: 14.29 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001779/0.537, allocations: 1.327 MB / 0.5469 GB, free: 12.97 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.816e-05/0.5371, allocations: 17.25 kB / 0.5469 GB, free: 12.95 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001485/0.5386, allocations: 1.121 MB / 0.548 GB, free: 11.81 MB / 426.7 MB Notification: Performance of pre-optimization done (n=143): time 3.497e-06/0.5386, allocations: 0 / 0.548 GB, free: 11.81 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.003366/0.542, allocations: 2.342 MB / 0.5503 GB, free: 9.453 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001142/0.5421, allocations: 290.3 kB / 0.5506 GB, free: 9.109 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001408/0.5435, allocations: 1.065 MB / 0.5516 GB, free: 8.035 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001312/0.5437, allocations: 33.7 kB / 0.5517 GB, free: 7.996 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003948/0.5441, allocations: 0.5277 MB / 0.5522 GB, free: 7.457 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004032/0.5445, allocations: 441.6 kB / 0.5526 GB, free: 7.02 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.912e-05/0.5446, allocations: 0 / 0.5526 GB, free: 7.02 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001328/0.5447, allocations: 361.9 kB / 0.553 GB, free: 6.66 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.546, allocations: 0.9137 MB / 0.5538 GB, free: 5.746 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001463/0.5474, allocations: 1.222 MB / 0.555 GB, free: 4.398 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001302/0.5488, allocations: 0.9548 MB / 0.556 GB, free: 3.445 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.564e-06/0.5488, allocations: 4 kB / 0.556 GB, free: 3.441 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.003625/0.5524, allocations: 2.584 MB / 0.5585 GB, free: 0.8359 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.5524, allocations: 7.984 kB / 0.5585 GB, free: 0.8281 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.806e-05/0.5525, allocations: 12 kB / 0.5585 GB, free: 0.8164 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001654/0.5541, allocations: 0.7936 MB / 0.5593 GB, free: 16 kB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009154/0.5551, allocations: 215.8 kB / 0.5595 GB, free: 15.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009821/0.5649, allocations: 9.11 MB / 0.5684 GB, free: 6.355 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002399/0.5673, allocations: 382.7 kB / 0.5688 GB, free: 5.98 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001545/0.5675, allocations: 52 kB / 0.5688 GB, free: 5.93 MB / 442.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.0003698/0.5679, allocations: 222.4 kB / 0.569 GB, free: 5.703 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002363/0.5681, allocations: 150.2 kB / 0.5692 GB, free: 5.555 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003637/0.5717, allocations: 2.496 MB / 0.5716 GB, free: 3.035 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.226e-05/0.5718, allocations: 12 kB / 0.5716 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.365e-06/0.5718, allocations: 0 / 0.5716 GB, free: 3.023 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.418e-05/0.5718, allocations: 11.88 kB / 0.5716 GB, free: 3.012 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1505/0.7223, allocations: 4.919 MB / 0.5764 GB, free: 85.13 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.653e-06/0.7224, allocations: 0 / 0.5764 GB, free: 85.13 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007119/0.7231, allocations: 136 kB / 0.5766 GB, free: 85.13 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001345/0.7245, allocations: 0.7592 MB / 0.5773 GB, free: 85.11 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000125/0.7246, allocations: 17.12 kB / 0.5773 GB, free: 85.11 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007606/0.7322, allocations: 8.884 MB / 0.586 GB, free: 81.35 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.7322, allocations: 8.406 kB / 0.586 GB, free: 81.35 MB / 442.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.004217/0.7365, allocations: 3.995 MB / 0.5899 GB, free: 81.16 MB / 442.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.005673/0.7421, allocations: 5.888 MB / 0.5957 GB, free: 80.52 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008074/0.743, allocations: 496 kB / 0.5961 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002825/0.7433, allocations: 17.62 kB / 0.5961 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002164/0.7454, allocations: 318.7 kB / 0.5964 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005791/0.746, allocations: 347.3 kB / 0.5968 GB, free: 80.34 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.7462, allocations: 38.19 kB / 0.5968 GB, free: 80.34 MB / 442.7 MB Notification: Performance of sort global known variables: time 0.0008934/0.7471, allocations: 0.806 MB / 0.5976 GB, free: 80.23 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.00216/0.7492, allocations: 0.5311 MB / 0.5981 GB, free: 80.2 MB / 442.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.0003736/0.7496, allocations: 216.1 kB / 0.5983 GB, free: 80.11 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003008/0.7526, allocations: 2.711 MB / 0.601 GB, free: 79.68 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.7527, allocations: 0 / 0.601 GB, free: 79.68 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001866/0.7545, allocations: 1.798 MB / 0.6027 GB, free: 79.33 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001264/0.7558, allocations: 360.5 kB / 0.6031 GB, free: 79.32 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007064/0.7629, allocations: 3.63 MB / 0.6066 GB, free: 78.68 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001367/0.7643, allocations: 1.818 MB / 0.6084 GB, free: 77.95 MB / 442.7 MB Notification: Performance of SimCode: time 4.81e-07/0.7643, allocations: 0 / 0.6084 GB, free: 77.95 MB / 442.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-05 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_PolyphaseTwoLevel_ThreePhaseTwoLevel_PWM.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM.pipe 2>&1)