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.001025/0.001025, allocations: 179.9 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.35/1.35, allocations: 223.2 MB / 240.3 MB, free: 11.88 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.001039/0.001039, allocations: 102.4 kB / 291.5 MB, free: 10.89 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002638/0.0002638, allocations: 8 kB / 351.2 MB, free: 15.19 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2241/0.2244, allocations: 50.41 MB / 401.6 MB, free: 32.56 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1009/0.3253, allocations: 86.88 MB / 488.5 MB, free: 9.551 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002236/0.3256, allocations: 87.95 kB / 488.6 MB, free: 9.465 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03387/0.3594, allocations: 12.98 MB / 0.4898 GB, free: 12.41 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3595, allocations: 0 / 0.4898 GB, free: 12.41 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.193e-05/0.3595, allocations: 16 kB / 0.4898 GB, free: 12.4 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: 177 * Number of variables: 177 Notification: Performance of Generate backend data structure: time 0.001954/0.3615, allocations: 1.1 MB / 0.4909 GB, free: 11.23 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.84e-05/0.3615, allocations: 12.03 kB / 0.4909 GB, free: 11.22 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001413/0.3617, allocations: 110.5 kB / 0.491 GB, free: 11.11 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001561/0.3618, allocations: 106.9 kB / 0.4911 GB, free: 11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007672/0.3626, allocations: 0.5433 MB / 0.4916 GB, free: 10.41 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.263e-05/0.3627, allocations: 54 kB / 0.4917 GB, free: 10.36 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.99e-05/0.3628, allocations: 76 kB / 0.4918 GB, free: 10.29 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001338/0.3641, allocations: 0.794 MB / 0.4925 GB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.958e-05/0.3642, allocations: 0 / 0.4925 GB, free: 9.465 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.699e-05/0.3642, allocations: 28 kB / 0.4926 GB, free: 9.438 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.505e-05/0.3643, allocations: 24 kB / 0.4926 GB, free: 9.414 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001187/0.3654, allocations: 0.6129 MB / 0.4932 GB, free: 8.801 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004113/0.3696, allocations: 2.752 MB / 0.4959 GB, free: 5.938 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001216/0.3708, allocations: 0.5835 MB / 0.4964 GB, free: 5.344 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.059e-05/0.3709, allocations: 8.562 kB / 0.4964 GB, free: 5.336 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008981/0.3718, allocations: 481.6 kB / 0.4969 GB, free: 4.852 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.625e-06/0.3718, allocations: 0 / 0.4969 GB, free: 4.852 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.002976/0.3748, allocations: 1.238 MB / 0.4981 GB, free: 3.586 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.759e-05/0.3749, allocations: 115.4 kB / 0.4982 GB, free: 3.449 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005566/0.3754, allocations: 486.2 kB / 0.4987 GB, free: 2.969 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.185e-05/0.3755, allocations: 41.7 kB / 0.4987 GB, free: 2.922 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.3758, allocations: 344.4 kB / 0.4991 GB, free: 2.578 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001549/0.3759, allocations: 212.9 kB / 0.4993 GB, free: 2.367 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.684e-05/0.376, allocations: 16 kB / 0.4993 GB, free: 2.352 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.3761, allocations: 386.7 kB / 0.4996 GB, free: 1.965 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005067/0.3766, allocations: 249.9 kB / 0.4999 GB, free: 1.719 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005962/0.3772, allocations: 440.8 kB / 0.5003 GB, free: 1.223 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000562/0.3778, allocations: 307.8 kB / 0.5006 GB, free: 0.9141 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.652e-06/0.3778, allocations: 4 kB / 0.5006 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001485/0.3793, allocations: 0.8717 MB / 0.5014 GB, free: 24 kB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.1928/0.5722, allocations: 1.86 MB / 0.5033 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.8e-05/0.5722, allocations: 4.469 kB / 0.5033 GB, free: 93.28 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006138/0.5728, allocations: 143.1 kB / 0.5034 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007041/0.5735, allocations: 133.1 kB / 0.5035 GB, free: 93.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002778/0.5763, allocations: 2.319 MB / 0.5058 GB, free: 91.95 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007053/0.5771, allocations: 99.36 kB / 0.5059 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.927e-05/0.5771, allocations: 33.33 kB / 0.5059 GB, free: 91.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.139e-05/0.5771, allocations: 3.969 kB / 0.5059 GB, free: 91.94 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001487/0.5786, allocations: 0.7691 MB / 0.5067 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.5787, allocations: 5.562 kB / 0.5067 GB, free: 91.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003782/0.579, allocations: 148 kB / 0.5068 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005399/0.5796, allocations: 120.3 kB / 0.5069 GB, free: 91.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002554/0.5822, allocations: 2.331 MB / 0.5092 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006185/0.5828, allocations: 84.88 kB / 0.5093 GB, free: 90.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.649e-05/0.5829, allocations: 34.19 kB / 0.5093 GB, free: 90.57 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 (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.0005666/0.5834, allocations: 310.2 kB / 0.5096 GB, free: 90.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000152/0.5836, allocations: 73.77 kB / 0.5097 GB, free: 90.35 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001411/0.585, allocations: 0.78 MB / 0.5105 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.585, allocations: 7.656 kB / 0.5105 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.603e-06/0.5851, allocations: 0 / 0.5105 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.5851, allocations: 7.562 kB / 0.5105 GB, free: 90.28 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002148/0.5872, allocations: 1.604 MB / 0.512 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.785e-06/0.5872, allocations: 0 / 0.512 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004399/0.5877, allocations: 95.48 kB / 0.5121 GB, free: 89.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003181/0.588, allocations: 138 kB / 0.5123 GB, free: 89.75 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.248e-05/0.5881, allocations: 18.72 kB / 0.5123 GB, free: 89.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002058/0.5901, allocations: 2.322 MB / 0.5145 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.5901, allocations: 0 / 0.5145 GB, free: 87.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001759/0.5919, allocations: 1.195 MB / 0.5157 GB, free: 87.37 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002232/0.5921, allocations: 207.3 kB / 0.5159 GB, free: 87.2 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.329e-05/0.5922, allocations: 19.09 kB / 0.5159 GB, free: 87.19 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004468/0.5927, allocations: 58.55 kB / 0.516 GB, free: 87.18 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001432/0.5928, allocations: 65.36 kB / 0.516 GB, free: 87.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.192e-05/0.5929, allocations: 21.86 kB / 0.5161 GB, free: 87.17 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003427/0.5932, allocations: 372.6 kB / 0.5164 GB, free: 86.99 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5932, allocations: 7.312 kB / 0.5164 GB, free: 86.99 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.00114/0.5944, allocations: 369.1 kB / 0.5168 GB, free: 86.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) * Number of clocked states: 0 () * 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.002108/0.5965, allocations: 1.781 MB / 0.5185 GB, free: 85.84 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002334/0.5989, allocations: 1.511 MB / 0.52 GB, free: 85.07 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.917e-06/0.5989, allocations: 4.375 kB / 0.52 GB, free: 85.07 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007502/0.5996, allocations: 0.5381 MB / 0.5205 GB, free: 84.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005683/0.6002, allocations: 107.5 kB / 0.5206 GB, free: 84.76 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003227/0.6034, allocations: 5.224 MB / 0.5257 GB, free: 80.27 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.6038, allocations: 0.9697 MB / 0.5267 GB, free: 79.55 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003976/0.6042, allocations: 94.48 kB / 0.5268 GB, free: 79.54 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002893/0.6045, allocations: 274.6 kB / 0.527 GB, free: 79.34 MB / 378.7 MB Notification: Performance of SimCode: time 7.11e-07/0.6045, allocations: 0 / 0.527 GB, free: 79.34 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03069/0.6352, allocations: 16.34 MB / 0.543 GB, free: 66.99 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001776/0.6355, allocations: 258.3 kB / 0.5432 GB, free: 66.65 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.471/3.106, allocations: 0 / 0.5432 GB, free: 66.65 MB / 378.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