Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.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_RL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001193/0.001193, allocations: 201.8 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.238/1.238, allocations: 227.2 MB / 245 MB, free: 7.609 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008471/0.0008471, allocations: 95.09 kB / 297.3 MB, free: 6.188 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002012/0.0002012, allocations: 4 kB / 358 MB, free: 9.418 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.186/0.1862, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1003/0.2866, allocations: 88.88 MB / 498.4 MB, free: 1.699 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002205/0.2868, allocations: 88.62 kB / 498.5 MB, free: 1.613 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03537/0.3222, allocations: 13.39 MB / 0.4999 GB, free: 4.156 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.654e-06/0.3222, allocations: 0 / 0.4999 GB, free: 4.156 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.193e-05/0.3223, allocations: 20 kB / 0.4999 GB, free: 4.137 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.002381/0.3247, allocations: 1.121 MB / 0.501 GB, free: 2.949 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.3248, allocations: 12.03 kB / 0.501 GB, free: 2.938 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001921/0.3249, allocations: 118.8 kB / 0.5011 GB, free: 2.812 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006263/0.3256, allocations: 166.7 kB / 0.5013 GB, free: 2.648 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009525/0.3265, allocations: 0.551 MB / 0.5018 GB, free: 2.051 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.622e-05/0.3266, allocations: 58 kB / 0.5019 GB, free: 1.996 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001208/0.3267, allocations: 75.98 kB / 0.5019 GB, free: 1.922 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001377/0.3281, allocations: 0.7941 MB / 0.5027 GB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.266e-05/0.3282, allocations: 0 / 0.5027 GB, free: 1.098 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.302e-05/0.3282, allocations: 32 kB / 0.5027 GB, free: 1.066 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.543e-05/0.3283, allocations: 19.98 kB / 0.5028 GB, free: 1.047 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001273/0.3295, allocations: 0.6246 MB / 0.5034 GB, free: 432 kB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1696/0.4992, allocations: 2.765 MB / 0.5061 GB, free: 88.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001616/0.5009, allocations: 0.5896 MB / 0.5066 GB, free: 88.91 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.436e-05/0.5009, allocations: 17.98 kB / 0.5067 GB, free: 88.91 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008495/0.5018, allocations: 468.1 kB / 0.5071 GB, free: 88.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 2.555e-06/0.5018, allocations: 0 / 0.5071 GB, free: 88.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.003222/0.505, allocations: 1.249 MB / 0.5083 GB, free: 88.65 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.239e-05/0.5051, allocations: 114.7 kB / 0.5084 GB, free: 88.52 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006012/0.5057, allocations: 0.4945 MB / 0.5089 GB, free: 88.4 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.052e-05/0.5058, allocations: 47.22 kB / 0.509 GB, free: 88.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002211/0.506, allocations: 353 kB / 0.5093 GB, free: 88.23 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001601/0.5062, allocations: 208.7 kB / 0.5095 GB, free: 88.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.685e-05/0.5062, allocations: 16.38 kB / 0.5095 GB, free: 88.12 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.5063, allocations: 379.4 kB / 0.5099 GB, free: 87.81 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006457/0.507, allocations: 258.4 kB / 0.5101 GB, free: 87.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006669/0.5077, allocations: 435.1 kB / 0.5105 GB, free: 87.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005582/0.5082, allocations: 315 kB / 0.5108 GB, free: 87.58 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.65e-06/0.5083, allocations: 6.703 kB / 0.5108 GB, free: 87.58 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001454/0.5097, allocations: 0.8875 MB / 0.5117 GB, free: 87.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002978/0.51, allocations: 1.857 MB / 0.5135 GB, free: 85.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.026e-05/0.51, allocations: 7.922 kB / 0.5135 GB, free: 85.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004474/0.5105, allocations: 140 kB / 0.5137 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004861/0.511, allocations: 139.2 kB / 0.5138 GB, free: 85.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002102/0.5131, allocations: 2.328 MB / 0.5161 GB, free: 83.56 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000536/0.5137, allocations: 92.02 kB / 0.5162 GB, free: 83.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.384e-05/0.5137, allocations: 31.3 kB / 0.5162 GB, free: 83.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.151e-06/0.5137, allocations: 3.938 kB / 0.5162 GB, free: 83.52 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001177/0.5149, allocations: 0.772 MB / 0.517 GB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.615e-06/0.5149, allocations: 8.203 kB / 0.517 GB, free: 83.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003176/0.5152, allocations: 155 kB / 0.5171 GB, free: 83.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004212/0.5157, allocations: 119.9 kB / 0.5172 GB, free: 83.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001953/0.5176, allocations: 2.326 MB / 0.5195 GB, free: 81.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005276/0.5182, allocations: 81.3 kB / 0.5196 GB, free: 81.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.559e-05/0.5182, allocations: 35.34 kB / 0.5196 GB, free: 81.24 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.0004323/0.5187, allocations: 309.6 kB / 0.5199 GB, free: 80.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.5188, allocations: 84.52 kB / 0.52 GB, free: 80.94 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001363/0.5202, allocations: 0.7749 MB / 0.5207 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.6e-06/0.5202, allocations: 11.03 kB / 0.5207 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.733e-06/0.5202, allocations: 0 / 0.5207 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.414e-06/0.5202, allocations: 2.672 kB / 0.5208 GB, free: 80.62 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002262/0.5225, allocations: 1.61 MB / 0.5223 GB, free: 79.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.5225, allocations: 2.406 kB / 0.5223 GB, free: 79.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004623/0.523, allocations: 96.98 kB / 0.5224 GB, free: 79.81 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003944/0.5234, allocations: 135.9 kB / 0.5225 GB, free: 79.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.198e-05/0.5234, allocations: 19.02 kB / 0.5226 GB, free: 79.75 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002131/0.5256, allocations: 2.322 MB / 0.5248 GB, free: 77.9 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.265e-06/0.5256, allocations: 1.875 kB / 0.5248 GB, free: 77.9 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00196/0.5276, allocations: 1.198 MB / 0.526 GB, free: 77.35 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002892/0.5279, allocations: 215.6 kB / 0.5262 GB, free: 77.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001158/0.528, allocations: 17.28 kB / 0.5262 GB, free: 77.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004848/0.5285, allocations: 50.91 kB / 0.5263 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001426/0.5286, allocations: 75.89 kB / 0.5263 GB, free: 77.14 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.5287, allocations: 26.23 kB / 0.5264 GB, free: 77.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004007/0.5291, allocations: 392.3 kB / 0.5267 GB, free: 76.95 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/0.5291, allocations: 0 / 0.5267 GB, free: 76.95 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001165/0.5303, allocations: 372.8 kB / 0.5271 GB, free: 76.87 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.002141/0.5324, allocations: 1.8 MB / 0.5289 GB, free: 75.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002293/0.5347, allocations: 1.516 MB / 0.5303 GB, free: 74.84 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.5347, allocations: 0 / 0.5303 GB, free: 74.84 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007285/0.5355, allocations: 0.5356 MB / 0.5309 GB, free: 74.34 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005685/0.5361, allocations: 119.7 kB / 0.531 GB, free: 74.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003553/0.5396, allocations: 5.259 MB / 0.5361 GB, free: 69.07 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.54, allocations: 0.9822 MB / 0.5371 GB, free: 68.18 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004084/0.5405, allocations: 102.7 kB / 0.5372 GB, free: 68.11 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003116/0.5408, allocations: 287.6 kB / 0.5374 GB, free: 67.86 MB / 378.7 MB Notification: Performance of SimCode: time 1.002e-06/0.5408, allocations: 0 / 0.5374 GB, free: 67.86 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03202/0.5728, allocations: 16.66 MB / 0.5537 GB, free: 53.52 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001745/0.573, allocations: 257.2 kB / 0.554 GB, free: 53.18 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.351/2.924, allocations: 0 / 0.554 GB, free: 53.18 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat