Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001034/0.001034, allocations: 203.5 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.345/1.345, allocations: 225.6 MB / 234.8 MB, free: 3.254 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008724/0.0008725, allocations: 93.42 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.144e-05/2.159e-05, allocations: 7.984 kB / 343.8 MB, free: 8.168 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1084/0.1084, allocations: 51.48 MB / 395.3 MB, free: 4.648 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3498/0.4582, allocations: 87.83 MB / 483.1 MB, free: 5.168 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000207/0.4585, allocations: 89.09 kB / 483.2 MB, free: 5.117 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03224/0.4907, allocations: 12.9 MB / 496.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4908, allocations: 0 / 496.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.423e-05/0.4909, allocations: 27.92 kB / 496.1 MB, free: 10.45 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.001938/0.4928, allocations: 1.008 MB / 497.1 MB, free: 9.445 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.924e-05/0.4929, allocations: 11.97 kB / 497.1 MB, free: 9.434 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007016/0.4936, allocations: 166.3 kB / 497.3 MB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008649/0.4945, allocations: 0.5331 MB / 497.8 MB, free: 8.789 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.182e-05/0.4945, allocations: 27.75 kB / 497.9 MB, free: 8.766 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.252e-05/0.4946, allocations: 44 kB / 497.9 MB, free: 8.723 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0008094/0.4954, allocations: 450.7 kB / 498.3 MB, free: 8.461 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.4964, allocations: 0.619 MB / 499 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.122e-05/0.4965, allocations: 0 / 499 MB, free: 7.988 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.939e-05/0.4965, allocations: 7.984 kB / 499 MB, free: 7.98 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.576e-05/0.4966, allocations: 16.34 kB / 499 MB, free: 7.965 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003836/0.5004, allocations: 2.548 MB / 0.4898 GB, free: 5.895 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008153/0.5012, allocations: 0.4954 MB / 0.4903 GB, free: 5.582 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003566/0.5016, allocations: 248.3 kB / 0.4905 GB, free: 5.438 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.85e-05/0.5017, allocations: 4.562 kB / 0.4905 GB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006151/0.5023, allocations: 390.7 kB / 0.4909 GB, free: 5.133 MB / 362.7 MB Notification: Performance of pre-optimization done (n=67): time 2.745e-06/0.5023, allocations: 0 / 0.4909 GB, free: 5.133 MB / 362.7 MB Notification: Performance of matching and sorting (n=67): time 0.0009868/0.5033, allocations: 0.5605 MB / 0.4914 GB, free: 4.719 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.105e-05/0.5034, allocations: 118.9 kB / 0.4915 GB, free: 4.582 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004585/0.5039, allocations: 404.4 kB / 0.4919 GB, free: 4.277 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.365e-05/0.5039, allocations: 29.7 kB / 0.492 GB, free: 4.242 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002368/0.5042, allocations: 359.1 kB / 0.4923 GB, free: 3.988 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001553/0.5043, allocations: 189 kB / 0.4925 GB, free: 3.824 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.317e-05/0.5044, allocations: 4 kB / 0.4925 GB, free: 3.82 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.5045, allocations: 377 kB / 0.4928 GB, free: 3.473 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002834/0.5048, allocations: 181 kB / 0.493 GB, free: 3.371 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003975/0.5052, allocations: 346.1 kB / 0.4933 GB, free: 3.055 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003361/0.5056, allocations: 203.5 kB / 0.4935 GB, free: 2.934 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.262e-06/0.5056, allocations: 4 kB / 0.4935 GB, free: 2.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001026/0.5066, allocations: 0.6512 MB / 0.4942 GB, free: 2.441 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007828/0.5074, allocations: 1.853 MB / 0.496 GB, free: 480 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.291e-05/0.5074, allocations: 4.047 kB / 0.496 GB, free: 476 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004866/0.5079, allocations: 157.7 kB / 0.4961 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004968/0.5084, allocations: 127.6 kB / 0.4963 GB, free: 236 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.5111, allocations: 2.228 MB / 0.4984 GB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005697/0.5117, allocations: 75.44 kB / 0.4985 GB, free: 14.22 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.001e-05/0.5117, allocations: 27.69 kB / 0.4985 GB, free: 14.2 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.496e-06/0.5117, allocations: 4 kB / 0.4985 GB, free: 14.2 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009628/0.5127, allocations: 0.5554 MB / 0.4991 GB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.126e-05/0.5127, allocations: 12.48 kB / 0.4991 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003522/0.5131, allocations: 146 kB / 0.4992 GB, free: 13.69 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004566/0.5136, allocations: 114.1 kB / 0.4993 GB, free: 13.59 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002686/0.5163, allocations: 2.239 MB / 0.5015 GB, free: 11.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005462/0.5168, allocations: 63.61 kB / 0.5016 GB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.951e-05/0.5169, allocations: 28 kB / 0.5016 GB, free: 11.16 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.0002875/0.5172, allocations: 150.1 kB / 0.5018 GB, free: 11.01 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001028/0.5182, allocations: 0.5539 MB / 0.5023 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001033/0.5183, allocations: 67.16 kB / 0.5024 GB, free: 10.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001125/0.5195, allocations: 0.6003 MB / 0.503 GB, free: 9.773 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.086e-05/0.5195, allocations: 11.98 kB / 0.503 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.893e-06/0.5195, allocations: 2.906 kB / 0.503 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.346e-06/0.5195, allocations: 0 / 0.503 GB, free: 9.762 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002035/0.5215, allocations: 1.335 MB / 0.5043 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.747e-06/0.5216, allocations: 0 / 0.5043 GB, free: 8.375 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000414/0.522, allocations: 83.88 kB / 0.5044 GB, free: 8.293 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003646/0.5224, allocations: 136.8 kB / 0.5045 GB, free: 8.156 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.721e-05/0.5224, allocations: 11.98 kB / 0.5045 GB, free: 8.145 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002498/0.5249, allocations: 2.232 MB / 0.5067 GB, free: 5.801 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.5249, allocations: 3.938 kB / 0.5067 GB, free: 5.797 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001458/0.5264, allocations: 0.9609 MB / 0.5076 GB, free: 4.812 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002918/0.5267, allocations: 200.2 kB / 0.5078 GB, free: 4.598 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.461e-05/0.5268, allocations: 15.95 kB / 0.5078 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004362/0.5272, allocations: 43.95 kB / 0.5079 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001653/0.5274, allocations: 68.45 kB / 0.5079 GB, free: 4.473 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.02e-05/0.5275, allocations: 23.98 kB / 0.508 GB, free: 4.449 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004132/0.5279, allocations: 303 kB / 0.5082 GB, free: 4.152 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.21e-07/0.5279, allocations: 3.938 kB / 0.5082 GB, free: 4.148 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001277/0.5292, allocations: 330.9 kB / 0.5086 GB, free: 3.824 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.001787/0.531, allocations: 1.538 MB / 0.5101 GB, free: 2.262 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002001/0.533, allocations: 1.285 MB / 0.5113 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.119e-06/0.533, allocations: 4.625 kB / 0.5113 GB, free: 0.9375 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006432/0.5337, allocations: 459.4 kB / 0.5118 GB, free: 488 kB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005647/0.5342, allocations: 94.75 kB / 0.5119 GB, free: 396 kB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.5367, allocations: 1.091 MB / 0.5129 GB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005588/0.5373, allocations: 0.9752 MB / 0.5139 GB, free: 14.25 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0004968/0.5378, allocations: 108.8 kB / 0.514 GB, free: 14.15 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003406/0.5381, allocations: 263.3 kB / 0.5142 GB, free: 13.89 MB / 394.7 MB Notification: Performance of SimCode: time 4.81e-07/0.5381, allocations: 0 / 0.5142 GB, free: 13.89 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03853/0.5767, allocations: 15.73 MB / 0.5296 GB, free: 14.36 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002006/0.5769, allocations: 192.7 kB / 0.5298 GB, free: 14.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.415/2.992, allocations: 0 / 0.5298 GB, free: 14.17 MB / 410.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat does not exist to compare? outputFormat=mat