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.001333/0.001334, allocations: 202.4 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.5/1.5, allocations: 225.6 MB / 234.8 MB, free: 3.293 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009726/0.0009727, allocations: 98.02 kB / 286.7 MB, free: 5.277 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.116e-05/2.12e-05, allocations: 4 kB / 343.8 MB, free: 8.207 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1138/0.1138, allocations: 51.48 MB / 395.3 MB, free: 4.688 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3482/0.4621, allocations: 110.3 MB / 0.4937 GB, free: 15.01 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002799/0.4624, allocations: 90.31 kB / 0.4938 GB, free: 14.96 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09463/0.557, allocations: 35.38 MB / 0.5283 GB, free: 0.543 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.492e-06/0.5571, allocations: 0 / 0.5283 GB, free: 0.543 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0002391/0.5573, allocations: 51.94 kB / 0.5284 GB, free: 0.4922 MB / 394.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.007291/0.5646, allocations: 2.163 MB / 0.5305 GB, free: 14.26 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.751e-05/0.5647, allocations: 12.03 kB / 0.5305 GB, free: 14.25 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001909/0.5666, allocations: 285.2 kB / 0.5308 GB, free: 13.97 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003696/0.5703, allocations: 1.382 MB / 0.5321 GB, free: 12.53 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006717/0.571, allocations: 188.6 kB / 0.5323 GB, free: 12.34 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006175/0.5717, allocations: 92 kB / 0.5324 GB, free: 12.25 MB / 410.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.004836/0.5765, allocations: 2.31 MB / 0.5346 GB, free: 9.938 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005178/0.5817, allocations: 2.291 MB / 0.5369 GB, free: 7.523 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.191e-05/0.5818, allocations: 7.938 kB / 0.5369 GB, free: 7.516 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003223/0.5822, allocations: 11.94 kB / 0.5369 GB, free: 7.504 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001247/0.5823, allocations: 62.95 kB / 0.537 GB, free: 7.441 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0165/0.5988, allocations: 7.714 MB / 0.5445 GB, free: 15.61 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003169/0.602, allocations: 2.044 MB / 0.5465 GB, free: 13.56 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001991/0.604, allocations: 1.296 MB / 0.5478 GB, free: 12.27 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001239/0.6042, allocations: 17.53 kB / 0.5478 GB, free: 12.25 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001754/0.606, allocations: 1.105 MB / 0.5488 GB, free: 11.13 MB / 426.7 MB Notification: Performance of pre-optimization done (n=143): time 3.877e-06/0.606, allocations: 0 / 0.5488 GB, free: 11.13 MB / 426.7 MB Notification: Performance of matching and sorting (n=143): time 0.003973/0.61, allocations: 2.312 MB / 0.5511 GB, free: 8.801 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001549/0.6102, allocations: 290.3 kB / 0.5514 GB, free: 8.457 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002259/0.6124, allocations: 1.049 MB / 0.5524 GB, free: 7.398 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002102/0.6127, allocations: 29.7 kB / 0.5524 GB, free: 7.363 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009918/0.6137, allocations: 0.7073 MB / 0.5531 GB, free: 6.645 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006382/0.6143, allocations: 437.7 kB / 0.5535 GB, free: 6.211 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.6145, allocations: 0 / 0.5535 GB, free: 6.211 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0002154/0.6147, allocations: 369.9 kB / 0.5539 GB, free: 5.844 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001473/0.6162, allocations: 0.8863 MB / 0.5548 GB, free: 4.957 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001717/0.6179, allocations: 1.191 MB / 0.5559 GB, free: 3.641 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001665/0.6196, allocations: 0.9236 MB / 0.5568 GB, free: 2.719 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.796e-05/0.6196, allocations: 4 kB / 0.5568 GB, free: 2.715 MB / 426.7 MB Notification: Performance of matching and sorting (n=190) (initialization): time 0.004311/0.6239, allocations: 2.513 MB / 0.5593 GB, free: 188 kB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.798e-05/0.624, allocations: 33.7 kB / 0.5593 GB, free: 148 kB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.352e-05/0.624, allocations: 11.98 kB / 0.5593 GB, free: 136 kB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001879/0.6259, allocations: 0.7701 MB / 0.5601 GB, free: 15.36 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009707/0.6269, allocations: 223.7 kB / 0.5603 GB, free: 15.14 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01161/0.6385, allocations: 9.69 MB / 0.5698 GB, free: 5.109 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003149/0.6418, allocations: 366.6 kB / 0.5701 GB, free: 4.75 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005635/0.6424, allocations: 55.98 kB / 0.5702 GB, free: 4.695 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.0008343/0.6432, allocations: 210.6 kB / 0.5704 GB, free: 4.48 MB / 442.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.004359/0.6476, allocations: 2.352 MB / 0.5727 GB, free: 2.109 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005949/0.6482, allocations: 150.2 kB / 0.5728 GB, free: 1.961 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2498/0.898, allocations: 2.471 MB / 0.5752 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.461e-05/0.8981, allocations: 12.72 kB / 0.5752 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.492e-06/0.8982, allocations: 2.938 kB / 0.5752 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.046e-05/0.8982, allocations: 6.797 kB / 0.5752 GB, free: 100.1 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007771/0.906, allocations: 4.871 MB / 0.58 GB, free: 99.82 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.16e-06/0.906, allocations: 0 / 0.58 GB, free: 99.82 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006706/0.9067, allocations: 141.8 kB / 0.5801 GB, free: 99.82 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001368/0.9081, allocations: 0.7481 MB / 0.5809 GB, free: 99.8 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001097/0.9082, allocations: 13.56 kB / 0.5809 GB, free: 99.8 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008504/0.9167, allocations: 9.44 MB / 0.5901 GB, free: 96.04 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.989e-06/0.9168, allocations: 3.953 kB / 0.5901 GB, free: 96.03 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004861/0.9216, allocations: 3.928 MB / 0.5939 GB, free: 95.77 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001034/0.9227, allocations: 491.2 kB / 0.5944 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003056/0.923, allocations: 12.88 kB / 0.5944 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002149/0.9252, allocations: 301 kB / 0.5947 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007852/0.926, allocations: 384 kB / 0.5951 GB, free: 95.6 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.9261, allocations: 47.36 kB / 0.5951 GB, free: 95.59 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.001179/0.9273, allocations: 0.7917 MB / 0.5959 GB, free: 95.48 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.9273, allocations: 0 / 0.5959 GB, free: 95.48 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002109/0.9294, allocations: 0.5401 MB / 0.5964 GB, free: 95.45 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.005013/0.9344, allocations: 4.602 MB / 0.6009 GB, free: 94.06 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.003584/0.938, allocations: 2.816 MB / 0.6037 GB, free: 92.75 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.9381, allocations: 0 / 0.6037 GB, free: 92.75 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00213/0.9402, allocations: 1.946 MB / 0.6056 GB, free: 91.71 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001823/0.942, allocations: 378.4 kB / 0.6059 GB, free: 91.64 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009662/0.9517, allocations: 4.01 MB / 0.6098 GB, free: 90.3 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001974/0.9538, allocations: 1.737 MB / 0.6115 GB, free: 89.43 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001717/0.9555, allocations: 346 kB / 0.6119 GB, free: 89.41 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00105/0.9566, allocations: 0.6114 MB / 0.6125 GB, free: 88.93 MB / 442.7 MB Notification: Performance of SimCode: time 2.214e-06/0.9566, allocations: 0 / 0.6125 GB, free: 88.93 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08125/1.038, allocations: 43.6 MB / 0.655 GB, free: 85.72 MB / 442.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000162/1.038, allocations: 198.6 kB / 0.6552 GB, free: 85.52 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.192/4.23, allocations: 0 / 0.6552 GB, free: 85.52 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