Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.002275/0.002274, allocations: 186 kB / 16.4 MB, free: 5.746 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.138/2.138, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001145/0.001145, allocations: 100.9 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003841/0.0003842, allocations: 8 kB / 327.1 MB, free: 96 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3274/0.3278, allocations: 47.56 MB / 374.6 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1417/0.4695, allocations: 85.84 MB / 460.5 MB, free: 10.79 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003583/0.4699, allocations: 91.94 kB / 460.6 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.05711/0.5271, allocations: 12.71 MB / 473.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.166e-06/0.5271, allocations: 0 / 473.3 MB, free: 13.93 MB / 362.7 MB Notification: Performance of Transformations before backend: time 7.132e-05/0.5272, allocations: 16 kB / 473.3 MB, free: 13.91 MB / 362.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.003607/0.5308, allocations: 1.093 MB / 474.4 MB, free: 12.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.5309, allocations: 12.03 kB / 474.4 MB, free: 12.74 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003345/0.5313, allocations: 110.5 kB / 474.5 MB, free: 12.62 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003096/0.5316, allocations: 106.8 kB / 474.6 MB, free: 12.52 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001422/0.533, allocations: 0.5318 MB / 475.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.301e-05/0.5331, allocations: 50 kB / 475.2 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002217/0.5333, allocations: 83.83 kB / 475.3 MB, free: 11.81 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002505/0.5359, allocations: 0.7746 MB / 476.1 MB, free: 11.01 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.403e-05/0.5359, allocations: 11.88 kB / 476.1 MB, free: 11 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/0.5361, allocations: 24 kB / 476.1 MB, free: 10.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.06e-05/0.5361, allocations: 19.95 kB / 476.1 MB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002353/0.5385, allocations: 0.6168 MB / 476.7 MB, free: 10.34 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007015/0.5455, allocations: 2.725 MB / 479.4 MB, free: 7.504 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002075/0.5477, allocations: 0.5865 MB / 480 MB, free: 6.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 8.624e-05/0.5478, allocations: 8.562 kB / 480 MB, free: 6.902 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001408/0.5492, allocations: 469.7 kB / 480.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 3.467e-06/0.5492, allocations: 0 / 480.5 MB, free: 6.426 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.005598/0.5548, allocations: 1.25 MB / 481.8 MB, free: 5.148 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.074e-05/0.5549, allocations: 115.4 kB / 481.9 MB, free: 5.012 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00102/0.556, allocations: 486.2 kB / 482.3 MB, free: 4.531 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001232/0.5561, allocations: 41.7 kB / 482.4 MB, free: 4.484 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003377/0.5565, allocations: 359 kB / 482.7 MB, free: 4.129 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002682/0.5567, allocations: 213 kB / 482.9 MB, free: 3.918 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.637e-05/0.5568, allocations: 16 kB / 483 MB, free: 3.902 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.557, allocations: 342.8 kB / 483.3 MB, free: 3.559 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009786/0.558, allocations: 245.9 kB / 483.5 MB, free: 3.316 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00113/0.5591, allocations: 434.1 kB / 484 MB, free: 2.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001082/0.5602, allocations: 315.8 kB / 484.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.356e-06/0.5603, allocations: 0 / 484.3 MB, free: 2.508 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.002738/0.563, allocations: 0.8409 MB / 485.1 MB, free: 1.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008651/0.5639, allocations: 1.856 MB / 487 MB, free: 15.64 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.922e-05/0.5639, allocations: 11.94 kB / 487 MB, free: 15.63 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008132/0.5648, allocations: 144.8 kB / 487.1 MB, free: 15.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001041/0.5658, allocations: 131.7 kB / 487.2 MB, free: 15.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004478/0.5703, allocations: 2.326 MB / 489.6 MB, free: 12.9 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001135/0.5715, allocations: 91.41 kB / 489.7 MB, free: 12.81 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.592e-05/0.5716, allocations: 35.88 kB / 489.7 MB, free: 12.78 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.321e-05/0.5716, allocations: 4 kB / 489.7 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002608/0.5742, allocations: 0.7694 MB / 490.5 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.336e-05/0.5743, allocations: 4 kB / 490.5 MB, free: 12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006398/0.5749, allocations: 137 kB / 490.6 MB, free: 11.86 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009268/0.5759, allocations: 127.8 kB / 490.7 MB, free: 11.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004429/0.5803, allocations: 2.314 MB / 493 MB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008231/0.5812, allocations: 83.5 kB / 493.1 MB, free: 9.203 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.517e-05/0.5813, allocations: 24 kB / 493.1 MB, free: 9.18 MB / 378.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 () * Number of clocked 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.0007227/0.582, allocations: 317 kB / 493.5 MB, free: 8.859 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.5823, allocations: 71.16 kB / 493.5 MB, free: 8.789 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002826/0.5851, allocations: 0.7762 MB / 494.3 MB, free: 7.996 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.487e-05/0.5852, allocations: 7.953 kB / 494.3 MB, free: 7.988 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.5852, allocations: 4 kB / 494.3 MB, free: 7.984 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.5852, allocations: 7.984 kB / 494.3 MB, free: 7.977 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004401/0.5896, allocations: 1.584 MB / 495.9 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5897, allocations: 0 / 495.9 MB, free: 6.332 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008645/0.5906, allocations: 95.88 kB / 496 MB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006866/0.5913, allocations: 146.8 kB / 496.1 MB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.347e-05/0.5914, allocations: 15.98 kB / 496.2 MB, free: 6.078 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004413/0.5958, allocations: 2.329 MB / 498.5 MB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5959, allocations: 0 / 498.5 MB, free: 3.617 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003965/0.5998, allocations: 1.198 MB / 499.7 MB, free: 2.402 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005019/0.6004, allocations: 208.1 kB / 499.9 MB, free: 2.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001673/0.6006, allocations: 19.98 kB / 499.9 MB, free: 2.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008282/0.6014, allocations: 51.97 kB / 500 MB, free: 2.109 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002662/0.6017, allocations: 68.45 kB / 0.4883 GB, free: 2.039 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.663e-05/0.6018, allocations: 27.98 kB / 0.4883 GB, free: 2.012 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007266/0.6025, allocations: 366.8 kB / 0.4887 GB, free: 1.656 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.6025, allocations: 0 / 0.4887 GB, free: 1.656 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001684/0.6042, allocations: 359 kB / 0.489 GB, free: 1.305 MB / 378.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) * Number of clocked states: 0 () * 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.2709/0.8752, allocations: 1.778 MB / 0.4908 GB, free: 105.1 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.005143/0.8804, allocations: 1.518 MB / 0.4922 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.097e-05/0.8804, allocations: 4.5 kB / 0.4922 GB, free: 104.7 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001496/0.8819, allocations: 0.5351 MB / 0.4928 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000949/0.8829, allocations: 108.2 kB / 0.4929 GB, free: 104.6 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005303/0.8882, allocations: 5.249 MB / 0.498 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005914/0.8889, allocations: 0.9747 MB / 0.499 GB, free: 99.67 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006426/0.8895, allocations: 272.2 kB / 0.4992 GB, free: 99.66 MB / 378.7 MB Notification: Performance of SimCode: time 1.212e-06/0.8896, allocations: 1.156 kB / 0.4992 GB, free: 99.66 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.9/3.79, allocations: 14.92 MB / 0.5138 GB, free: 96.28 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat