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.001254/0.001254, allocations: 176.2 kB / 8.348 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.402/1.402, allocations: 221.5 MB / 230.3 MB, free: 7.531 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.0008176/0.0008176, allocations: 96.19 kB / 281.2 MB, free: 5.266 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.857e-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.106/0.106, allocations: 50.42 MB / 387.6 MB, free: 7.449 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3689/0.4749, allocations: 85.83 MB / 473.4 MB, free: 8.867 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002899/0.4753, allocations: 87.92 kB / 473.5 MB, free: 8.781 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0348/0.5101, allocations: 12.5 MB / 486 MB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.5102, allocations: 0 / 486 MB, free: 12.21 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.367e-05/0.5103, allocations: 19.94 kB / 486 MB, free: 12.2 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: 171 * Number of variables: 171 Notification: Performance of Generate backend data structure: time 0.002028/0.5123, allocations: 0.9762 MB / 487 MB, free: 11.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.39e-05/0.5124, allocations: 16.03 kB / 487 MB, free: 11.14 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001829/0.5126, allocations: 98.86 kB / 487.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009197/0.5135, allocations: 0.524 MB / 487.6 MB, free: 10.48 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.321e-05/0.5135, allocations: 23.95 kB / 487.6 MB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001163/0.5137, allocations: 51.89 kB / 487.7 MB, free: 10.4 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0009457/0.5146, allocations: 455.9 kB / 488.1 MB, free: 9.957 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001273/0.5159, allocations: 0.621 MB / 488.8 MB, free: 9.309 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.4e-05/0.516, allocations: 4 kB / 488.8 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.113e-05/0.516, allocations: 0 / 488.8 MB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.268e-05/0.5161, allocations: 16 kB / 488.8 MB, free: 9.289 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003964/0.52, allocations: 2.537 MB / 491.3 MB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008471/0.5209, allocations: 0.4935 MB / 491.8 MB, free: 6.156 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003616/0.5213, allocations: 250.5 kB / 492.1 MB, free: 5.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.265e-05/0.5213, allocations: 16.52 kB / 492.1 MB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006036/0.5219, allocations: 380.7 kB / 492.4 MB, free: 5.504 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.294e-06/0.522, allocations: 0 / 492.4 MB, free: 5.504 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.001059/0.523, allocations: 0.5656 MB / 493 MB, free: 4.926 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.5231, allocations: 115.4 kB / 493.1 MB, free: 4.789 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004342/0.5235, allocations: 385.2 kB / 493.5 MB, free: 4.406 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.442e-05/0.5236, allocations: 33.69 kB / 493.5 MB, free: 4.367 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.5238, allocations: 332.3 kB / 493.9 MB, free: 4.035 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001456/0.524, allocations: 193.2 kB / 494 MB, free: 3.844 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.039e-05/0.524, allocations: 4 kB / 494 MB, free: 3.84 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000146/0.5242, allocations: 370.8 kB / 494.4 MB, free: 3.469 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002855/0.5245, allocations: 177.6 kB / 494.6 MB, free: 3.297 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004023/0.5249, allocations: 346.2 kB / 494.9 MB, free: 2.883 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003251/0.5252, allocations: 204.7 kB / 495.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.987e-06/0.5252, allocations: 0 / 495.1 MB, free: 2.688 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001001/0.5262, allocations: 0.6442 MB / 495.8 MB, free: 2.031 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006957/0.5269, allocations: 1.857 MB / 497.6 MB, free: 28 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.197e-05/0.527, allocations: 12 kB / 497.6 MB, free: 16 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004716/0.5274, allocations: 140.9 kB / 497.8 MB, free: 15.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004935/0.528, allocations: 127.7 kB / 497.9 MB, free: 15.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002516/0.5305, allocations: 2.243 MB / 0.4884 GB, free: 13.39 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005178/0.531, allocations: 75.48 kB / 0.4885 GB, free: 13.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.447e-05/0.5311, allocations: 24.12 kB / 0.4885 GB, free: 13.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.648e-06/0.5311, allocations: 4 kB / 0.4885 GB, free: 13.29 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009486/0.5321, allocations: 0.5614 MB / 0.4891 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.648e-06/0.5321, allocations: 4 kB / 0.4891 GB, free: 12.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003648/0.5324, allocations: 144.7 kB / 0.4892 GB, free: 12.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004333/0.5329, allocations: 116.2 kB / 0.4893 GB, free: 12.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002486/0.5354, allocations: 2.245 MB / 0.4915 GB, free: 10.11 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004278/0.5358, allocations: 63.55 kB / 0.4916 GB, free: 10.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.762e-05/0.5359, allocations: 27.98 kB / 0.4916 GB, free: 10.02 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 (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.0002202/0.5361, allocations: 142.3 kB / 0.4917 GB, free: 9.875 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009638/0.5371, allocations: 0.5539 MB / 0.4923 GB, free: 9.309 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.5372, allocations: 63.2 kB / 0.4923 GB, free: 9.246 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001073/0.5383, allocations: 0.6001 MB / 0.4929 GB, free: 8.637 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.171e-06/0.5383, allocations: 11.94 kB / 0.4929 GB, free: 8.625 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.5383, allocations: 4 kB / 0.4929 GB, free: 8.621 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.776e-06/0.5383, allocations: 3.984 kB / 0.4929 GB, free: 8.617 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001939/0.5402, allocations: 1.319 MB / 0.4942 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.5403, allocations: 0 / 0.4942 GB, free: 7.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003988/0.5407, allocations: 83.88 kB / 0.4943 GB, free: 7.168 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003611/0.541, allocations: 144.7 kB / 0.4944 GB, free: 7.023 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.046e-05/0.5411, allocations: 7.984 kB / 0.4945 GB, free: 7.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002392/0.5435, allocations: 2.23 MB / 0.4966 GB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/0.5435, allocations: 7.969 kB / 0.4966 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001378/0.5449, allocations: 0.9492 MB / 0.4976 GB, free: 3.691 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002318/0.5451, allocations: 200.2 kB / 0.4978 GB, free: 3.477 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.255e-05/0.5452, allocations: 8 kB / 0.4978 GB, free: 3.469 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004144/0.5456, allocations: 43.95 kB / 0.4978 GB, free: 3.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001506/0.5458, allocations: 68.47 kB / 0.4979 GB, free: 3.359 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/0.5459, allocations: 19.98 kB / 0.4979 GB, free: 3.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003221/0.5462, allocations: 291 kB / 0.4982 GB, free: 3.055 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5462, allocations: 0 / 0.4982 GB, free: 3.055 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001155/0.5474, allocations: 327 kB / 0.4985 GB, free: 2.734 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) * 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.00174/0.5491, allocations: 1.535 MB / 0.5 GB, free: 1.172 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002214/0.5513, allocations: 1.285 MB / 0.5012 GB, free: 15.84 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5513, allocations: 0 / 0.5012 GB, free: 15.84 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006713/0.552, allocations: 460.4 kB / 0.5017 GB, free: 15.38 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005628/0.5526, allocations: 79.73 kB / 0.5018 GB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.555, allocations: 1.07 MB / 0.5028 GB, free: 14.2 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005163/0.5556, allocations: 0.9595 MB / 0.5037 GB, free: 13.21 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004585/0.556, allocations: 120.7 kB / 0.5038 GB, free: 13.09 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003223/0.5564, allocations: 255.3 kB / 0.5041 GB, free: 12.84 MB / 394.7 MB Notification: Performance of SimCode: time 5.51e-07/0.5564, allocations: 0 / 0.5041 GB, free: 12.84 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03663/0.593, allocations: 15.35 MB / 0.5191 GB, free: 13.61 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001778/0.5932, allocations: 196.9 kB / 0.5193 GB, free: 13.41 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.366/2.96, allocations: 0 / 0.5193 GB, free: 13.41 MB / 410.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