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.001077/0.001077, allocations: 198.6 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 227.2 MB / 245 MB, free: 7.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008328/0.0008329, allocations: 99.2 kB / 297.2 MB, free: 6.184 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002304/0.0002304, allocations: 4 kB / 358 MB, free: 9.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2148/0.215, allocations: 51.49 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3271/0.5421, allocations: 111 MB / 0.5083 GB, free: 40.81 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.5424, allocations: 94.16 kB / 0.5084 GB, free: 40.81 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.07902/0.6215, allocations: 35.75 MB / 0.5433 GB, free: 37.7 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.843e-06/0.6215, allocations: 7.906 kB / 0.5433 GB, free: 37.7 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000119/0.6216, allocations: 54.98 kB / 0.5434 GB, free: 37.68 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.004359/0.626, allocations: 2.399 MB / 0.5457 GB, free: 36.55 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.917e-05/0.626, allocations: 11.81 kB / 0.5457 GB, free: 36.55 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002849/0.6263, allocations: 250.7 kB / 0.5459 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007111/0.627, allocations: 284.6 kB / 0.5462 GB, free: 36.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002283/0.6293, allocations: 1.391 MB / 0.5476 GB, free: 35.93 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000546/0.6299, allocations: 249 kB / 0.5478 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002049/0.6301, allocations: 151.6 kB / 0.548 GB, free: 35.89 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005553/0.6357, allocations: 3.025 MB / 0.5509 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.679e-05/0.6357, allocations: 11.38 kB / 0.5509 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001581/0.6359, allocations: 72.89 kB / 0.551 GB, free: 35.2 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.935e-05/0.6359, allocations: 68.39 kB / 0.5511 GB, free: 35.19 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0081/0.644, allocations: 3.423 MB / 0.5544 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01184/0.6559, allocations: 8.06 MB / 0.5623 GB, free: 30.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0052/0.6611, allocations: 2.491 MB / 0.5647 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.331e-05/0.6612, allocations: 20.92 kB / 0.5647 GB, free: 30.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003954/0.6652, allocations: 1.655 MB / 0.5663 GB, free: 29.8 MB / 378.7 MB Notification: Performance of pre-optimization done (n=141): time 3.256e-06/0.6652, allocations: 0 / 0.5663 GB, free: 29.8 MB / 378.7 MB Notification: Performance of matching and sorting (n=141): time 0.01561/0.6808, allocations: 6.095 MB / 0.5723 GB, free: 27.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.344e-05/0.6809, allocations: 293.3 kB / 0.5726 GB, free: 26.75 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001703/0.6826, allocations: 1.369 MB / 0.5739 GB, free: 26.02 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000122/0.6828, allocations: 57.3 kB / 0.574 GB, free: 25.96 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004582/0.6832, allocations: 0.6947 MB / 0.5746 GB, free: 25.36 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002835/0.6835, allocations: 442.4 kB / 0.5751 GB, free: 24.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.515e-05/0.6836, allocations: 27.84 kB / 0.5751 GB, free: 24.96 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.6837, allocations: 368.5 kB / 0.5754 GB, free: 24.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003648/0.6874, allocations: 1.411 MB / 0.5768 GB, free: 23.45 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003547/0.6909, allocations: 1.733 MB / 0.5785 GB, free: 21.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003474/0.6944, allocations: 1.476 MB / 0.58 GB, free: 20.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.274e-06/0.6944, allocations: 0 / 0.58 GB, free: 20.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=188) (initialization): time 0.008183/0.7026, allocations: 3.697 MB / 0.5836 GB, free: 16.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.855e-05/0.7027, allocations: 33.7 kB / 0.5836 GB, free: 16.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.289e-05/0.7027, allocations: 8 kB / 0.5836 GB, free: 16.35 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001416/0.7042, allocations: 0.7622 MB / 0.5843 GB, free: 15.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008128/0.705, allocations: 231.6 kB / 0.5846 GB, free: 15.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008259/0.7132, allocations: 9.749 MB / 0.5941 GB, free: 5.203 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002236/0.7155, allocations: 410.2 kB / 0.5945 GB, free: 4.801 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00011/0.7156, allocations: 59.98 kB / 0.5945 GB, free: 4.742 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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (136): * Single equations (assignments): 128 * 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 13,4 13,4 13} Notification: Performance of prepare postOptimizeDAE: time 0.001117/0.7167, allocations: 0.7567 MB / 0.5953 GB, free: 3.973 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002095/0.717, allocations: 169.9 kB / 0.5954 GB, free: 3.805 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007948/0.7249, allocations: 3.665 MB / 0.599 GB, free: 108 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.043e-06/0.7249, allocations: 12 kB / 0.599 GB, free: 96 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.415e-06/0.7249, allocations: 0 / 0.599 GB, free: 96 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.001e-05/0.725, allocations: 11.88 kB / 0.599 GB, free: 84 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01258/0.7375, allocations: 5.845 MB / 0.6048 GB, free: 10.16 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.534e-06/0.7376, allocations: 4 kB / 0.6048 GB, free: 10.15 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006745/0.7382, allocations: 143.8 kB / 0.6049 GB, free: 10.01 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001557/0.7398, allocations: 0.7425 MB / 0.6056 GB, free: 9.262 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001344/0.74, allocations: 35.94 kB / 0.6057 GB, free: 9.227 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01114/0.7511, allocations: 9.743 MB / 0.6152 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.703e-06/0.7511, allocations: 0 / 0.6152 GB, free: 15.09 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0139/0.765, allocations: 5.604 MB / 0.6206 GB, free: 9.453 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001264/0.7663, allocations: 0.5025 MB / 0.6211 GB, free: 8.93 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004546/0.7668, allocations: 39.98 kB / 0.6212 GB, free: 8.891 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00228/0.7691, allocations: 315.6 kB / 0.6215 GB, free: 8.582 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007586/0.7699, allocations: 376.8 kB / 0.6218 GB, free: 8.215 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001233/0.77, allocations: 39.98 kB / 0.6219 GB, free: 8.176 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001907/0.7719, allocations: 1.067 MB / 0.6229 GB, free: 7.109 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.7719, allocations: 0 / 0.6229 GB, free: 7.109 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002082/0.774, allocations: 0.5811 MB / 0.6235 GB, free: 6.527 MB / 410.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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (84): * Single equations (assignments): 77 * 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 13,4 13,4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.01464/0.7887, allocations: 6.296 MB / 0.6296 GB, free: 184 kB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0096/0.7983, allocations: 3.902 MB / 0.6334 GB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created event and clocks part: time 5.76e-06/0.7983, allocations: 0 / 0.6334 GB, free: 12.21 MB / 426.7 MB Notification: Performance of simCode: created simulation system equations: time 0.005248/0.8036, allocations: 2.509 MB / 0.6359 GB, free: 9.656 MB / 426.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001957/0.8056, allocations: 449.3 kB / 0.6363 GB, free: 9.223 MB / 426.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01506/0.8206, allocations: 11.41 MB / 0.6475 GB, free: 13.59 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00155/0.8222, allocations: 1.733 MB / 0.6491 GB, free: 11.82 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.001243/0.8235, allocations: 380.7 kB / 0.6495 GB, free: 11.44 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009886/0.8245, allocations: 0.6203 MB / 0.6501 GB, free: 10.82 MB / 442.7 MB Notification: Performance of SimCode: time 5e-06/0.8245, allocations: 0 / 0.6501 GB, free: 10.82 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2601/1.085, allocations: 48.21 MB / 0.6972 GB, free: 135.5 MB / 458.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001711/1.085, allocations: 255.8 kB / 0.6974 GB, free: 135.2 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.166/4.251, allocations: 7.281 kB / 0.6974 GB, free: 135.2 MB / 458.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