Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001511/0.001511, allocations: 185.9 kB / 16.41 MB, free: 5.723 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.085/2.085, allocations: 205.4 MB / 222.5 MB, free: 9.129 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.001116/0.001116, allocations: 89.55 kB / 270.9 MB, free: 8.391 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004094/0.0004095, allocations: 8 kB / 327.1 MB, free: 104 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3324/0.3328, allocations: 47.57 MB / 374.7 MB, free: 45.31 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1383/0.4711, allocations: 83.65 MB / 458.3 MB, free: 13 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003479/0.4715, allocations: 87.94 kB / 458.4 MB, free: 12.92 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03338/0.5049, allocations: 7.338 MB / 465.7 MB, free: 5.543 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.065e-06/0.505, allocations: 0 / 465.7 MB, free: 5.543 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.391e-05/0.5051, allocations: 8 kB / 465.7 MB, free: 5.535 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002179/0.5072, allocations: 0.7664 MB / 466.5 MB, free: 4.711 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.309e-05/0.5073, allocations: 12.03 kB / 466.5 MB, free: 4.699 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000207/0.5075, allocations: 74.53 kB / 466.6 MB, free: 4.617 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.5077, allocations: 51.44 kB / 466.6 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008459/0.5086, allocations: 382.9 kB / 467 MB, free: 4.152 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.575e-05/0.5086, allocations: 29 kB / 467 MB, free: 4.125 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001238/0.5088, allocations: 51.98 kB / 467.1 MB, free: 4.074 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001394/0.5102, allocations: 460.6 kB / 467.5 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.951e-05/0.5103, allocations: 0 / 467.5 MB, free: 3.605 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.624e-05/0.5104, allocations: 20 kB / 467.6 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.812e-05/0.5104, allocations: 12 kB / 467.6 MB, free: 3.574 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.5116, allocations: 323.8 kB / 467.9 MB, free: 3.258 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004226/0.5159, allocations: 1.682 MB / 469.6 MB, free: 1.477 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001177/0.5171, allocations: 309.2 kB / 469.9 MB, free: 1.168 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.111e-05/0.5172, allocations: 4 kB / 469.9 MB, free: 1.164 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006862/0.5179, allocations: 242.2 kB / 470.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 2.865e-06/0.5179, allocations: 0 / 470.1 MB, free: 0.9102 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.002288/0.5202, allocations: 0.5622 MB / 470.7 MB, free: 328 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.5203, allocations: 114.7 kB / 470.8 MB, free: 188 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007478/0.5211, allocations: 340.7 kB / 471.1 MB, free: 15.84 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 9.897e-05/0.5212, allocations: 41.64 kB / 471.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002277/0.5215, allocations: 274.9 kB / 471.4 MB, free: 15.53 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001514/0.5216, allocations: 102.5 kB / 471.5 MB, free: 15.43 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.078e-05/0.5217, allocations: 12 kB / 471.5 MB, free: 15.41 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.5218, allocations: 330.8 kB / 471.9 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005/0.5223, allocations: 116.8 kB / 472 MB, free: 14.97 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005991/0.523, allocations: 266.7 kB / 472.2 MB, free: 14.65 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005358/0.5235, allocations: 162.8 kB / 472.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.5235, allocations: 0 / 472.4 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001459/0.525, allocations: 474.3 kB / 472.9 MB, free: 14.01 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006306/0.5257, allocations: 1.339 MB / 474.2 MB, free: 12.56 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.807e-05/0.5257, allocations: 8 kB / 474.2 MB, free: 12.55 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005459/0.5263, allocations: 72.81 kB / 474.3 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005433/0.5268, allocations: 67.83 kB / 474.3 MB, free: 12.41 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002628/0.5295, allocations: 1.714 MB / 476.1 MB, free: 10.57 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007349/0.5303, allocations: 75.72 kB / 476.1 MB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.361e-05/0.5304, allocations: 15.95 kB / 476.1 MB, free: 10.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.342e-05/0.5304, allocations: 4 kB / 476.1 MB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001238/0.5316, allocations: 414.2 kB / 476.6 MB, free: 10.06 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.5317, allocations: 4 kB / 476.6 MB, free: 10.05 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003471/0.532, allocations: 76.75 kB / 476.6 MB, free: 9.977 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004197/0.5325, allocations: 59.91 kB / 476.7 MB, free: 9.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002526/0.535, allocations: 1.698 MB / 478.4 MB, free: 8.09 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005088/0.5356, allocations: 47.73 kB / 478.4 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.572e-05/0.5356, allocations: 12 kB / 478.4 MB, free: 8.031 MB / 362.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,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (44): * Single equations (assignments): 42 * 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.000458/0.5361, allocations: 263.7 kB / 478.7 MB, free: 7.762 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001375/0.5362, allocations: 39.53 kB / 478.7 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000138/0.5364, allocations: 52.2 kB / 478.8 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.811e-06/0.5364, allocations: 0 / 478.8 MB, free: 7.672 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.5364, allocations: 4 kB / 478.8 MB, free: 7.668 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.017e-05/0.5364, allocations: 7.922 kB / 478.8 MB, free: 7.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002107/0.5386, allocations: 0.8894 MB / 479.7 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.833e-06/0.5386, allocations: 0 / 479.7 MB, free: 6.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003627/0.539, allocations: 40.23 kB / 479.7 MB, free: 6.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000374/0.5394, allocations: 72.8 kB / 479.8 MB, free: 6.598 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.422e-05/0.5394, allocations: 8 kB / 479.8 MB, free: 6.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002419/0.5419, allocations: 1.706 MB / 481.5 MB, free: 4.746 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.5419, allocations: 4.031 kB / 481.5 MB, free: 4.742 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001684/0.5436, allocations: 0.5784 MB / 482.1 MB, free: 4.141 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002973/0.544, allocations: 140.6 kB / 482.2 MB, free: 3.984 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000105/0.5441, allocations: 19.94 kB / 482.3 MB, free: 3.965 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004925/0.5446, allocations: 27.98 kB / 482.3 MB, free: 3.938 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001613/0.5448, allocations: 43.88 kB / 482.3 MB, free: 3.895 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.094e-05/0.5448, allocations: 12 kB / 482.3 MB, free: 3.883 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005332/0.5454, allocations: 263.2 kB / 482.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/0.5454, allocations: 0 / 482.6 MB, free: 3.633 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001193/0.5466, allocations: 211.4 kB / 482.8 MB, free: 3.426 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.00203/0.5486, allocations: 1.147 MB / 483.9 MB, free: 2.25 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002275/0.551, allocations: 0.88 MB / 484.8 MB, free: 1.32 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.986e-06/0.551, allocations: 0 / 484.8 MB, free: 1.32 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007126/0.5517, allocations: 286.5 kB / 485.1 MB, free: 1.027 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007175/0.5525, allocations: 78.02 kB / 485.2 MB, free: 0.9492 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004314/0.5568, allocations: 3.525 MB / 488.7 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005572/0.5574, allocations: 0.8351 MB / 489.5 MB, free: 12.43 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003727/0.5578, allocations: 150.8 kB / 489.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of SimCode: time 1.192e-06/0.5578, allocations: 0 / 489.7 MB, free: 12.29 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.801/3.358, allocations: 8.628 MB / 498.3 MB, free: 3.672 MB / 378.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat