Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_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.001558/0.001558, allocations: 172.2 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.434/1.434, 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.0007417/0.0007417, allocations: 90.7 kB / 268 MB, free: 14.1 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.719e-05/2.739e-05, allocations: 7.922 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09533/0.09537, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3132/0.4086, allocations: 83.12 MB / 453.2 MB, free: 10.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003069/0.409, allocations: 85.69 kB / 453.3 MB, free: 10.21 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02014/0.4291, allocations: 7.648 MB / 461 MB, free: 3.73 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.4291, allocations: 0 / 461 MB, free: 3.73 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.424e-05/0.4292, allocations: 8 kB / 461 MB, free: 3.723 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001196/0.4304, allocations: 0.7233 MB / 461.7 MB, free: 2.984 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.484e-05/0.4304, allocations: 12.03 kB / 461.7 MB, free: 2.973 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.962e-05/0.4305, allocations: 81.02 kB / 461.8 MB, free: 2.91 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001006/0.4307, allocations: 59.25 kB / 461.9 MB, free: 2.852 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.4312, allocations: 380.8 kB / 462.2 MB, free: 2.488 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.088e-05/0.4312, allocations: 34.12 kB / 462.3 MB, free: 2.465 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.077e-05/0.4313, allocations: 49.8 kB / 462.3 MB, free: 2.43 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007216/0.432, allocations: 449.7 kB / 462.8 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.914e-05/0.4321, allocations: 0 / 462.8 MB, free: 2.02 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.726e-05/0.4321, allocations: 23.98 kB / 462.8 MB, free: 1.996 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.117e-05/0.4321, allocations: 11.94 kB / 462.8 MB, free: 1.984 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004882/0.4326, allocations: 287.9 kB / 463.1 MB, free: 1.703 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002403/0.435, allocations: 1.71 MB / 464.8 MB, free: 15.9 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006241/0.4357, allocations: 307.2 kB / 465.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003787/0.4361, allocations: 204.6 kB / 465.3 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.4361, allocations: 8.531 kB / 465.3 MB, free: 15.38 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003853/0.4365, allocations: 247.7 kB / 465.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 2.054e-06/0.4365, allocations: 0 / 465.5 MB, free: 15.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.0006528/0.4372, allocations: 342.9 kB / 465.9 MB, free: 14.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.815e-05/0.4372, allocations: 114.8 kB / 466 MB, free: 14.63 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003459/0.4376, allocations: 315.5 kB / 466.3 MB, free: 14.31 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.669e-05/0.4376, allocations: 33.7 kB / 466.3 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001421/0.4378, allocations: 232.4 kB / 466.5 MB, free: 14.04 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.54e-05/0.4379, allocations: 118.4 kB / 466.7 MB, free: 13.93 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.302e-05/0.4379, allocations: 8 kB / 466.7 MB, free: 13.92 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001187/0.438, allocations: 354.8 kB / 467 MB, free: 13.56 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001787/0.4382, allocations: 105.1 kB / 467.1 MB, free: 13.46 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002557/0.4385, allocations: 228.1 kB / 467.3 MB, free: 13.18 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002201/0.4387, allocations: 161.8 kB / 467.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.4387, allocations: 0 / 467.5 MB, free: 13.02 MB / 346.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0006598/0.4394, allocations: 459.4 kB / 467.9 MB, free: 12.55 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004484/0.4399, allocations: 1.344 MB / 469.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.4399, allocations: 4 kB / 469.3 MB, free: 11.1 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002749/0.4402, allocations: 76.78 kB / 469.4 MB, free: 11.02 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002967/0.4405, allocations: 79.89 kB / 469.4 MB, free: 10.94 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001548/0.442, allocations: 1.69 MB / 471.1 MB, free: 9.117 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003496/0.4424, allocations: 71.59 kB / 471.2 MB, free: 9.047 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.39e-05/0.4424, allocations: 23.92 kB / 471.2 MB, free: 9.023 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.015e-06/0.4424, allocations: 7.125 kB / 471.2 MB, free: 9.02 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005913/0.443, allocations: 413.6 kB / 471.6 MB, free: 8.605 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.526e-06/0.4431, allocations: 4 kB / 471.6 MB, free: 8.602 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001783/0.4432, allocations: 68.83 kB / 471.7 MB, free: 8.531 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002559/0.4435, allocations: 84.27 kB / 471.8 MB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001367/0.4449, allocations: 1.679 MB / 473.5 MB, free: 6.633 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002932/0.4452, allocations: 51.67 kB / 473.5 MB, free: 6.582 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.7e-05/0.4452, allocations: 16 kB / 473.5 MB, free: 6.566 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.firstTrigger,$PRE.meanCurrent.y,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$whenCondition2,$whenCondition1,$whenCondition4,signalPWM.zeroOrderHold.sampleTrigger,signalPWM.zeroOrderHold.ySample,$whenCondition3,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.diode.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 (48): * Single equations (assignments): 46 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0001357/0.4454, allocations: 151.9 kB / 473.7 MB, free: 6.414 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.666e-05/0.4454, allocations: 47.53 kB / 473.7 MB, free: 6.367 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001084/0.4456, allocations: 44.27 kB / 473.8 MB, free: 6.324 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.4456, allocations: 4 kB / 473.8 MB, free: 6.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.446e-06/0.4456, allocations: 7.891 kB / 473.8 MB, free: 6.312 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.342e-06/0.4456, allocations: 3.984 kB / 473.8 MB, free: 6.309 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001187/0.4468, allocations: 0.9134 MB / 474.7 MB, free: 5.332 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.4468, allocations: 4 kB / 474.7 MB, free: 5.328 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002341/0.447, allocations: 55.97 kB / 474.8 MB, free: 5.273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001821/0.4472, allocations: 72.77 kB / 474.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.4473, allocations: 8 kB / 474.8 MB, free: 5.191 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00137/0.4486, allocations: 1.675 MB / 476.5 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4487, allocations: 0 / 476.5 MB, free: 3.387 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000787/0.4495, allocations: 0.5883 MB / 477.1 MB, free: 2.77 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001577/0.4496, allocations: 156.4 kB / 477.3 MB, free: 2.598 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.293e-05/0.4497, allocations: 12 kB / 477.3 MB, free: 2.586 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002863/0.45, allocations: 35.97 kB / 477.3 MB, free: 2.551 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.741e-05/0.4501, allocations: 39.94 kB / 477.3 MB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.423e-05/0.4501, allocations: 8 kB / 477.4 MB, free: 2.504 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002585/0.4504, allocations: 246.2 kB / 477.6 MB, free: 2.266 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.4504, allocations: 0 / 477.6 MB, free: 2.266 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007717/0.4512, allocations: 235.4 kB / 477.8 MB, free: 2.035 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductorSource.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.diode.off,signalPWM.zeroOrderHold.firstTrigger,signalPWM.zeroOrderHold.ySample,signalPWM.sawtooth.T_start,signalPWM.sawtooth.count,meanCurrent.y,meanVoltage.y) * Number of discrete states: 4 (signalPWM.sawtooth.count,meanCurrent.x,meanVoltage.x,signalPWM.zeroOrderHold.ySample) * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 25 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * 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 {2 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.001117/0.4523, allocations: 1.224 MB / 479 MB, free: 0.7734 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.4535, allocations: 0.8647 MB / 479.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.4535, allocations: 1.5 kB / 479.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003443/0.4539, allocations: 282.2 kB / 480.2 MB, free: 15.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004098/0.4543, allocations: 81.3 kB / 480.3 MB, free: 15.49 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001542/0.4558, allocations: 0.7873 MB / 481.1 MB, free: 14.66 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004333/0.4563, allocations: 0.8443 MB / 481.9 MB, free: 13.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002609/0.4565, allocations: 71.14 kB / 482 MB, free: 13.72 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002017/0.4567, allocations: 147.4 kB / 482.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of SimCode: time 7.02e-07/0.4568, allocations: 0 / 482.1 MB, free: 13.58 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02589/0.4826, allocations: 10.33 MB / 492.4 MB, free: 3.234 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001806/0.4829, allocations: 214.9 kB / 492.7 MB, free: 3.008 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.688, allocations: 0 / 492.7 MB, free: 3.008 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat