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_R.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_R,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.0009983/0.0009983, allocations: 172.9 kB / 14.1 MB, free: 1.223 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.471/1.471, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0009115/0.0009115, allocations: 86.59 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.818e-05/2.82e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08958/0.08963, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.296/0.3857, allocations: 85.45 MB / 455.6 MB, free: 7.875 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002304/0.386, allocations: 90.12 kB / 455.7 MB, free: 7.824 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03436/0.4204, allocations: 12.36 MB / 468 MB, free: 12.82 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4204, allocations: 0 / 468 MB, free: 12.82 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.439e-05/0.4205, allocations: 16 kB / 468.1 MB, free: 12.81 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 167 * Number of variables: 167 Notification: Performance of Generate backend data structure: time 0.001784/0.4223, allocations: 0.9912 MB / 469 MB, free: 11.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.973e-05/0.4223, allocations: 8.031 kB / 469.1 MB, free: 11.75 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001499/0.4225, allocations: 110.5 kB / 469.2 MB, free: 11.63 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001532/0.4226, allocations: 98.83 kB / 469.3 MB, free: 11.53 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008008/0.4234, allocations: 0.524 MB / 469.8 MB, free: 10.96 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.127e-05/0.4235, allocations: 53.98 kB / 469.8 MB, free: 10.91 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001024/0.4236, allocations: 72 kB / 469.9 MB, free: 10.84 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001139/0.4248, allocations: 0.6953 MB / 470.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.95e-05/0.4248, allocations: 0 / 470.6 MB, free: 10.12 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.749e-05/0.4249, allocations: 31.98 kB / 470.6 MB, free: 10.09 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.46e-05/0.4249, allocations: 16 kB / 470.6 MB, free: 10.07 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008778/0.4258, allocations: 493.1 kB / 471.1 MB, free: 9.59 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003877/0.4296, allocations: 2.648 MB / 473.8 MB, free: 6.844 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009045/0.4306, allocations: 0.522 MB / 474.3 MB, free: 6.309 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003994/0.431, allocations: 266.5 kB / 474.6 MB, free: 6.043 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.103e-05/0.431, allocations: 8.562 kB / 474.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006303/0.4317, allocations: 406.5 kB / 475 MB, free: 5.625 MB / 346.7 MB Notification: Performance of pre-optimization done (n=67): time 2.324e-06/0.4317, allocations: 0 / 475 MB, free: 5.625 MB / 346.7 MB Notification: Performance of matching and sorting (n=67): time 0.00109/0.4328, allocations: 0.6084 MB / 475.6 MB, free: 5.004 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.423e-05/0.4329, allocations: 123.4 kB / 475.7 MB, free: 4.859 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005613/0.4334, allocations: 472.8 kB / 476.2 MB, free: 4.387 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.003e-05/0.4335, allocations: 49.69 kB / 476.2 MB, free: 4.332 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002355/0.4337, allocations: 324.6 kB / 476.5 MB, free: 4.012 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001604/0.4339, allocations: 201.2 kB / 476.7 MB, free: 3.812 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.434, allocations: 12 kB / 476.7 MB, free: 3.801 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001687/0.4341, allocations: 386.7 kB / 477.1 MB, free: 3.414 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003395/0.4345, allocations: 181.6 kB / 477.3 MB, free: 3.238 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004671/0.435, allocations: 363.9 kB / 477.6 MB, free: 2.805 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004081/0.4354, allocations: 251.3 kB / 477.9 MB, free: 2.555 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.81e-06/0.4354, allocations: 4 kB / 477.9 MB, free: 2.551 MB / 346.7 MB Notification: Performance of matching and sorting (n=88) (initialization): time 0.001161/0.4365, allocations: 0.7396 MB / 478.6 MB, free: 1.793 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.00063/0.4372, allocations: 1.862 MB / 480.5 MB, free: 15.79 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.312e-05/0.4372, allocations: 4 kB / 480.5 MB, free: 15.78 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005245/0.4377, allocations: 152.7 kB / 480.6 MB, free: 15.63 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005116/0.4383, allocations: 123.8 kB / 480.8 MB, free: 15.51 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002733/0.441, allocations: 2.316 MB / 483.1 MB, free: 13.06 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006293/0.4417, allocations: 91.45 kB / 483.2 MB, free: 12.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.056e-05/0.4417, allocations: 35.94 kB / 483.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.728e-06/0.4417, allocations: 7.938 kB / 483.2 MB, free: 12.93 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001137/0.4429, allocations: 0.6687 MB / 483.9 MB, free: 12.25 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.973e-06/0.4429, allocations: 4 kB / 483.9 MB, free: 12.24 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003818/0.4433, allocations: 144.8 kB / 484 MB, free: 12.1 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004354/0.4437, allocations: 120 kB / 484.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002503/0.4463, allocations: 2.303 MB / 486.4 MB, free: 9.547 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005709/0.4468, allocations: 87.45 kB / 486.5 MB, free: 9.461 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.678e-05/0.4469, allocations: 27.98 kB / 486.6 MB, free: 9.434 MB / 362.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 () * 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.0002262/0.4471, allocations: 165 kB / 486.7 MB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00011/0.4472, allocations: 71.28 kB / 486.8 MB, free: 9.195 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001181/0.4484, allocations: 0.659 MB / 487.4 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.833e-06/0.4485, allocations: 8 kB / 487.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.823e-06/0.4485, allocations: 0 / 487.5 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.436e-06/0.4485, allocations: 7.984 kB / 487.5 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00212/0.4506, allocations: 1.455 MB / 488.9 MB, free: 6.988 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4506, allocations: 4 kB / 488.9 MB, free: 6.984 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004111/0.451, allocations: 83.88 kB / 489 MB, free: 6.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003928/0.4514, allocations: 144.7 kB / 489.1 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.682e-05/0.4515, allocations: 15.98 kB / 489.2 MB, free: 6.742 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002411/0.4539, allocations: 2.314 MB / 491.5 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.4539, allocations: 0 / 491.5 MB, free: 4.293 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001541/0.4555, allocations: 1.016 MB / 492.5 MB, free: 3.258 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002905/0.4558, allocations: 212 kB / 492.7 MB, free: 3.031 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.887e-05/0.4559, allocations: 12 kB / 492.7 MB, free: 3.02 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.4563, allocations: 60.14 kB / 492.8 MB, free: 2.961 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000151/0.4565, allocations: 76.33 kB / 492.8 MB, free: 2.887 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.4566, allocations: 31.91 kB / 492.9 MB, free: 2.855 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004309/0.457, allocations: 353.6 kB / 493.2 MB, free: 2.516 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.457, allocations: 0 / 493.2 MB, free: 2.516 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001087/0.4581, allocations: 355.2 kB / 493.6 MB, free: 2.168 MB / 362.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,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) * 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.001887/0.46, allocations: 1.603 MB / 495.2 MB, free: 0.5391 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002137/0.4622, allocations: 1.361 MB / 496.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.118e-06/0.4622, allocations: 0 / 496.5 MB, free: 15.12 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006827/0.4629, allocations: 489.3 kB / 497 MB, free: 14.64 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005872/0.4635, allocations: 113.1 kB / 497.1 MB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002273/0.4657, allocations: 1.122 MB / 498.2 MB, free: 13.37 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000499/0.4663, allocations: 0.9599 MB / 499.2 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0004883/0.4668, allocations: 121.1 kB / 499.3 MB, free: 12.26 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003242/0.4671, allocations: 259.3 kB / 499.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of SimCode: time 1.022e-06/0.4671, allocations: 0 / 499.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03463/0.5017, allocations: 17.41 MB / 0.5049 GB, free: 10.57 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/0.502, allocations: 230.9 kB / 0.5051 GB, free: 10.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.428/2.93, allocations: 0 / 0.5051 GB, free: 10.34 MB / 394.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCAC_SinglePhaseTwoLevel_SinglePhaseTwoLevel_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCAC.SinglePhaseTwoLevel.SinglePhaseTwoLevel_R.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_R_res.mat does not exist to compare? outputFormat=mat