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.0009906/0.0009906, allocations: 175.6 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.265/1.265, allocations: 221.3 MB / 235.5 MB, free: 2.961 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.0008975/0.0008979, allocations: 97.97 kB / 286.5 MB, free: 248 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.443e-05/4.487e-05, allocations: 4 kB / 343.9 MB, free: 4.227 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1302/0.1302, allocations: 50.41 MB / 394.4 MB, free: 1.77 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3256/0.4559, allocations: 86.81 MB / 481.2 MB, free: 0.6836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002437/0.4562, allocations: 91.92 kB / 481.3 MB, free: 0.5938 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03529/0.4915, allocations: 12.97 MB / 494.2 MB, free: 3.562 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.4915, allocations: 0 / 494.2 MB, free: 3.562 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.216e-05/0.4916, allocations: 19.94 kB / 494.2 MB, free: 3.543 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.001962/0.4936, allocations: 0.9925 MB / 495.2 MB, free: 2.488 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.45e-05/0.4936, allocations: 11.97 kB / 495.2 MB, free: 2.477 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001398/0.4938, allocations: 118.5 kB / 495.4 MB, free: 2.352 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001633/0.4939, allocations: 102.8 kB / 495.5 MB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000828/0.4948, allocations: 0.5279 MB / 496 MB, free: 1.68 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.386e-05/0.4948, allocations: 65.98 kB / 496.1 MB, free: 1.617 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001132/0.495, allocations: 76 kB / 496.1 MB, free: 1.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.4962, allocations: 0.72 MB / 496.8 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.4962, allocations: 0 / 496.8 MB, free: 0.793 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.082e-05/0.4963, allocations: 35.98 kB / 496.9 MB, free: 0.7578 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.4963, allocations: 20 kB / 496.9 MB, free: 0.7383 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009395/0.4973, allocations: 0.5037 MB / 497.4 MB, free: 240 kB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003986/0.5013, allocations: 2.756 MB / 0.4884 GB, free: 13.37 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009144/0.5022, allocations: 0.5143 MB / 0.4889 GB, free: 12.84 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004243/0.5027, allocations: 278.5 kB / 0.4892 GB, free: 12.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.436e-05/0.5027, allocations: 8.547 kB / 0.4892 GB, free: 12.56 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006813/0.5034, allocations: 414.5 kB / 0.4896 GB, free: 12.14 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 3.417e-06/0.5034, allocations: 0 / 0.4896 GB, free: 12.14 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.001107/0.5045, allocations: 0.6161 MB / 0.4902 GB, free: 11.51 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.021e-05/0.5046, allocations: 115.4 kB / 0.4903 GB, free: 11.38 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005623/0.5052, allocations: 473 kB / 0.4908 GB, free: 10.91 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.893e-05/0.5053, allocations: 41.7 kB / 0.4908 GB, free: 10.86 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002372/0.5055, allocations: 348.4 kB / 0.4911 GB, free: 10.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001665/0.5057, allocations: 213 kB / 0.4913 GB, free: 10.3 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.678e-05/0.5057, allocations: 16 kB / 0.4914 GB, free: 10.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001572/0.5059, allocations: 386.7 kB / 0.4917 GB, free: 9.898 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003389/0.5062, allocations: 193.5 kB / 0.4919 GB, free: 9.707 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000448/0.5067, allocations: 371.9 kB / 0.4923 GB, free: 9.273 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.5071, allocations: 252.9 kB / 0.4925 GB, free: 9.02 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.907e-06/0.5071, allocations: 0 / 0.4925 GB, free: 9.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.00118/0.5083, allocations: 0.7582 MB / 0.4933 GB, free: 8.246 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007077/0.509, allocations: 1.857 MB / 0.4951 GB, free: 6.238 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.509, allocations: 4 kB / 0.4951 GB, free: 6.234 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004724/0.5095, allocations: 146.3 kB / 0.4952 GB, free: 6.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005127/0.51, allocations: 131.7 kB / 0.4953 GB, free: 5.961 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002586/0.5126, allocations: 2.289 MB / 0.4976 GB, free: 3.535 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006017/0.5132, allocations: 95.44 kB / 0.4977 GB, free: 3.441 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.508e-05/0.5133, allocations: 31.95 kB / 0.4977 GB, free: 3.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.145e-06/0.5133, allocations: 4 kB / 0.4977 GB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001097/0.5144, allocations: 0.6796 MB / 0.4984 GB, free: 2.719 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.037e-06/0.5145, allocations: 12.03 kB / 0.4984 GB, free: 2.707 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003501/0.5148, allocations: 142.1 kB / 0.4985 GB, free: 2.566 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004547/0.5153, allocations: 123.8 kB / 0.4986 GB, free: 2.445 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002418/0.5177, allocations: 2.279 MB / 0.5009 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005258/0.5182, allocations: 87.53 kB / 0.5009 GB, free: 15.94 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.821e-05/0.5183, allocations: 31.94 kB / 0.501 GB, free: 15.91 MB / 394.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.000218/0.5185, allocations: 165.1 kB / 0.5011 GB, free: 15.74 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001065/0.5186, allocations: 71.16 kB / 0.5012 GB, free: 15.67 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001204/0.5199, allocations: 0.667 MB / 0.5018 GB, free: 14.99 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.5199, allocations: 8 kB / 0.5019 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.462e-06/0.5199, allocations: 0 / 0.5019 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.005e-05/0.5199, allocations: 3.984 kB / 0.5019 GB, free: 14.98 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.5219, allocations: 1.486 MB / 0.5033 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.885e-06/0.522, allocations: 0 / 0.5033 GB, free: 13.43 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000447/0.5224, allocations: 99.88 kB / 0.5034 GB, free: 13.34 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003459/0.5228, allocations: 136.7 kB / 0.5035 GB, free: 13.2 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.515e-05/0.5228, allocations: 15.98 kB / 0.5035 GB, free: 13.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002461/0.5253, allocations: 2.269 MB / 0.5058 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.343e-06/0.5253, allocations: 0 / 0.5058 GB, free: 10.79 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001511/0.5268, allocations: 1.031 MB / 0.5068 GB, free: 9.738 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002673/0.5271, allocations: 212.1 kB / 0.507 GB, free: 9.512 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.79e-05/0.5272, allocations: 16 kB / 0.507 GB, free: 9.496 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004445/0.5276, allocations: 55.95 kB / 0.507 GB, free: 9.441 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.5278, allocations: 68.45 kB / 0.5071 GB, free: 9.375 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.777e-05/0.5279, allocations: 19.98 kB / 0.5071 GB, free: 9.355 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0004384/0.5283, allocations: 365.6 kB / 0.5075 GB, free: 9.004 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.894e-06/0.5283, allocations: 0 / 0.5075 GB, free: 9.004 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001086/0.5294, allocations: 378.9 kB / 0.5078 GB, free: 8.633 MB / 394.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.001936/0.5314, allocations: 1.611 MB / 0.5094 GB, free: 6.988 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002126/0.5335, allocations: 1.362 MB / 0.5107 GB, free: 5.582 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.232e-06/0.5335, allocations: 8 kB / 0.5107 GB, free: 5.574 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006804/0.5342, allocations: 478.6 kB / 0.5112 GB, free: 5.09 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.5348, allocations: 110 kB / 0.5113 GB, free: 4.988 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002557/0.5374, allocations: 1.192 MB / 0.5125 GB, free: 3.762 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005669/0.5379, allocations: 0.9716 MB / 0.5134 GB, free: 2.754 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005296/0.5385, allocations: 125.8 kB / 0.5135 GB, free: 2.629 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.5388, allocations: 264 kB / 0.5138 GB, free: 2.371 MB / 394.7 MB Notification: Performance of SimCode: time 1.082e-06/0.5388, allocations: 0 / 0.5138 GB, free: 2.371 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03523/0.5741, allocations: 17.38 MB / 0.5308 GB, free: 1.312 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001858/0.5743, allocations: 236.2 kB / 0.531 GB, free: 1.043 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.46/3.035, allocations: 0 / 0.531 GB, free: 1.043 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