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.001578/0.001578, allocations: 196.9 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.406/1.406, allocations: 225.6 MB / 234.8 MB, free: 3.281 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008643/0.0008644, allocations: 101.2 kB / 286.7 MB, free: 5.281 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.641e-05/2.654e-05, allocations: 4 kB / 343.8 MB, free: 8.172 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1129, allocations: 51.48 MB / 395.3 MB, free: 4.656 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.364/0.4769, allocations: 88.14 MB / 483.4 MB, free: 4.836 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002022/0.4772, allocations: 89.16 kB / 483.5 MB, free: 4.785 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03386/0.5111, allocations: 13.24 MB / 496.7 MB, free: 9.871 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.112e-06/0.5111, allocations: 0 / 496.7 MB, free: 9.871 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.231e-05/0.5112, allocations: 27.94 kB / 496.8 MB, free: 9.844 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.001793/0.513, allocations: 1.032 MB / 497.8 MB, free: 8.812 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.021e-05/0.513, allocations: 12.03 kB / 497.8 MB, free: 8.801 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006103/0.5136, allocations: 166.3 kB / 498 MB, free: 8.641 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007872/0.5144, allocations: 0.5432 MB / 498.5 MB, free: 8.152 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.861e-05/0.5145, allocations: 20 kB / 498.5 MB, free: 8.133 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.432e-05/0.5146, allocations: 51.38 kB / 498.6 MB, free: 8.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007979/0.5154, allocations: 467.5 kB / 499 MB, free: 7.812 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001/0.5164, allocations: 0.6355 MB / 499.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.01e-05/0.5164, allocations: 0 / 499.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.609e-05/0.5165, allocations: 352 / 499.7 MB, free: 7.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.907e-05/0.5165, allocations: 27.95 kB / 499.7 MB, free: 7.305 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.5203, allocations: 2.624 MB / 0.4906 GB, free: 5.16 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008079/0.5211, allocations: 0.4934 MB / 0.491 GB, free: 4.852 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003814/0.5215, allocations: 261.2 kB / 0.4913 GB, free: 4.695 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.545e-05/0.5216, allocations: 12.53 kB / 0.4913 GB, free: 4.684 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006393/0.5223, allocations: 386.2 kB / 0.4917 GB, free: 4.391 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.284e-06/0.5223, allocations: 0 / 0.4917 GB, free: 4.391 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.001084/0.5234, allocations: 0.5677 MB / 0.4922 GB, free: 3.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.023e-05/0.5234, allocations: 122.8 kB / 0.4923 GB, free: 3.824 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005067/0.524, allocations: 409.8 kB / 0.4927 GB, free: 3.512 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.104e-05/0.524, allocations: 29.52 kB / 0.4928 GB, free: 3.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002595/0.5243, allocations: 356.3 kB / 0.4931 GB, free: 3.223 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001703/0.5245, allocations: 203.3 kB / 0.4933 GB, free: 3.051 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.36e-05/0.5245, allocations: 4 kB / 0.4933 GB, free: 3.047 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001996/0.5247, allocations: 369.4 kB / 0.4937 GB, free: 2.703 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.525, allocations: 182.3 kB / 0.4938 GB, free: 2.605 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004333/0.5255, allocations: 354 kB / 0.4942 GB, free: 2.281 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003378/0.5258, allocations: 209.6 kB / 0.4944 GB, free: 2.148 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.5258, allocations: 4 kB / 0.4944 GB, free: 2.145 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001104/0.5269, allocations: 0.6597 MB / 0.495 GB, free: 1.652 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007749/0.5277, allocations: 1.866 MB / 0.4968 GB, free: 15.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.236e-05/0.5277, allocations: 4 kB / 0.4968 GB, free: 15.67 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004402/0.5282, allocations: 138.1 kB / 0.497 GB, free: 15.57 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005241/0.5287, allocations: 130.7 kB / 0.4971 GB, free: 15.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002396/0.5311, allocations: 2.216 MB / 0.4993 GB, free: 13.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005433/0.5317, allocations: 75.41 kB / 0.4993 GB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/0.5318, allocations: 30.67 kB / 0.4994 GB, free: 13.44 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.506e-06/0.5318, allocations: 4 kB / 0.4994 GB, free: 13.44 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009335/0.5327, allocations: 0.5723 MB / 0.4999 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.824e-06/0.5327, allocations: 4 kB / 0.4999 GB, free: 12.99 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003363/0.5331, allocations: 137.3 kB / 0.5001 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004862/0.5336, allocations: 123.8 kB / 0.5002 GB, free: 12.73 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002338/0.5359, allocations: 2.209 MB / 0.5023 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005452/0.5365, allocations: 67.45 kB / 0.5024 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.704e-05/0.5365, allocations: 28 kB / 0.5024 GB, free: 10.31 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 (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.0002304/0.5368, allocations: 155.2 kB / 0.5026 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0009499/0.5377, allocations: 0.5636 MB / 0.5031 GB, free: 9.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.624e-05/0.5378, allocations: 67.16 kB / 0.5032 GB, free: 9.523 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001047/0.5389, allocations: 0.6006 MB / 0.5038 GB, free: 8.906 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.5389, allocations: 15.95 kB / 0.5038 GB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.144e-06/0.5389, allocations: 0 / 0.5038 GB, free: 8.891 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.561e-05/0.539, allocations: 3.984 kB / 0.5038 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001911/0.5409, allocations: 1.339 MB / 0.5051 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.5409, allocations: 0 / 0.5051 GB, free: 7.5 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004636/0.5414, allocations: 95.86 kB / 0.5052 GB, free: 7.406 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003637/0.5417, allocations: 134.8 kB / 0.5053 GB, free: 7.273 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.466e-05/0.5418, allocations: 19.88 kB / 0.5053 GB, free: 7.254 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002351/0.5441, allocations: 2.198 MB / 0.5075 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.5442, allocations: 0 / 0.5075 GB, free: 4.941 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001509/0.5457, allocations: 0.9687 MB / 0.5084 GB, free: 3.953 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002939/0.546, allocations: 196.2 kB / 0.5086 GB, free: 3.742 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.946e-05/0.5461, allocations: 11.98 kB / 0.5086 GB, free: 3.73 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004332/0.5465, allocations: 43.97 kB / 0.5087 GB, free: 3.688 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001555/0.5467, allocations: 76.53 kB / 0.5087 GB, free: 3.613 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.798e-05/0.5468, allocations: 19.98 kB / 0.5088 GB, free: 3.594 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003912/0.5472, allocations: 307 kB / 0.5091 GB, free: 3.293 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.5472, allocations: 0 / 0.5091 GB, free: 3.293 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001239/0.5484, allocations: 352.6 kB / 0.5094 GB, free: 2.949 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) * 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.001876/0.5503, allocations: 1.549 MB / 0.5109 GB, free: 1.367 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002136/0.5524, allocations: 1.298 MB / 0.5122 GB, free: 36 kB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.946e-06/0.5525, allocations: 0 / 0.5122 GB, free: 36 kB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006545/0.5531, allocations: 451.8 kB / 0.5126 GB, free: 15.59 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006261/0.5538, allocations: 86.08 kB / 0.5127 GB, free: 15.51 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00252/0.5563, allocations: 1.147 MB / 0.5138 GB, free: 14.32 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005821/0.5569, allocations: 0.9753 MB / 0.5148 GB, free: 13.31 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005077/0.5574, allocations: 120.9 kB / 0.5149 GB, free: 13.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003925/0.5578, allocations: 275.3 kB / 0.5151 GB, free: 12.92 MB / 394.7 MB Notification: Performance of SimCode: time 7.81e-07/0.5578, allocations: 0 / 0.5151 GB, free: 12.92 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0404/0.5982, allocations: 15.7 MB / 0.5305 GB, free: 13.43 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002023/0.5985, allocations: 190 kB / 0.5306 GB, free: 13.23 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.478/3.076, allocations: 7.938 kB / 0.5307 GB, free: 13.23 MB / 410.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