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.001481/0.00148, allocations: 179.2 kB / 8.363 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.018/2.018, allocations: 205.3 MB / 214.1 MB, free: 14.13 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001863/0.001863, allocations: 91.16 kB / 262.1 MB, free: 13.87 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.38e-05/2.43e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3365/0.3365, allocations: 47.57 MB / 362.5 MB, free: 45.85 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1504/0.4869, allocations: 85.08 MB / 447.5 MB, free: 1.18 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003465/0.4874, allocations: 91.03 kB / 447.6 MB, free: 1.094 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.05703/0.5444, allocations: 12.57 MB / 460.2 MB, free: 4.543 MB / 347.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.5445, allocations: 0 / 460.2 MB, free: 4.543 MB / 347.1 MB Notification: Performance of Transformations before backend: time 7.343e-05/0.5446, allocations: 20 kB / 460.2 MB, free: 4.523 MB / 347.1 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.003309/0.5479, allocations: 0.9959 MB / 461.2 MB, free: 3.469 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.396e-05/0.548, allocations: 16.03 kB / 461.2 MB, free: 3.453 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004091/0.5484, allocations: 99.58 kB / 461.3 MB, free: 3.355 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001535/0.5499, allocations: 0.5278 MB / 461.8 MB, free: 2.781 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.076e-05/0.5501, allocations: 24 kB / 461.9 MB, free: 2.758 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.5503, allocations: 51.98 kB / 461.9 MB, free: 2.707 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00157/0.5518, allocations: 459.9 kB / 462.4 MB, free: 2.258 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001773/0.5537, allocations: 0.6224 MB / 463 MB, free: 1.609 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.877e-05/0.5538, allocations: 3.938 kB / 463 MB, free: 1.605 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.69e-05/0.5539, allocations: 0 / 463 MB, free: 1.605 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.802e-05/0.5539, allocations: 25.55 kB / 463 MB, free: 1.582 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006997/0.5609, allocations: 2.577 MB / 465.6 MB, free: 14.91 MB / 363.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.5624, allocations: 0.4944 MB / 466.1 MB, free: 14.41 MB / 363.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006771/0.5631, allocations: 254.5 kB / 466.3 MB, free: 14.16 MB / 363.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.36e-05/0.5632, allocations: 8.562 kB / 466.4 MB, free: 14.15 MB / 363.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00102/0.5643, allocations: 398.2 kB / 466.7 MB, free: 13.74 MB / 363.1 MB Notification: Performance of pre-optimization done (n=69): time 3.306e-06/0.5643, allocations: 0 / 466.7 MB, free: 13.74 MB / 363.1 MB Notification: Performance of matching and sorting (n=69): time 0.001811/0.5661, allocations: 0.5578 MB / 467.3 MB, free: 13.18 MB / 363.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.5662, allocations: 127.4 kB / 467.4 MB, free: 13.02 MB / 363.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007752/0.567, allocations: 389.2 kB / 467.8 MB, free: 12.64 MB / 363.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000114/0.5672, allocations: 33.7 kB / 467.8 MB, free: 12.6 MB / 363.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003654/0.5675, allocations: 366.8 kB / 468.2 MB, free: 12.23 MB / 363.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002778/0.5678, allocations: 201 kB / 468.4 MB, free: 12.04 MB / 363.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.998e-05/0.5679, allocations: 4 kB / 468.4 MB, free: 12.03 MB / 363.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.5681, allocations: 342.8 kB / 468.7 MB, free: 11.69 MB / 363.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005779/0.5687, allocations: 181.3 kB / 468.9 MB, free: 11.52 MB / 363.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007285/0.5694, allocations: 358.5 kB / 469.3 MB, free: 11.09 MB / 363.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000636/0.5701, allocations: 210.1 kB / 469.5 MB, free: 10.89 MB / 363.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.166e-06/0.5701, allocations: 0 / 469.5 MB, free: 10.89 MB / 363.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001844/0.5719, allocations: 0.6165 MB / 470.1 MB, free: 10.26 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009673/0.5729, allocations: 1.861 MB / 471.9 MB, free: 8.254 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.573, allocations: 4 kB / 471.9 MB, free: 8.25 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007841/0.5738, allocations: 151.3 kB / 472.1 MB, free: 8.102 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001076/0.5749, allocations: 131.7 kB / 472.2 MB, free: 7.973 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004143/0.579, allocations: 2.209 MB / 474.4 MB, free: 5.645 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001035/0.5801, allocations: 67.55 kB / 474.5 MB, free: 5.578 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.902e-05/0.5803, allocations: 43.94 kB / 474.5 MB, free: 5.535 MB / 363.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.589e-05/0.5803, allocations: 5.719 kB / 474.5 MB, free: 5.531 MB / 363.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001759/0.582, allocations: 0.5647 MB / 475.1 MB, free: 4.961 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.5821, allocations: 8.031 kB / 475.1 MB, free: 4.953 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006012/0.5827, allocations: 132.8 kB / 475.2 MB, free: 4.82 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009469/0.5837, allocations: 127.7 kB / 475.4 MB, free: 4.695 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004071/0.5878, allocations: 2.172 MB / 477.5 MB, free: 2.414 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007961/0.5886, allocations: 67.55 kB / 477.6 MB, free: 2.348 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.385e-05/0.5887, allocations: 31.98 kB / 477.6 MB, free: 2.316 MB / 363.1 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.0003233/0.589, allocations: 143 kB / 477.8 MB, free: 2.176 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001686/0.5907, allocations: 0.5618 MB / 478.3 MB, free: 1.609 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001516/0.5909, allocations: 71.25 kB / 478.4 MB, free: 1.539 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001804/0.5927, allocations: 0.6042 MB / 479 MB, free: 0.9141 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.665e-05/0.5928, allocations: 8 kB / 479 MB, free: 0.9062 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.308e-06/0.5928, allocations: 0 / 479 MB, free: 0.9062 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.522e-05/0.5928, allocations: 7.938 kB / 479 MB, free: 0.8984 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003298/0.5961, allocations: 1.327 MB / 480.4 MB, free: 15.52 MB / 379.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.021e-05/0.5962, allocations: 3.984 kB / 480.4 MB, free: 15.52 MB / 379.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008894/0.5971, allocations: 99.88 kB / 480.5 MB, free: 15.42 MB / 379.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006244/0.5977, allocations: 124.8 kB / 480.6 MB, free: 15.29 MB / 379.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.988e-05/0.5978, allocations: 7.984 kB / 480.6 MB, free: 15.29 MB / 379.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003912/0.6017, allocations: 2.203 MB / 482.8 MB, free: 12.97 MB / 379.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.44e-06/0.6018, allocations: 0 / 482.8 MB, free: 12.97 MB / 379.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002568/0.6044, allocations: 0.9633 MB / 483.8 MB, free: 12 MB / 379.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004415/0.6049, allocations: 212.1 kB / 484 MB, free: 11.77 MB / 379.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001375/0.605, allocations: 8 kB / 484 MB, free: 11.76 MB / 379.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00082/0.6058, allocations: 43.95 kB / 484 MB, free: 11.72 MB / 379.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002691/0.6061, allocations: 72.39 kB / 484.1 MB, free: 11.64 MB / 379.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.641e-05/0.6062, allocations: 23.98 kB / 484.1 MB, free: 11.62 MB / 379.1 MB Notification: Performance of sorting global known variables: time 0.0005608/0.6068, allocations: 296.1 kB / 484.4 MB, free: 11.33 MB / 379.1 MB Notification: Performance of sort global known variables: time 4.21e-07/0.6068, allocations: 0 / 484.4 MB, free: 11.33 MB / 379.1 MB Notification: Performance of remove unused functions: time 0.001728/0.6085, allocations: 326.9 kB / 484.7 MB, free: 11.01 MB / 379.1 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.002966/0.6115, allocations: 1.535 MB / 486.3 MB, free: 9.449 MB / 379.1 MB Notification: Performance of simCode: created initialization part: time 0.003222/0.6148, allocations: 1.268 MB / 487.5 MB, free: 8.141 MB / 379.1 MB Notification: Performance of simCode: created event and clocks part: time 7.344e-06/0.6149, allocations: 0 / 487.5 MB, free: 8.141 MB / 379.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001114/0.616, allocations: 448.9 kB / 488 MB, free: 7.695 MB / 379.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009063/0.6169, allocations: 91.31 kB / 488 MB, free: 7.609 MB / 379.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004035/0.621, allocations: 1.152 MB / 489.2 MB, free: 6.406 MB / 379.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007886/0.6218, allocations: 0.9703 MB / 490.2 MB, free: 5.41 MB / 379.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007463/0.6226, allocations: 271.3 kB / 490.4 MB, free: 5.145 MB / 379.1 MB Notification: Performance of SimCode: time 1.112e-06/0.6226, allocations: 0 / 490.4 MB, free: 5.145 MB / 379.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.931/3.553, allocations: 14.73 MB / 0.4933 GB, free: 6.426 MB / 395.1 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