Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001154/0.001154, allocations: 199 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 227.2 MB / 245 MB, free: 5.777 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009691/0.0009691, allocations: 102.5 kB / 297.3 MB, free: 5.965 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 12 kB / 358 MB, free: 9.203 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2045/0.2047, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09903/0.3038, allocations: 88.55 MB / 498.1 MB, free: 2.016 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002432/0.3041, allocations: 89.77 kB / 498.2 MB, free: 1.93 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03381/0.3379, allocations: 13.04 MB / 0.4992 GB, free: 4.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.413e-06/0.3379, allocations: 4 kB / 0.4992 GB, free: 4.816 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.706e-05/0.338, allocations: 23.98 kB / 0.4992 GB, free: 4.793 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.001935/0.3399, allocations: 1.105 MB / 0.5003 GB, free: 3.621 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.34, allocations: 12.03 kB / 0.5003 GB, free: 3.609 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001373/0.3401, allocations: 122.4 kB / 0.5005 GB, free: 3.48 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005559/0.3407, allocations: 159.1 kB / 0.5006 GB, free: 3.324 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007786/0.3415, allocations: 0.5395 MB / 0.5011 GB, free: 2.742 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.245e-05/0.3415, allocations: 50 kB / 0.5012 GB, free: 2.691 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.97e-05/0.3416, allocations: 75.98 kB / 0.5013 GB, free: 2.617 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.3429, allocations: 0.7693 MB / 0.502 GB, free: 1.82 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.38e-05/0.343, allocations: 4 kB / 0.502 GB, free: 1.816 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.304e-05/0.343, allocations: 24 kB / 0.502 GB, free: 1.793 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.58e-05/0.3431, allocations: 20 kB / 0.502 GB, free: 1.773 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.3442, allocations: 0.6063 MB / 0.5026 GB, free: 1.168 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1651/0.5094, allocations: 2.686 MB / 0.5053 GB, free: 88.88 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001281/0.5107, allocations: 0.6156 MB / 0.5059 GB, free: 88.84 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.839e-05/0.5108, allocations: 10.11 kB / 0.5059 GB, free: 88.84 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009726/0.5117, allocations: 472.9 kB / 0.5063 GB, free: 88.77 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 3.206e-06/0.5118, allocations: 0 / 0.5063 GB, free: 88.77 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.003128/0.5149, allocations: 1.254 MB / 0.5076 GB, free: 88.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.437e-05/0.515, allocations: 116.7 kB / 0.5077 GB, free: 88.49 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007173/0.5157, allocations: 0.4999 MB / 0.5081 GB, free: 88.37 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.025e-05/0.5158, allocations: 46.28 kB / 0.5082 GB, free: 88.34 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002532/0.5161, allocations: 341.9 kB / 0.5085 GB, free: 88.22 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001629/0.5162, allocations: 203.8 kB / 0.5087 GB, free: 88.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.359e-05/0.5163, allocations: 15.78 kB / 0.5087 GB, free: 88.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001073/0.5164, allocations: 378.4 kB / 0.5091 GB, free: 87.8 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004886/0.5169, allocations: 251.4 kB / 0.5093 GB, free: 87.8 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00059/0.5175, allocations: 423.1 kB / 0.5097 GB, free: 87.61 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006427/0.5181, allocations: 310.8 kB / 0.51 GB, free: 87.57 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.402e-06/0.5181, allocations: 1.656 kB / 0.51 GB, free: 87.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001568/0.5197, allocations: 0.8673 MB / 0.5109 GB, free: 87.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002716/0.52, allocations: 1.863 MB / 0.5127 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.117e-06/0.52, allocations: 3.812 kB / 0.5127 GB, free: 85.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004071/0.5204, allocations: 154.6 kB / 0.5128 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000443/0.5209, allocations: 119.7 kB / 0.513 GB, free: 85.5 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002084/0.523, allocations: 2.367 MB / 0.5153 GB, free: 83.82 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000498/0.5235, allocations: 96.33 kB / 0.5154 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.219e-05/0.5235, allocations: 30.38 kB / 0.5154 GB, free: 83.79 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.281e-06/0.5235, allocations: 3.969 kB / 0.5154 GB, free: 83.79 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001114/0.5247, allocations: 0.7599 MB / 0.5161 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.12e-06/0.5247, allocations: 3.844 kB / 0.5161 GB, free: 83.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.525, allocations: 158.7 kB / 0.5163 GB, free: 83.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004013/0.5254, allocations: 120 kB / 0.5164 GB, free: 83.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001888/0.5273, allocations: 2.36 MB / 0.5187 GB, free: 81.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004343/0.5278, allocations: 88.2 kB / 0.5188 GB, free: 81.55 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.832e-05/0.5278, allocations: 22.25 kB / 0.5188 GB, free: 81.54 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.0003334/0.5282, allocations: 319.7 kB / 0.5191 GB, free: 81.29 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.719e-05/0.5282, allocations: 72.38 kB / 0.5192 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001233/0.5295, allocations: 0.7774 MB / 0.52 GB, free: 80.93 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.5295, allocations: 9.422 kB / 0.52 GB, free: 80.93 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.5295, allocations: 3.938 kB / 0.52 GB, free: 80.92 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.5295, allocations: 3.844 kB / 0.52 GB, free: 80.92 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001926/0.5315, allocations: 1.58 MB / 0.5215 GB, free: 80.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.5315, allocations: 3.953 kB / 0.5215 GB, free: 80.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003695/0.5318, allocations: 83.83 kB / 0.5216 GB, free: 80.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003251/0.5322, allocations: 144.9 kB / 0.5217 GB, free: 80.08 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.148e-05/0.5322, allocations: 19.33 kB / 0.5218 GB, free: 80.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001895/0.5341, allocations: 2.366 MB / 0.5241 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.5341, allocations: 0 / 0.5241 GB, free: 78.2 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001667/0.5358, allocations: 1.18 MB / 0.5252 GB, free: 77.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002118/0.536, allocations: 212.8 kB / 0.5254 GB, free: 77.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.971e-05/0.5361, allocations: 15.84 kB / 0.5254 GB, free: 77.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004275/0.5366, allocations: 56.56 kB / 0.5255 GB, free: 77.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.5367, allocations: 65.66 kB / 0.5255 GB, free: 77.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.021e-05/0.5367, allocations: 25.55 kB / 0.5256 GB, free: 77.44 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003278/0.5371, allocations: 397.3 kB / 0.526 GB, free: 77.26 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5371, allocations: 0 / 0.526 GB, free: 77.26 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009181/0.538, allocations: 367.7 kB / 0.5263 GB, free: 77.18 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.001908/0.5399, allocations: 1.786 MB / 0.528 GB, free: 76.08 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002059/0.542, allocations: 1.514 MB / 0.5295 GB, free: 75.3 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.542, allocations: 4.062 kB / 0.5295 GB, free: 75.3 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007029/0.5427, allocations: 0.539 MB / 0.5301 GB, free: 74.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.5433, allocations: 119.9 kB / 0.5302 GB, free: 74.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002907/0.5462, allocations: 5.159 MB / 0.5352 GB, free: 69.78 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003013/0.5465, allocations: 0.9742 MB / 0.5362 GB, free: 68.89 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003486/0.5469, allocations: 99.33 kB / 0.5363 GB, free: 68.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002864/0.5472, allocations: 281.3 kB / 0.5365 GB, free: 68.58 MB / 378.7 MB Notification: Performance of SimCode: time 4.41e-07/0.5472, allocations: 0 / 0.5365 GB, free: 68.58 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02757/0.5748, allocations: 16.68 MB / 0.5528 GB, free: 54.44 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001941/0.575, allocations: 260 kB / 0.5531 GB, free: 54.1 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.374/2.949, allocations: 0 / 0.5531 GB, free: 54.1 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat