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.001166/0.001166, allocations: 174.8 kB / 13.63 MB, free: 1.684 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.392/1.392, allocations: 221.3 MB / 235.5 MB, free: 2.938 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.0009346/0.0009344, allocations: 87.86 kB / 286.5 MB, free: 228 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.822e-05/2.826e-05, allocations: 0 / 343.9 MB, free: 4.207 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1015/0.1016, allocations: 50.43 MB / 394.4 MB, free: 1.738 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3271/0.4287, allocations: 86.49 MB / 480.9 MB, free: 0.9297 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002878/0.4291, allocations: 87.92 kB / 480.9 MB, free: 0.8438 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03433/0.4634, allocations: 12.62 MB / 493.6 MB, free: 4.156 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4635, allocations: 4 kB / 493.6 MB, free: 4.152 MB / 362.7 MB Notification: Performance of Transformations before backend: time 6.332e-05/0.4635, allocations: 19.94 kB / 493.6 MB, free: 4.133 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.002126/0.4657, allocations: 0.9809 MB / 494.6 MB, free: 3.09 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.236e-05/0.4657, allocations: 11.97 kB / 494.6 MB, free: 3.078 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002293/0.4659, allocations: 114.5 kB / 494.7 MB, free: 2.957 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002275/0.4662, allocations: 98.86 kB / 494.8 MB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009115/0.4671, allocations: 0.524 MB / 495.3 MB, free: 2.297 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.262e-05/0.4672, allocations: 57.98 kB / 495.4 MB, free: 2.238 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00013/0.4673, allocations: 75.91 kB / 495.4 MB, free: 2.164 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001287/0.4686, allocations: 0.7109 MB / 496.2 MB, free: 1.43 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.553e-05/0.4686, allocations: 4 kB / 496.2 MB, free: 1.426 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.267e-05/0.4687, allocations: 28 kB / 496.2 MB, free: 1.398 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.507e-05/0.4687, allocations: 16 kB / 496.2 MB, free: 1.383 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001028/0.4698, allocations: 0.4932 MB / 496.7 MB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004183/0.474, allocations: 2.66 MB / 499.4 MB, free: 14.13 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009553/0.4749, allocations: 0.5258 MB / 499.9 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004188/0.4754, allocations: 258.5 kB / 0.4884 GB, free: 13.33 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.092e-05/0.4754, allocations: 8.562 kB / 0.4884 GB, free: 13.32 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006737/0.4761, allocations: 417.7 kB / 0.4888 GB, free: 12.9 MB / 378.7 MB Notification: Performance of pre-optimization done (n=67): time 2.966e-06/0.4761, allocations: 0 / 0.4888 GB, free: 12.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=67): time 0.00119/0.4773, allocations: 0.6046 MB / 0.4894 GB, free: 12.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.367e-05/0.4774, allocations: 123.3 kB / 0.4895 GB, free: 12.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006245/0.4781, allocations: 472.9 kB / 0.49 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.618e-05/0.4781, allocations: 41.7 kB / 0.49 GB, free: 11.62 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000251/0.4784, allocations: 328.5 kB / 0.4903 GB, free: 11.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000175/0.4786, allocations: 201.2 kB / 0.4905 GB, free: 11.1 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.612e-05/0.4786, allocations: 12 kB / 0.4905 GB, free: 11.09 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001642/0.4788, allocations: 382.8 kB / 0.4909 GB, free: 10.7 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003642/0.4792, allocations: 193.5 kB / 0.4911 GB, free: 10.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004613/0.4796, allocations: 363.8 kB / 0.4914 GB, free: 10.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004212/0.4801, allocations: 247.3 kB / 0.4917 GB, free: 9.836 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.4801, allocations: 4 kB / 0.4917 GB, free: 9.832 MB / 378.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001256/0.4814, allocations: 0.7473 MB / 0.4924 GB, free: 9.07 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007498/0.4821, allocations: 1.864 MB / 0.4942 GB, free: 7.059 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.569e-05/0.4821, allocations: 7.938 kB / 0.4942 GB, free: 7.051 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005538/0.4827, allocations: 152.8 kB / 0.4944 GB, free: 6.898 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005302/0.4832, allocations: 127.8 kB / 0.4945 GB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002923/0.4862, allocations: 2.299 MB / 0.4967 GB, free: 4.336 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006133/0.4868, allocations: 95.52 kB / 0.4968 GB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.714e-05/0.4869, allocations: 35.98 kB / 0.4969 GB, free: 4.207 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.176e-05/0.4869, allocations: 4 kB / 0.4969 GB, free: 4.203 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001192/0.4881, allocations: 0.6606 MB / 0.4975 GB, free: 3.531 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.313e-05/0.4881, allocations: 4 kB / 0.4975 GB, free: 3.527 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003927/0.4885, allocations: 158.7 kB / 0.4977 GB, free: 3.371 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004561/0.489, allocations: 123.8 kB / 0.4978 GB, free: 3.25 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002537/0.4916, allocations: 2.302 MB / 0.5 GB, free: 0.8164 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005604/0.4921, allocations: 79.5 kB / 0.5001 GB, free: 0.7383 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.4922, allocations: 24 kB / 0.5001 GB, free: 0.7148 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.0002466/0.4924, allocations: 172.7 kB / 0.5003 GB, free: 0.5391 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001537/0.4926, allocations: 71.14 kB / 0.5004 GB, free: 480 kB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001276/0.4939, allocations: 0.6511 MB / 0.501 GB, free: 15.8 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.352e-06/0.4939, allocations: 4 kB / 0.501 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4939, allocations: 8.125 kB / 0.501 GB, free: 15.79 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.4939, allocations: 4 kB / 0.501 GB, free: 15.78 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002279/0.4962, allocations: 1.467 MB / 0.5024 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.458e-06/0.4962, allocations: 0 / 0.5024 GB, free: 14.25 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004226/0.4967, allocations: 87.88 kB / 0.5025 GB, free: 14.17 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004086/0.4971, allocations: 140.8 kB / 0.5027 GB, free: 14.03 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.146e-05/0.4972, allocations: 19.98 kB / 0.5027 GB, free: 14.01 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002508/0.4997, allocations: 2.307 MB / 0.5049 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.513e-06/0.4997, allocations: 0 / 0.5049 GB, free: 11.57 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001626/0.5013, allocations: 1.023 MB / 0.5059 GB, free: 10.53 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003392/0.5017, allocations: 200.1 kB / 0.5061 GB, free: 10.31 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001297/0.5018, allocations: 19.98 kB / 0.5061 GB, free: 10.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005038/0.5023, allocations: 59.91 kB / 0.5062 GB, free: 10.23 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001645/0.5025, allocations: 64.47 kB / 0.5063 GB, free: 10.17 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.703e-05/0.5026, allocations: 19.98 kB / 0.5063 GB, free: 10.15 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004748/0.503, allocations: 365.6 kB / 0.5066 GB, free: 9.797 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5031, allocations: 0 / 0.5066 GB, free: 9.797 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001182/0.5042, allocations: 359.2 kB / 0.507 GB, free: 9.445 MB / 394.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.001905/0.5062, allocations: 1.599 MB / 0.5085 GB, free: 7.816 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.5084, allocations: 1.368 MB / 0.5099 GB, free: 6.398 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.5084, allocations: 0 / 0.5099 GB, free: 6.398 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007242/0.5092, allocations: 490.9 kB / 0.5103 GB, free: 5.91 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005973/0.5098, allocations: 118.4 kB / 0.5105 GB, free: 5.801 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002538/0.5123, allocations: 1.139 MB / 0.5116 GB, free: 4.621 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005307/0.5129, allocations: 0.9599 MB / 0.5125 GB, free: 3.633 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005422/0.5134, allocations: 121 kB / 0.5126 GB, free: 3.516 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003291/0.5138, allocations: 267.3 kB / 0.5129 GB, free: 3.254 MB / 394.7 MB Notification: Performance of SimCode: time 7.11e-07/0.5138, allocations: 0 / 0.5129 GB, free: 3.254 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03722/0.551, allocations: 17.39 MB / 0.5299 GB, free: 2.188 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001823/0.5512, allocations: 235.6 kB / 0.5301 GB, free: 1.934 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.442/2.993, allocations: 0 / 0.5301 GB, free: 1.934 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