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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001101/0.001102, allocations: 196.7 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.489/1.489, allocations: 225.4 MB / 240.1 MB, free: 15.11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009371/0.0009371, allocations: 91.06 kB / 292.1 MB, free: 5.883 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.748e-05/3.78e-05, allocations: 4 kB / 350.7 MB, free: 2.418 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1031/0.1032, allocations: 51.48 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3709/0.4741, allocations: 110.9 MB / 0.501 GB, free: 10.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002724/0.4744, allocations: 93.69 kB / 0.5011 GB, free: 10.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09745/0.5719, allocations: 35.76 MB / 0.536 GB, free: 8.316 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.572, allocations: 0 / 0.536 GB, free: 8.316 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.000251/0.5722, allocations: 55.92 kB / 0.5361 GB, free: 8.262 MB / 410.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.006691/0.5789, allocations: 2.162 MB / 0.5382 GB, free: 6.035 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.219e-05/0.579, allocations: 8.031 kB / 0.5382 GB, free: 6.027 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008527/0.5799, allocations: 240.1 kB / 0.5384 GB, free: 5.781 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001534/0.5814, allocations: 289.2 kB / 0.5387 GB, free: 5.496 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003942/0.5854, allocations: 1.374 MB / 0.5401 GB, free: 4.066 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007916/0.5862, allocations: 248.6 kB / 0.5403 GB, free: 3.816 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006575/0.5869, allocations: 152 kB / 0.5404 GB, free: 3.668 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006283/0.5932, allocations: 2.514 MB / 0.5429 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.009e-05/0.5932, allocations: 0 / 0.5429 GB, free: 1.027 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003379/0.5936, allocations: 71.98 kB / 0.543 GB, free: 0.957 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.748e-05/0.5937, allocations: 70.89 kB / 0.543 GB, free: 0.8867 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004612/0.5983, allocations: 2.424 MB / 0.5454 GB, free: 14.45 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01756/0.6159, allocations: 8.056 MB / 0.5533 GB, free: 6.266 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003066/0.619, allocations: 1.974 MB / 0.5552 GB, free: 4.273 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001909/0.621, allocations: 1.333 MB / 0.5565 GB, free: 2.945 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001/0.6211, allocations: 21.3 kB / 0.5565 GB, free: 2.926 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00158/0.6227, allocations: 1.139 MB / 0.5576 GB, free: 1.766 MB / 426.7 MB Notification: Performance of pre-optimization done (n=141): time 4.078e-06/0.6227, allocations: 0 / 0.5576 GB, free: 1.766 MB / 426.7 MB Notification: Performance of matching and sorting (n=141): time 0.004103/0.6268, allocations: 2.462 MB / 0.56 GB, free: 15.28 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.6269, allocations: 290.2 kB / 0.5603 GB, free: 14.94 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002124/0.6291, allocations: 1.359 MB / 0.5616 GB, free: 13.57 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001432/0.6292, allocations: 57.69 kB / 0.5617 GB, free: 13.51 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006276/0.6299, allocations: 0.6973 MB / 0.5624 GB, free: 12.8 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004/0.6303, allocations: 437.8 kB / 0.5628 GB, free: 12.37 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.059e-05/0.6304, allocations: 39.92 kB / 0.5628 GB, free: 12.33 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001522/0.6305, allocations: 361.9 kB / 0.5632 GB, free: 11.97 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001277/0.6318, allocations: 0.9098 MB / 0.5641 GB, free: 11.06 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001579/0.6334, allocations: 1.222 MB / 0.5653 GB, free: 9.711 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001434/0.6348, allocations: 0.977 MB / 0.5662 GB, free: 8.734 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.141e-06/0.6349, allocations: 0 / 0.5662 GB, free: 8.734 MB / 442.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.004188/0.6391, allocations: 2.686 MB / 0.5688 GB, free: 6.023 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.32e-05/0.6391, allocations: 39.06 kB / 0.5689 GB, free: 5.98 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.704e-05/0.6392, allocations: 15.98 kB / 0.5689 GB, free: 5.965 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00183/0.641, allocations: 0.7867 MB / 0.5697 GB, free: 5.172 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009134/0.6419, allocations: 211.7 kB / 0.5699 GB, free: 4.965 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2761/0.9181, allocations: 9.965 MB / 0.5796 GB, free: 97.65 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002794/0.9209, allocations: 414.2 kB / 0.58 GB, free: 97.65 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002728/0.9212, allocations: 60.75 kB / 0.58 GB, free: 97.65 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 (130): * Single equations (assignments): 122 * 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.0004294/0.9216, allocations: 257.2 kB / 0.5803 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003242/0.922, allocations: 175.6 kB / 0.5805 GB, free: 97.5 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003881/0.9259, allocations: 2.656 MB / 0.583 GB, free: 97.36 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.124e-05/0.9259, allocations: 15.06 kB / 0.5831 GB, free: 97.36 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.337e-06/0.9259, allocations: 3.125 kB / 0.5831 GB, free: 97.36 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.285e-05/0.9259, allocations: 6.516 kB / 0.5831 GB, free: 97.36 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007854/0.9338, allocations: 5.214 MB / 0.5882 GB, free: 96.96 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.576e-06/0.9338, allocations: 1.344 kB / 0.5882 GB, free: 96.96 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006917/0.9345, allocations: 134.4 kB / 0.5883 GB, free: 96.96 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001459/0.936, allocations: 0.7479 MB / 0.589 GB, free: 96.93 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001383/0.9362, allocations: 37.97 kB / 0.5891 GB, free: 96.93 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009411/0.9456, allocations: 9.729 MB / 0.5986 GB, free: 92.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.475e-06/0.9456, allocations: 0.9375 kB / 0.5986 GB, free: 92.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00558/0.9512, allocations: 4.095 MB / 0.6026 GB, free: 91.89 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001178/0.9524, allocations: 0.5029 MB / 0.6031 GB, free: 91.59 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003739/0.9528, allocations: 35.58 kB / 0.6031 GB, free: 91.57 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002197/0.955, allocations: 322.8 kB / 0.6034 GB, free: 91.55 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000759/0.9558, allocations: 374.9 kB / 0.6038 GB, free: 91.48 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/0.956, allocations: 40.33 kB / 0.6038 GB, free: 91.48 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001373/0.9573, allocations: 1.048 MB / 0.6048 GB, free: 91.07 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.9574, allocations: 0 / 0.6048 GB, free: 91.07 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002204/0.9596, allocations: 0.5811 MB / 0.6054 GB, free: 91 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 (81): * Single equations (assignments): 74 * 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.006289/0.9659, allocations: 4.786 MB / 0.6101 GB, free: 88.75 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.00487/0.9708, allocations: 2.915 MB / 0.6129 GB, free: 87.4 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 9.187e-06/0.9708, allocations: 8.359 kB / 0.6129 GB, free: 87.39 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003126/0.974, allocations: 2.005 MB / 0.6149 GB, free: 86.32 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002373/0.9764, allocations: 437.8 kB / 0.6153 GB, free: 86.22 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01087/0.9872, allocations: 4.218 MB / 0.6194 GB, free: 84.8 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002234/0.9895, allocations: 1.731 MB / 0.6211 GB, free: 83.92 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.002472/0.992, allocations: 360.1 kB / 0.6214 GB, free: 83.9 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001537/0.9936, allocations: 0.6212 MB / 0.622 GB, free: 83.42 MB / 442.7 MB Notification: Performance of SimCode: time 1.953e-06/0.9936, allocations: 1.031 kB / 0.622 GB, free: 83.42 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1212/1.115, allocations: 49.18 MB / 0.6701 GB, free: 67.34 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002221/1.115, allocations: 227.1 kB / 0.6703 GB, free: 67.11 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.318/4.433, allocations: 0 / 0.6703 GB, free: 67.11 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) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.PolyphaseTwoLevel.ThreePhaseTwoLevel_PWM_res.mat does not exist to compare? outputFormat=mat