Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001047/0.001047, allocations: 180.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.38/1.38, allocations: 223.2 MB / 240.3 MB, free: 10.17 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009052/0.0009051, allocations: 89.98 kB / 291.5 MB, free: 10.71 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002772/0.0002773, allocations: 4 kB / 351.2 MB, free: 15.01 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2287/0.229, allocations: 50.42 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1002/0.3292, allocations: 86.56 MB / 488.2 MB, free: 9.879 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000244/0.3295, allocations: 87.94 kB / 488.2 MB, free: 9.793 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03398/0.3635, allocations: 12.65 MB / 0.4892 GB, free: 13.07 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3635, allocations: 0 / 0.4892 GB, free: 13.07 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.441e-05/0.3636, allocations: 16 kB / 0.4892 GB, free: 13.05 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002244/0.3658, allocations: 1.076 MB / 0.4902 GB, free: 11.91 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.199e-05/0.3659, allocations: 12.03 kB / 0.4902 GB, free: 11.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002091/0.3661, allocations: 110.5 kB / 0.4903 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002064/0.3663, allocations: 98.88 kB / 0.4904 GB, free: 11.68 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009387/0.3673, allocations: 0.5355 MB / 0.491 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.585e-05/0.3673, allocations: 57.98 kB / 0.491 GB, free: 11.05 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001161/0.3675, allocations: 68 kB / 0.4911 GB, free: 10.98 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001398/0.3689, allocations: 0.7693 MB / 0.4918 GB, free: 10.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.488e-05/0.3689, allocations: 3.984 kB / 0.4918 GB, free: 10.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.347e-05/0.369, allocations: 32 kB / 0.4919 GB, free: 10.15 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.504e-05/0.369, allocations: 16 kB / 0.4919 GB, free: 10.14 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001275/0.3703, allocations: 0.5985 MB / 0.4925 GB, free: 9.539 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00401/0.3743, allocations: 2.672 MB / 0.4951 GB, free: 6.766 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.3755, allocations: 0.6171 MB / 0.4957 GB, free: 6.137 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.629e-05/0.3756, allocations: 12.55 kB / 0.4957 GB, free: 6.125 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008055/0.3764, allocations: 465.3 kB / 0.4961 GB, free: 5.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 4.619e-06/0.3764, allocations: 0 / 0.4961 GB, free: 5.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003026/0.3795, allocations: 1.254 MB / 0.4973 GB, free: 4.379 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.449e-05/0.3795, allocations: 119.4 kB / 0.4975 GB, free: 4.238 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005792/0.3801, allocations: 474.1 kB / 0.4979 GB, free: 3.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.585e-05/0.3802, allocations: 45.7 kB / 0.498 GB, free: 3.719 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002432/0.3804, allocations: 336.5 kB / 0.4983 GB, free: 3.387 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001647/0.3806, allocations: 201.1 kB / 0.4985 GB, free: 3.188 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.374e-05/0.3807, allocations: 12 kB / 0.4985 GB, free: 3.176 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001524/0.3808, allocations: 382.8 kB / 0.4988 GB, free: 2.793 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000535/0.3814, allocations: 245.9 kB / 0.4991 GB, free: 2.551 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006557/0.382, allocations: 425.8 kB / 0.4995 GB, free: 2.066 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006094/0.3826, allocations: 302.4 kB / 0.4998 GB, free: 1.762 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3827, allocations: 4 kB / 0.4998 GB, free: 1.758 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001545/0.3842, allocations: 0.8649 MB / 0.5006 GB, free: 0.8789 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1959/0.5801, allocations: 1.85 MB / 0.5024 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.639e-05/0.5802, allocations: 4.719 kB / 0.5024 GB, free: 94.36 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007378/0.581, allocations: 154.3 kB / 0.5026 GB, free: 94.35 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006972/0.5817, allocations: 126.6 kB / 0.5027 GB, free: 94.35 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003131/0.5848, allocations: 2.36 MB / 0.505 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007617/0.5856, allocations: 90.28 kB / 0.5051 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.793e-05/0.5857, allocations: 32.12 kB / 0.5051 GB, free: 93.03 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.299e-05/0.5857, allocations: 6.25 kB / 0.5051 GB, free: 93.03 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001565/0.5873, allocations: 0.7539 MB / 0.5059 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.809e-06/0.5873, allocations: 11.38 kB / 0.5059 GB, free: 92.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004248/0.5877, allocations: 151.2 kB / 0.506 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005526/0.5883, allocations: 119.8 kB / 0.5061 GB, free: 92.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002737/0.591, allocations: 2.36 MB / 0.5084 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006546/0.5917, allocations: 85.52 kB / 0.5085 GB, free: 91.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/0.5918, allocations: 27.56 kB / 0.5086 GB, free: 91.66 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_last,fundamentalWaveCurrent.mean1.y_last,$PRE.fundamentalWaveCurrent.mean2.y_last,fundamentalWaveCurrent.mean2.y_last,$PRE.fundamentalWaveVoltage.mean1.y_last,fundamentalWaveVoltage.mean1.y_last,$PRE.fundamentalWaveVoltage.mean2.y_last,fundamentalWaveVoltage.mean2.y_last,$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 (70): * Single equations (assignments): 68 * 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 14} Notification: Performance of prepare postOptimizeDAE: time 0.0005007/0.5923, allocations: 310.8 kB / 0.5088 GB, free: 91.47 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001232/0.5924, allocations: 75.06 kB / 0.5089 GB, free: 91.44 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001341/0.5938, allocations: 0.7763 MB / 0.5097 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.172e-06/0.5938, allocations: 7.062 kB / 0.5097 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.833e-06/0.5938, allocations: 0 / 0.5097 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.5938, allocations: 2.484 kB / 0.5097 GB, free: 91.37 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002052/0.5959, allocations: 1.582 MB / 0.5112 GB, free: 90.88 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.226e-06/0.5959, allocations: 0 / 0.5112 GB, free: 90.88 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003901/0.5963, allocations: 87.81 kB / 0.5113 GB, free: 90.88 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003562/0.5966, allocations: 147.3 kB / 0.5115 GB, free: 90.83 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.315e-05/0.5967, allocations: 14.88 kB / 0.5115 GB, free: 90.82 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002095/0.5988, allocations: 2.352 MB / 0.5138 GB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.198e-06/0.5988, allocations: 13.84 kB / 0.5138 GB, free: 88.98 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001781/0.6006, allocations: 1.174 MB / 0.5149 GB, free: 88.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002395/0.6008, allocations: 205.1 kB / 0.5151 GB, free: 88.28 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.498e-05/0.6009, allocations: 24.38 kB / 0.5151 GB, free: 88.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004281/0.6014, allocations: 47.42 kB / 0.5152 GB, free: 88.26 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001521/0.6015, allocations: 70.23 kB / 0.5153 GB, free: 88.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.249e-05/0.6016, allocations: 22.27 kB / 0.5153 GB, free: 88.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000379/0.602, allocations: 364.9 kB / 0.5156 GB, free: 88.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.602, allocations: 0 / 0.5156 GB, free: 88.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001299/0.6033, allocations: 367 kB / 0.516 GB, free: 88.01 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (fundamentalWaveVoltage.mean1.x,fundamentalWaveVoltage.mean2.x,fundamentalWaveCurrent.mean1.x,fundamentalWaveCurrent.mean2.x) * 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_last,fundamentalWaveVoltage.mean2.y_last,fundamentalWaveCurrent.mean1.y_last,fundamentalWaveCurrent.mean2.y_last) * 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 (50): * Single equations (assignments): 41 * 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 14} Notification: Performance of Backend phase and start with SimCode phase: time 0.001996/0.6053, allocations: 1.776 MB / 0.5177 GB, free: 86.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.6076, allocations: 1.521 MB / 0.5192 GB, free: 86.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.6076, allocations: 0 / 0.5192 GB, free: 86.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007151/0.6083, allocations: 0.5311 MB / 0.5197 GB, free: 85.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000513/0.6088, allocations: 107.3 kB / 0.5198 GB, free: 85.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002981/0.6118, allocations: 5.127 MB / 0.5248 GB, free: 81.44 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003606/0.6122, allocations: 0.969 MB / 0.5258 GB, free: 80.72 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003796/0.6126, allocations: 92.19 kB / 0.5259 GB, free: 80.71 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002892/0.6129, allocations: 265.6 kB / 0.5261 GB, free: 80.51 MB / 378.7 MB Notification: Performance of SimCode: time 8.82e-07/0.6129, allocations: 0 / 0.5261 GB, free: 80.51 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03046/0.6433, allocations: 16.37 MB / 0.5421 GB, free: 67.93 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001625/0.6435, allocations: 257.5 kB / 0.5423 GB, free: 67.59 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.464/3.108, allocations: 3.438 kB / 0.5423 GB, free: 67.59 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat