Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_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.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_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.001143/0.001143, allocations: 172.5 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.522/1.522, allocations: 205.2 MB / 219.8 MB, free: 14.2 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.000938/0.0009382, allocations: 86.72 kB / 268 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.699e-05/2.724e-05, allocations: 4 kB / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08756/0.0876, allocations: 47.57 MB / 370.1 MB, free: 1.605 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3211/0.4088, allocations: 83.55 MB / 453.7 MB, free: 9.789 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002655/0.4091, allocations: 85.81 kB / 453.8 MB, free: 9.742 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02028/0.4294, allocations: 7.342 MB / 461.1 MB, free: 3.52 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.533e-06/0.4294, allocations: 0 / 461.1 MB, free: 3.52 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.335e-05/0.4295, allocations: 12 kB / 461.1 MB, free: 3.508 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00127/0.4307, allocations: 0.7094 MB / 461.8 MB, free: 2.777 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.729e-05/0.4308, allocations: 12.03 kB / 461.8 MB, free: 2.766 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.361e-05/0.4309, allocations: 80.14 kB / 461.9 MB, free: 2.703 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.431, allocations: 55.34 kB / 462 MB, free: 2.648 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005497/0.4316, allocations: 366.3 kB / 462.3 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.032e-05/0.4316, allocations: 31.56 kB / 462.4 MB, free: 2.277 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.179e-05/0.4317, allocations: 46.34 kB / 462.4 MB, free: 2.246 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006794/0.4324, allocations: 434.1 kB / 462.8 MB, free: 1.93 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.124e-05/0.4324, allocations: 4 kB / 462.8 MB, free: 1.926 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.431e-05/0.4325, allocations: 20.8 kB / 462.9 MB, free: 1.918 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.235e-05/0.4325, allocations: 8 kB / 462.9 MB, free: 1.91 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004816/0.433, allocations: 276.7 kB / 463.1 MB, free: 1.656 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00247/0.4354, allocations: 1.686 MB / 464.8 MB, free: 15.87 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006655/0.4361, allocations: 282.9 kB / 465.1 MB, free: 15.59 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003365/0.4365, allocations: 148.8 kB / 465.2 MB, free: 15.44 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.586e-05/0.4365, allocations: 11.94 kB / 465.3 MB, free: 15.43 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004298/0.437, allocations: 233.5 kB / 465.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 1.803e-06/0.437, allocations: 0 / 465.5 MB, free: 15.18 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.0007107/0.4377, allocations: 317.8 kB / 465.8 MB, free: 14.86 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.947e-05/0.4378, allocations: 144.5 kB / 465.9 MB, free: 14.68 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003962/0.4382, allocations: 319.5 kB / 466.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.328e-05/0.4383, allocations: 37.7 kB / 466.3 MB, free: 14.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001707/0.4384, allocations: 224.4 kB / 466.5 MB, free: 14.1 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.267e-05/0.4385, allocations: 110.5 kB / 466.6 MB, free: 13.99 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.217e-05/0.4386, allocations: 11.94 kB / 466.6 MB, free: 13.98 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001727/0.4387, allocations: 346.8 kB / 467 MB, free: 13.63 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001816/0.4389, allocations: 92.88 kB / 467 MB, free: 13.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000269/0.4392, allocations: 231.8 kB / 467.3 MB, free: 13.25 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.4394, allocations: 138.2 kB / 467.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4394, allocations: 0 / 467.4 MB, free: 13.11 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0006872/0.4401, allocations: 451.6 kB / 467.9 MB, free: 12.66 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006144/0.4408, allocations: 1.42 MB / 469.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.786e-06/0.4408, allocations: 4 kB / 469.3 MB, free: 11.12 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003202/0.4411, allocations: 80.8 kB / 469.4 MB, free: 11.04 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002965/0.4414, allocations: 75.84 kB / 469.4 MB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001859/0.4433, allocations: 1.757 MB / 471.2 MB, free: 9.07 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003645/0.4437, allocations: 59.91 kB / 471.2 MB, free: 9.012 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.4437, allocations: 24 kB / 471.3 MB, free: 8.988 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.766e-06/0.4437, allocations: 7.922 kB / 471.3 MB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005982/0.4443, allocations: 390.8 kB / 471.7 MB, free: 8.59 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4444, allocations: 8 kB / 471.7 MB, free: 8.582 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002131/0.4446, allocations: 80.75 kB / 471.7 MB, free: 8.5 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001963/0.4448, allocations: 55.92 kB / 471.8 MB, free: 8.445 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001665/0.4465, allocations: 1.756 MB / 473.6 MB, free: 6.551 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003119/0.4468, allocations: 51.8 kB / 473.6 MB, free: 6.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.633e-05/0.4468, allocations: 16 kB / 473.6 MB, free: 6.484 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.000171/0.447, allocations: 143.1 kB / 473.8 MB, free: 6.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.967e-05/0.4471, allocations: 39.53 kB / 473.8 MB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001143/0.4472, allocations: 48.27 kB / 473.8 MB, free: 6.254 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.388e-06/0.4472, allocations: 4 kB / 473.8 MB, free: 6.25 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4472, allocations: 3.953 kB / 473.9 MB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4472, allocations: 7.984 kB / 473.9 MB, free: 6.238 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001327/0.4486, allocations: 0.9723 MB / 474.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.549e-06/0.4486, allocations: 64 / 474.8 MB, free: 5.199 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001832/0.4488, allocations: 43.91 kB / 474.9 MB, free: 5.156 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001905/0.449, allocations: 68.78 kB / 474.9 MB, free: 5.086 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.449, allocations: 12.03 kB / 475 MB, free: 5.074 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001579/0.4506, allocations: 1.686 MB / 476.6 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.273e-06/0.4506, allocations: 0 / 476.6 MB, free: 3.258 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000791/0.4514, allocations: 0.5638 MB / 477.2 MB, free: 2.664 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001615/0.4516, allocations: 148.6 kB / 477.3 MB, free: 2.5 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.275e-05/0.4517, allocations: 15.94 kB / 477.4 MB, free: 2.484 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002855/0.4519, allocations: 31.97 kB / 477.4 MB, free: 2.453 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001185/0.4521, allocations: 35.89 kB / 477.4 MB, free: 2.418 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.959e-05/0.4521, allocations: 15.98 kB / 477.4 MB, free: 2.402 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003019/0.4524, allocations: 246.2 kB / 477.7 MB, free: 2.164 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.4524, allocations: 4 kB / 477.7 MB, free: 2.16 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0008383/0.4533, allocations: 207.5 kB / 477.9 MB, free: 1.957 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.fire_p,chopperStepDown.transistor.off,chopperStepDown.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 (29): * Single equations (assignments): 22 * 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.001176/0.4545, allocations: 1.208 MB / 479.1 MB, free: 0.7109 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001274/0.4557, allocations: 0.8426 MB / 479.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.4558, allocations: 0 / 479.9 MB, free: 15.82 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003546/0.4561, allocations: 270.2 kB / 480.2 MB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000392/0.4565, allocations: 70.17 kB / 480.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001532/0.4581, allocations: 0.6831 MB / 481 MB, free: 14.75 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004573/0.4585, allocations: 0.8357 MB / 481.8 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002512/0.4588, allocations: 59.23 kB / 481.9 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.459, allocations: 135.4 kB / 482 MB, free: 13.7 MB / 362.7 MB Notification: Performance of SimCode: time 4.71e-07/0.459, allocations: 0 / 482 MB, free: 13.7 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02742/0.4864, allocations: 10.04 MB / 492 MB, free: 3.648 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002341/0.4867, allocations: 219.6 kB / 492.2 MB, free: 3.422 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.178/2.665, allocations: 3.953 kB / 492.2 MB, free: 3.418 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat