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.001129/0.001129, allocations: 197 kB / 14.16 MB, free: 1.16 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.393/1.393, allocations: 225.4 MB / 240.1 MB, free: 15.04 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008428/0.0008429, allocations: 89.66 kB / 292.1 MB, free: 6.004 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.798e-05/2.819e-05, allocations: 0 / 350.6 MB, free: 2.426 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1086/0.1086, allocations: 51.49 MB / 402.1 MB, free: 14.88 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3489/0.4576, allocations: 88.81 MB / 490.9 MB, free: 0.6914 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.4579, allocations: 87.14 kB / 491 MB, free: 0.6445 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03575/0.4937, allocations: 13.36 MB / 0.4926 GB, free: 4.887 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.4937, allocations: 0 / 0.4926 GB, free: 4.887 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.211e-05/0.4938, allocations: 27.94 kB / 0.4926 GB, free: 4.859 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.001864/0.4956, allocations: 1.027 MB / 0.4936 GB, free: 3.777 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.4957, allocations: 15.97 kB / 0.4936 GB, free: 3.762 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000151/0.4959, allocations: 118.5 kB / 0.4937 GB, free: 3.637 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000624/0.4965, allocations: 166.3 kB / 0.4939 GB, free: 3.477 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008636/0.4974, allocations: 0.5434 MB / 0.4944 GB, free: 2.887 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.64e-05/0.4974, allocations: 58 kB / 0.4945 GB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.4975, allocations: 72 kB / 0.4945 GB, free: 2.762 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001211/0.4988, allocations: 0.7278 MB / 0.4953 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.123e-05/0.4988, allocations: 0 / 0.4953 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.996e-05/0.4989, allocations: 32.94 kB / 0.4953 GB, free: 1.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.645e-05/0.4989, allocations: 20.34 kB / 0.4953 GB, free: 1.953 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000916/0.4998, allocations: 0.5076 MB / 0.4958 GB, free: 1.445 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004012/0.5038, allocations: 2.779 MB / 0.4985 GB, free: 14.56 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009071/0.5048, allocations: 0.5118 MB / 0.499 GB, free: 14.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004259/0.5052, allocations: 271.5 kB / 0.4993 GB, free: 13.77 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.367e-05/0.5053, allocations: 12.56 kB / 0.4993 GB, free: 13.76 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006856/0.506, allocations: 413.8 kB / 0.4997 GB, free: 13.34 MB / 378.7 MB Notification: Performance of pre-optimization done (n=69): time 1.954e-06/0.506, allocations: 1.688 kB / 0.4997 GB, free: 13.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=69): time 0.001133/0.5071, allocations: 0.6278 MB / 0.5003 GB, free: 12.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.925e-05/0.5072, allocations: 115.4 kB / 0.5004 GB, free: 12.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005789/0.5078, allocations: 0.4955 MB / 0.5009 GB, free: 12.07 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.805e-05/0.5078, allocations: 41.7 kB / 0.5009 GB, free: 12.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002408/0.5081, allocations: 348.4 kB / 0.5013 GB, free: 11.67 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001636/0.5083, allocations: 209.1 kB / 0.5015 GB, free: 11.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.518e-05/0.5083, allocations: 16 kB / 0.5015 GB, free: 11.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001712/0.5085, allocations: 382.8 kB / 0.5018 GB, free: 11.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003477/0.5088, allocations: 189.6 kB / 0.502 GB, free: 10.88 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004644/0.5093, allocations: 380 kB / 0.5024 GB, free: 10.44 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004077/0.5097, allocations: 252.9 kB / 0.5026 GB, free: 10.18 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.5097, allocations: 0 / 0.5026 GB, free: 10.18 MB / 378.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001197/0.5109, allocations: 0.7658 MB / 0.5034 GB, free: 9.402 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006338/0.5116, allocations: 1.863 MB / 0.5052 GB, free: 7.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.443e-05/0.5116, allocations: 4 kB / 0.5052 GB, free: 7.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004411/0.5121, allocations: 149.9 kB / 0.5053 GB, free: 7.238 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005171/0.5126, allocations: 131.7 kB / 0.5055 GB, free: 7.109 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002579/0.5152, allocations: 2.28 MB / 0.5077 GB, free: 4.695 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005397/0.5157, allocations: 103.4 kB / 0.5078 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.721e-05/0.5158, allocations: 24.14 kB / 0.5078 GB, free: 4.57 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.255e-06/0.5158, allocations: 5.875 kB / 0.5078 GB, free: 4.566 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001111/0.5169, allocations: 0.6912 MB / 0.5085 GB, free: 3.867 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.372e-06/0.5169, allocations: 4 kB / 0.5085 GB, free: 3.863 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003494/0.5173, allocations: 140.7 kB / 0.5086 GB, free: 3.723 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004909/0.5178, allocations: 124 kB / 0.5087 GB, free: 3.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002408/0.5202, allocations: 2.28 MB / 0.511 GB, free: 1.188 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005225/0.5208, allocations: 87.45 kB / 0.5111 GB, free: 1.102 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.756e-05/0.5208, allocations: 31.98 kB / 0.5111 GB, free: 1.07 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.0002212/0.5211, allocations: 156.8 kB / 0.5112 GB, free: 0.9102 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001286/0.5212, allocations: 79.05 kB / 0.5113 GB, free: 0.832 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001307/0.5225, allocations: 0.6752 MB / 0.512 GB, free: 148 kB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.197e-06/0.5225, allocations: 8 kB / 0.512 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.265e-06/0.5225, allocations: 0 / 0.512 GB, free: 140 kB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/0.5226, allocations: 3.984 kB / 0.512 GB, free: 136 kB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002145/0.5247, allocations: 1.491 MB / 0.5134 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.377e-06/0.5247, allocations: 0 / 0.5134 GB, free: 14.58 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004639/0.5252, allocations: 99.66 kB / 0.5135 GB, free: 14.48 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003699/0.5256, allocations: 140.6 kB / 0.5137 GB, free: 14.34 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.915e-05/0.5257, allocations: 19.98 kB / 0.5137 GB, free: 14.32 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002494/0.5282, allocations: 2.264 MB / 0.5159 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.625e-06/0.5282, allocations: 2.5 kB / 0.5159 GB, free: 11.93 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001627/0.5298, allocations: 1.039 MB / 0.5169 GB, free: 10.87 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003233/0.5301, allocations: 212 kB / 0.5171 GB, free: 10.64 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.094e-05/0.5302, allocations: 12 kB / 0.5171 GB, free: 10.63 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004715/0.5307, allocations: 51.95 kB / 0.5172 GB, free: 10.58 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.5309, allocations: 76.45 kB / 0.5173 GB, free: 10.5 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.009e-05/0.531, allocations: 23.98 kB / 0.5173 GB, free: 10.48 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.0005135/0.5315, allocations: 388.5 kB / 0.5176 GB, free: 10.11 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.683e-06/0.5315, allocations: 0 / 0.5176 GB, free: 10.11 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001115/0.5326, allocations: 382.9 kB / 0.518 GB, free: 9.734 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.001963/0.5346, allocations: 1.628 MB / 0.5196 GB, free: 8.074 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002315/0.5369, allocations: 1.373 MB / 0.5209 GB, free: 6.664 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.537, allocations: 4.5 kB / 0.5209 GB, free: 6.66 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007229/0.5377, allocations: 476.7 kB / 0.5214 GB, free: 6.18 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006696/0.5384, allocations: 111.4 kB / 0.5215 GB, free: 6.074 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002635/0.541, allocations: 1.213 MB / 0.5227 GB, free: 4.828 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005602/0.5416, allocations: 0.9834 MB / 0.5237 GB, free: 3.812 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0005316/0.5421, allocations: 134 kB / 0.5238 GB, free: 3.684 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003451/0.5425, allocations: 276.3 kB / 0.524 GB, free: 3.414 MB / 394.7 MB Notification: Performance of SimCode: time 9.82e-07/0.5425, allocations: 1.875 kB / 0.524 GB, free: 3.414 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03551/0.578, allocations: 17.76 MB / 0.5414 GB, free: 2.094 MB / 410.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001955/0.5782, allocations: 231.7 kB / 0.5416 GB, free: 1.828 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.432/3.011, allocations: 0 / 0.5416 GB, free: 1.828 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