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_RL.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_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.001406/0.001406, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.448/1.448, allocations: 221.5 MB / 230.3 MB, free: 7.516 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001137/0.001136, allocations: 87.97 kB / 281.2 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.882e-05/1.884e-05, allocations: 4 kB / 337.2 MB, free: 9.906 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1063, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3812/0.4876, allocations: 86.15 MB / 473.7 MB, free: 8.602 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002411/0.4879, allocations: 79.95 kB / 473.8 MB, free: 8.523 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03411/0.522, allocations: 12.84 MB / 486.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.522, allocations: 0 / 486.6 MB, free: 11.62 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.66e-05/0.5221, allocations: 23.92 kB / 486.7 MB, free: 11.6 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001853/0.524, allocations: 1 MB / 487.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.042e-05/0.524, allocations: 8.031 kB / 487.7 MB, free: 10.53 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001677/0.5242, allocations: 106.8 kB / 487.8 MB, free: 10.42 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007891/0.525, allocations: 0.524 MB / 488.3 MB, free: 9.855 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.096e-05/0.5251, allocations: 31.98 kB / 488.3 MB, free: 9.824 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.237e-05/0.5252, allocations: 44 kB / 488.4 MB, free: 9.781 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008506/0.526, allocations: 463.9 kB / 488.8 MB, free: 9.328 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001062/0.5271, allocations: 0.638 MB / 489.5 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.189e-05/0.5271, allocations: 0 / 489.5 MB, free: 8.664 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.135e-05/0.5272, allocations: 11.98 kB / 489.5 MB, free: 8.652 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.462e-05/0.5272, allocations: 16 kB / 489.5 MB, free: 8.637 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003799/0.531, allocations: 2.609 MB / 492.1 MB, free: 5.926 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008611/0.5319, allocations: 0.4938 MB / 492.6 MB, free: 5.426 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003845/0.5323, allocations: 258.5 kB / 492.9 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.296e-05/0.5324, allocations: 8.562 kB / 492.9 MB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006241/0.533, allocations: 396.6 kB / 493.3 MB, free: 4.754 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.505e-06/0.533, allocations: 0 / 493.3 MB, free: 4.754 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001034/0.534, allocations: 0.5656 MB / 493.8 MB, free: 4.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.095e-05/0.5341, allocations: 111.4 kB / 493.9 MB, free: 4.043 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.5346, allocations: 393.2 kB / 494.3 MB, free: 3.652 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.734e-05/0.5347, allocations: 29.7 kB / 494.3 MB, free: 3.617 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002394/0.5349, allocations: 352.3 kB / 494.7 MB, free: 3.266 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001589/0.5351, allocations: 193.1 kB / 494.9 MB, free: 3.074 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.53e-05/0.5351, allocations: 8 kB / 494.9 MB, free: 3.066 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001557/0.5353, allocations: 370.8 kB / 495.2 MB, free: 2.695 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002896/0.5356, allocations: 177.6 kB / 495.4 MB, free: 2.523 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004279/0.536, allocations: 358.3 kB / 495.8 MB, free: 2.102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003372/0.5363, allocations: 214.1 kB / 496 MB, free: 1.895 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.058e-06/0.5364, allocations: 0 / 496 MB, free: 1.895 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001035/0.5374, allocations: 0.6555 MB / 496.6 MB, free: 1.227 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007785/0.5382, allocations: 1.852 MB / 498.5 MB, free: 15.23 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.198e-05/0.5382, allocations: 4 kB / 498.5 MB, free: 15.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004588/0.5387, allocations: 148.6 kB / 498.6 MB, free: 15.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005181/0.5392, allocations: 135.7 kB / 498.8 MB, free: 14.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00259/0.5418, allocations: 2.208 MB / 0.4892 GB, free: 12.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005513/0.5424, allocations: 67.5 kB / 0.4893 GB, free: 12.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.5424, allocations: 32.12 kB / 0.4893 GB, free: 12.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.009e-05/0.5425, allocations: 4 kB / 0.4893 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009977/0.5435, allocations: 0.5759 MB / 0.4899 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.203e-06/0.5435, allocations: 4 kB / 0.4899 GB, free: 11.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003545/0.5438, allocations: 137.3 kB / 0.49 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004587/0.5443, allocations: 131.7 kB / 0.4902 GB, free: 11.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002322/0.5466, allocations: 2.214 MB / 0.4923 GB, free: 9.344 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004875/0.5471, allocations: 59.56 kB / 0.4924 GB, free: 9.285 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.545e-05/0.5472, allocations: 28 kB / 0.4924 GB, free: 9.258 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 () * 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.0002365/0.5474, allocations: 150.1 kB / 0.4925 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009437/0.5484, allocations: 0.5654 MB / 0.4931 GB, free: 8.539 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.366e-05/0.5485, allocations: 67.23 kB / 0.4932 GB, free: 8.473 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001055/0.5496, allocations: 0.5966 MB / 0.4937 GB, free: 7.855 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.137e-06/0.5496, allocations: 8 kB / 0.4937 GB, free: 7.848 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.744e-06/0.5496, allocations: 4 kB / 0.4937 GB, free: 7.844 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.5496, allocations: 3.984 kB / 0.4938 GB, free: 7.84 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001866/0.5515, allocations: 1.343 MB / 0.4951 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.5515, allocations: 0 / 0.4951 GB, free: 6.449 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004825/0.552, allocations: 99.81 kB / 0.4952 GB, free: 6.352 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003423/0.5523, allocations: 128.8 kB / 0.4953 GB, free: 6.223 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.29e-05/0.5524, allocations: 15.92 kB / 0.4953 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002272/0.5547, allocations: 2.187 MB / 0.4974 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.5547, allocations: 0 / 0.4974 GB, free: 3.898 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001405/0.5561, allocations: 0.9648 MB / 0.4984 GB, free: 2.918 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002413/0.5563, allocations: 196.2 kB / 0.4986 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.43e-05/0.5564, allocations: 8 kB / 0.4986 GB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004316/0.5569, allocations: 52.03 kB / 0.4986 GB, free: 2.648 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.557, allocations: 76.39 kB / 0.4987 GB, free: 2.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.397e-05/0.5571, allocations: 23.98 kB / 0.4987 GB, free: 2.547 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000333/0.5574, allocations: 287 kB / 0.499 GB, free: 2.266 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.5574, allocations: 0 / 0.499 GB, free: 2.266 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001193/0.5586, allocations: 342.7 kB / 0.4993 GB, free: 1.93 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_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) * 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.001764/0.5604, allocations: 1.553 MB / 0.5008 GB, free: 356 kB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001984/0.5624, allocations: 1.271 MB / 0.5021 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.918e-06/0.5624, allocations: 0 / 0.5021 GB, free: 15.03 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006098/0.5631, allocations: 460.5 kB / 0.5025 GB, free: 14.57 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005199/0.5636, allocations: 90.8 kB / 0.5026 GB, free: 14.49 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002313/0.5659, allocations: 1.116 MB / 0.5037 GB, free: 13.33 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005069/0.5664, allocations: 0.9751 MB / 0.5046 GB, free: 12.32 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004639/0.5669, allocations: 113.4 kB / 0.5048 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003279/0.5672, allocations: 263.3 kB / 0.505 GB, free: 11.96 MB / 394.7 MB Notification: Performance of SimCode: time 7.51e-07/0.5672, allocations: 0 / 0.505 GB, free: 11.96 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03791/0.6052, allocations: 15.34 MB / 0.52 GB, free: 12.73 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001843/0.6054, allocations: 194 kB / 0.5202 GB, free: 12.54 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.412/3.017, allocations: 0 / 0.5202 GB, free: 12.54 MB / 410.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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_RL_res.mat does not exist to compare? outputFormat=mat