Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001228/0.001228, allocations: 172.9 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.459/1.459, allocations: 205.2 MB / 219.8 MB, free: 14.2 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007652/0.0007652, allocations: 82.7 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.662e-05/2.673e-05, allocations: 7.984 kB / 322.6 MB, free: 17.23 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07953/0.07957, allocations: 47.57 MB / 370.1 MB, free: 1.594 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.28/0.3596, allocations: 85.74 MB / 455.9 MB, free: 7.605 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002274/0.3599, allocations: 94.44 kB / 456 MB, free: 7.551 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03492/0.3949, allocations: 12.69 MB / 468.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.3949, allocations: 0 / 468.7 MB, free: 12.2 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.094e-05/0.395, allocations: 16 kB / 468.7 MB, free: 12.19 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.001936/0.3969, allocations: 0.9998 MB / 469.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.785e-05/0.397, allocations: 8.031 kB / 469.7 MB, free: 11.12 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001614/0.3971, allocations: 114.5 kB / 469.8 MB, free: 11 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001866/0.3973, allocations: 102.8 kB / 469.9 MB, free: 10.89 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009055/0.3982, allocations: 0.5355 MB / 470.4 MB, free: 10.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.879e-05/0.3983, allocations: 54 kB / 470.5 MB, free: 10.26 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001135/0.3984, allocations: 72 kB / 470.5 MB, free: 10.19 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001256/0.3997, allocations: 0.7239 MB / 471.3 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.096e-05/0.3997, allocations: 0 / 471.3 MB, free: 9.441 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.074e-05/0.3998, allocations: 32 kB / 471.3 MB, free: 9.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.676e-05/0.3998, allocations: 19.95 kB / 471.3 MB, free: 9.391 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009032/0.4007, allocations: 499.9 kB / 471.8 MB, free: 8.898 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004139/0.4049, allocations: 2.729 MB / 474.5 MB, free: 6.062 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009487/0.4059, allocations: 0.5094 MB / 475 MB, free: 5.543 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004496/0.4063, allocations: 274.5 kB / 475.3 MB, free: 5.27 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.945e-05/0.4064, allocations: 12.55 kB / 475.3 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007371/0.4071, allocations: 414.5 kB / 475.7 MB, free: 4.84 MB / 346.7 MB Notification: Performance of pre-optimization done (n=69): time 2.625e-06/0.4071, allocations: 0 / 475.7 MB, free: 4.84 MB / 346.7 MB Notification: Performance of matching and sorting (n=69): time 0.001237/0.4084, allocations: 0.6162 MB / 476.4 MB, free: 4.211 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001144/0.4085, allocations: 123.3 kB / 476.5 MB, free: 4.066 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006554/0.4092, allocations: 473 kB / 476.9 MB, free: 3.602 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.522e-05/0.4093, allocations: 41.7 kB / 477 MB, free: 3.555 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002706/0.4095, allocations: 336.4 kB / 477.3 MB, free: 3.219 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001967/0.4097, allocations: 209.1 kB / 477.5 MB, free: 3.012 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.4098, allocations: 16 kB / 477.5 MB, free: 2.996 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001713/0.41, allocations: 374.8 kB / 477.9 MB, free: 2.621 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000354/0.4103, allocations: 197.5 kB / 478.1 MB, free: 2.426 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004989/0.4108, allocations: 364 kB / 478.4 MB, free: 2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004473/0.4113, allocations: 264.9 kB / 478.7 MB, free: 1.734 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.893e-06/0.4113, allocations: 4 kB / 478.7 MB, free: 1.73 MB / 346.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001268/0.4126, allocations: 0.7584 MB / 479.5 MB, free: 0.957 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009096/0.4135, allocations: 1.866 MB / 481.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.114e-05/0.4135, allocations: 4 kB / 481.3 MB, free: 14.94 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005625/0.4141, allocations: 136.8 kB / 481.5 MB, free: 14.8 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005358/0.4146, allocations: 131.8 kB / 481.6 MB, free: 14.67 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002657/0.4173, allocations: 2.299 MB / 483.9 MB, free: 12.23 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006465/0.418, allocations: 87.45 kB / 484 MB, free: 12.15 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.964e-05/0.418, allocations: 31.98 kB / 484 MB, free: 12.12 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.06e-05/0.4181, allocations: 4 kB / 484 MB, free: 12.11 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00115/0.4192, allocations: 0.6793 MB / 484.7 MB, free: 11.43 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.704e-06/0.4192, allocations: 4 kB / 484.7 MB, free: 11.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003752/0.4196, allocations: 149.5 kB / 484.8 MB, free: 11.27 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004809/0.4201, allocations: 123.8 kB / 485 MB, free: 11.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002578/0.4227, allocations: 2.287 MB / 487.2 MB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005678/0.4233, allocations: 87.39 kB / 487.3 MB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.918e-05/0.4233, allocations: 28 kB / 487.4 MB, free: 8.621 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 30 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$whenCondition6,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition5,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,$PRE.signalPWM.zeroOrderHold.ySample,$PRE.signalPWM.sawtooth.T_start,signalPWM.sawtooth.T_start,$PRE.signalPWM.sawtooth.count,signalPWM.sawtooth.count) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (74): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 13} Notification: Performance of prepare postOptimizeDAE: time 0.0002613/0.4236, allocations: 168.7 kB / 487.5 MB, free: 8.449 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001269/0.4237, allocations: 71.16 kB / 487.6 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001247/0.425, allocations: 0.6554 MB / 488.2 MB, free: 7.707 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.194e-05/0.425, allocations: 11.95 kB / 488.3 MB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.914e-06/0.425, allocations: 4 kB / 488.3 MB, free: 7.691 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.465e-06/0.425, allocations: 3.984 kB / 488.3 MB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002178/0.4272, allocations: 1.479 MB / 489.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.427e-06/0.4272, allocations: 96 / 489.7 MB, free: 6.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004412/0.4277, allocations: 95.86 kB / 489.8 MB, free: 6.055 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003692/0.4281, allocations: 142.1 kB / 490 MB, free: 5.914 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.84e-05/0.4281, allocations: 19.98 kB / 490 MB, free: 5.895 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002539/0.4307, allocations: 2.278 MB / 492.3 MB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.824e-06/0.4307, allocations: 0 / 492.3 MB, free: 3.484 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001591/0.4323, allocations: 1.027 MB / 493.3 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002829/0.4326, allocations: 208.1 kB / 493.5 MB, free: 2.215 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.839e-05/0.4327, allocations: 12 kB / 493.5 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004475/0.4331, allocations: 55.95 kB / 493.6 MB, free: 2.148 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001608/0.4333, allocations: 72.45 kB / 493.6 MB, free: 2.078 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.249e-05/0.4334, allocations: 23.98 kB / 493.7 MB, free: 2.055 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005022/0.4339, allocations: 365.6 kB / 494 MB, free: 1.699 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.61e-07/0.4339, allocations: 0 / 494 MB, free: 1.699 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001126/0.435, allocations: 367.1 kB / 494.4 MB, free: 1.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,inductor.i) * Number of discrete variables: 22 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,inverter.andCondition_p.y,inverter.andCondition_n.y,inverter.fire_n,inverter.transistor_p.off,inverter.diode_p.off,inverter.transistor_n.off,inverter.diode_n.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * Number of discrete states: 6 (signalPWM.sawtooth.count,fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 13} Notification: Performance of Backend phase and start with SimCode phase: time 0.001929/0.437, allocations: 1.61 MB / 496 MB, free: 15.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002477/0.4394, allocations: 1.378 MB / 497.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.4395, allocations: 0 / 497.4 MB, free: 14.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007428/0.4402, allocations: 478.6 kB / 497.8 MB, free: 13.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006229/0.4408, allocations: 114.6 kB / 498 MB, free: 13.69 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002754/0.4436, allocations: 1.186 MB / 499.1 MB, free: 12.47 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000595/0.4442, allocations: 0.9677 MB / 0.4884 GB, free: 11.46 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.000559/0.4448, allocations: 125.1 kB / 0.4885 GB, free: 11.34 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003612/0.4452, allocations: 271.3 kB / 0.4888 GB, free: 11.07 MB / 378.7 MB Notification: Performance of SimCode: time 6.21e-07/0.4452, allocations: 0 / 0.4888 GB, free: 11.07 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04076/0.4859, allocations: 17.39 MB / 0.5057 GB, free: 9.648 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002378/0.4862, allocations: 232.1 kB / 0.506 GB, free: 9.41 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.43/2.917, allocations: 0 / 0.506 GB, free: 9.41 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat