Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001233/0.001233, allocations: 181.2 kB / 17.01 MB, free: 5.121 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.434/1.434, allocations: 205.4 MB / 223.1 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009398/0.0009398, allocations: 100.1 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002466/0.0002467, allocations: 12 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2081/0.2083, allocations: 47.55 MB / 375.9 MB, free: 45.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09166/0.3, allocations: 85.85 MB / 461.8 MB, free: 10.8 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002427/0.3003, allocations: 95.94 kB / 461.9 MB, free: 10.71 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03384/0.3342, allocations: 12.7 MB / 474.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.174e-06/0.3342, allocations: 3.938 kB / 474.6 MB, free: 13.94 MB / 362.7 MB Notification: Performance of Transformations before backend: time 4.724e-05/0.3343, allocations: 16 kB / 474.6 MB, free: 13.92 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: 173 * Number of variables: 173 Notification: Performance of Generate backend data structure: time 0.002071/0.3363, allocations: 1.093 MB / 475.7 MB, free: 12.76 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.826e-05/0.3364, allocations: 8.031 kB / 475.7 MB, free: 12.75 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001508/0.3365, allocations: 118.5 kB / 475.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001526/0.3367, allocations: 98.83 kB / 475.9 MB, free: 12.53 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008119/0.3375, allocations: 0.5318 MB / 476.4 MB, free: 11.96 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.083e-05/0.3376, allocations: 54 kB / 476.5 MB, free: 11.91 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.3377, allocations: 83.89 kB / 476.6 MB, free: 11.82 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00135/0.3391, allocations: 0.7745 MB / 477.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.151e-05/0.3391, allocations: 0 / 477.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.007e-05/0.3392, allocations: 35.94 kB / 477.4 MB, free: 10.99 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.59e-05/0.3392, allocations: 19.95 kB / 477.4 MB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001201/0.3404, allocations: 0.6167 MB / 478 MB, free: 10.35 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004051/0.3445, allocations: 2.725 MB / 480.7 MB, free: 7.516 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00112/0.3456, allocations: 0.5827 MB / 481.3 MB, free: 6.926 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.788e-05/0.3457, allocations: 8.562 kB / 481.3 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008135/0.3465, allocations: 473.7 kB / 481.8 MB, free: 6.438 MB / 362.7 MB Notification: Performance of pre-optimization done (n=69): time 2.575e-06/0.3465, allocations: 0 / 481.8 MB, free: 6.438 MB / 362.7 MB Notification: Performance of matching and sorting (n=69): time 0.002916/0.3494, allocations: 1.246 MB / 483 MB, free: 5.164 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.393e-05/0.3495, allocations: 123.3 kB / 483.1 MB, free: 5.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005564/0.3501, allocations: 478.2 kB / 483.6 MB, free: 4.547 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.197e-05/0.3501, allocations: 45.7 kB / 483.7 MB, free: 4.496 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002384/0.3504, allocations: 332.5 kB / 484 MB, free: 4.164 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.3506, allocations: 213 kB / 484.2 MB, free: 3.953 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.317e-05/0.3506, allocations: 16 kB / 484.2 MB, free: 3.938 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.3508, allocations: 382.8 kB / 484.6 MB, free: 3.555 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005052/0.3513, allocations: 249.9 kB / 484.8 MB, free: 3.309 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006157/0.3519, allocations: 430.2 kB / 485.2 MB, free: 2.82 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005714/0.3525, allocations: 319.7 kB / 485.6 MB, free: 2.5 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.337e-06/0.3525, allocations: 0 / 485.6 MB, free: 2.5 MB / 362.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001577/0.3541, allocations: 0.8757 MB / 486.4 MB, free: 1.609 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008889/0.355, allocations: 1.856 MB / 488.3 MB, free: 15.6 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.543e-05/0.355, allocations: 8 kB / 488.3 MB, free: 15.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004638/0.3555, allocations: 152.7 kB / 488.4 MB, free: 15.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000506/0.356, allocations: 131.8 kB / 488.6 MB, free: 15.31 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002719/0.3587, allocations: 2.313 MB / 490.9 MB, free: 12.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005536/0.3593, allocations: 99.44 kB / 491 MB, free: 12.77 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.169e-05/0.3594, allocations: 24 kB / 491 MB, free: 12.75 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.795e-06/0.3594, allocations: 7.938 kB / 491 MB, free: 12.74 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001393/0.3608, allocations: 0.781 MB / 491.8 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.725e-06/0.3608, allocations: 4.25 kB / 491.8 MB, free: 11.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003492/0.3612, allocations: 143.4 kB / 491.9 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004601/0.3616, allocations: 131.8 kB / 492.1 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002551/0.3642, allocations: 2.341 MB / 494.4 MB, free: 9.199 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000525/0.3647, allocations: 79.55 kB / 494.5 MB, free: 9.121 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.549e-05/0.3648, allocations: 31.94 kB / 494.5 MB, free: 9.09 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,fundamentalWaveCurrent.mean1.y,$PRE.fundamentalWaveCurrent.mean2.y,fundamentalWaveCurrent.mean2.y,$PRE.fundamentalWaveVoltage.mean1.y,fundamentalWaveVoltage.mean1.y,$PRE.fundamentalWaveVoltage.mean2.y,fundamentalWaveVoltage.mean2.y,$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.0004406/0.3652, allocations: 308.9 kB / 494.8 MB, free: 8.777 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001147/0.3654, allocations: 71.16 kB / 494.9 MB, free: 8.707 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001505/0.3669, allocations: 0.78 MB / 495.7 MB, free: 7.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.687e-06/0.3669, allocations: 11.95 kB / 495.7 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.724e-06/0.3669, allocations: 0 / 495.7 MB, free: 7.898 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.754e-06/0.3669, allocations: 7.984 kB / 495.7 MB, free: 7.891 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.3693, allocations: 1.584 MB / 497.3 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.256e-06/0.3693, allocations: 0 / 497.3 MB, free: 6.246 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004353/0.3698, allocations: 99.88 kB / 497.4 MB, free: 6.148 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003583/0.3702, allocations: 140.7 kB / 497.5 MB, free: 6.008 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.553e-05/0.3702, allocations: 12 kB / 497.5 MB, free: 5.996 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002507/0.3727, allocations: 2.329 MB / 499.8 MB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.3727, allocations: 0 / 499.8 MB, free: 3.543 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002041/0.3748, allocations: 1.198 MB / 0.4893 GB, free: 2.328 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002859/0.3751, allocations: 208.1 kB / 0.4895 GB, free: 2.105 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.855e-05/0.3752, allocations: 23.98 kB / 0.4895 GB, free: 2.082 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004522/0.3756, allocations: 55.95 kB / 0.4896 GB, free: 2.027 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001505/0.3758, allocations: 64.47 kB / 0.4896 GB, free: 1.961 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.573e-05/0.3759, allocations: 19.98 kB / 0.4897 GB, free: 1.941 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004384/0.3763, allocations: 370.8 kB / 0.49 GB, free: 1.582 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.6e-07/0.3763, allocations: 0 / 0.49 GB, free: 1.582 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001065/0.3774, allocations: 363.1 kB / 0.4904 GB, free: 1.227 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,fundamentalWaveVoltage.mean2.y,fundamentalWaveCurrent.mean1.y,fundamentalWaveCurrent.mean2.y) * 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.1533/0.5307, allocations: 1.774 MB / 0.4921 GB, free: 105.7 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.002819/0.5336, allocations: 1.528 MB / 0.4936 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.709e-06/0.5336, allocations: 0 / 0.4936 GB, free: 105.4 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007867/0.5344, allocations: 0.5277 MB / 0.4941 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006284/0.535, allocations: 105.9 kB / 0.4942 GB, free: 105.2 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003721/0.5388, allocations: 5.212 MB / 0.4993 GB, free: 101.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004514/0.5393, allocations: 0.9742 MB / 0.5002 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004394/0.5397, allocations: 98.09 kB / 0.5003 GB, free: 100.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003134/0.54, allocations: 272.8 kB / 0.5006 GB, free: 100.4 MB / 378.7 MB Notification: Performance of SimCode: time 5.761e-06/0.54, allocations: 0 / 0.5006 GB, free: 100.4 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03282/0.5729, allocations: 16.35 MB / 0.5166 GB, free: 95.96 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001735/0.5731, allocations: 253.1 kB / 0.5168 GB, free: 95.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.453/3.026, allocations: 0 / 0.5168 GB, free: 95.62 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_RL_res.mat does not exist to compare? outputFormat=mat