Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009398/0.0009397, allocations: 176.4 kB / 8.349 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.5 MB / 230.3 MB, free: 7.566 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009529/0.0009531, allocations: 94.84 kB / 281.2 MB, free: 5.32 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.972e-05/1.975e-05, allocations: 4 kB / 337.2 MB, free: 9.914 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08827/0.0883, allocations: 50.42 MB / 387.6 MB, free: 7.457 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3007/0.389, allocations: 85.31 MB / 472.9 MB, free: 9.383 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002712/0.3893, allocations: 83.95 kB / 473 MB, free: 9.301 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02709/0.4164, allocations: 10.02 MB / 483 MB, free: 15.22 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.232e-06/0.4165, allocations: 3.938 kB / 483 MB, free: 15.22 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.603e-05/0.4165, allocations: 12 kB / 483 MB, free: 15.21 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: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001334/0.4178, allocations: 0.7801 MB / 483.8 MB, free: 14.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.026e-05/0.4179, allocations: 16.02 kB / 483.8 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001216/0.418, allocations: 63.25 kB / 483.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005651/0.4186, allocations: 396.7 kB / 484.3 MB, free: 13.87 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.622e-05/0.4187, allocations: 16 kB / 484.3 MB, free: 13.85 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.218e-05/0.4187, allocations: 35.91 kB / 484.3 MB, free: 13.82 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005394/0.4193, allocations: 294.6 kB / 484.6 MB, free: 13.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006892/0.42, allocations: 426.8 kB / 485 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.636e-05/0.42, allocations: 0 / 485 MB, free: 13.09 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.359e-05/0.4201, allocations: 7.984 kB / 485 MB, free: 13.08 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.321e-05/0.4201, allocations: 12 kB / 485 MB, free: 13.07 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002486/0.4226, allocations: 1.76 MB / 486.8 MB, free: 11.22 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008429/0.4234, allocations: 365.8 kB / 487.1 MB, free: 10.85 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00039/0.4238, allocations: 210.6 kB / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.712e-05/0.4239, allocations: 4.328 kB / 487.4 MB, free: 10.64 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004261/0.4243, allocations: 249.2 kB / 487.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 2.094e-06/0.4243, allocations: 4 kB / 487.6 MB, free: 10.38 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0006374/0.425, allocations: 345.9 kB / 487.9 MB, free: 10.03 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.834e-05/0.425, allocations: 110.8 kB / 488 MB, free: 9.895 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002833/0.4253, allocations: 278.2 kB / 488.3 MB, free: 9.621 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.901e-05/0.4254, allocations: 33.64 kB / 488.4 MB, free: 9.582 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001657/0.4255, allocations: 252.6 kB / 488.6 MB, free: 9.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001012/0.4257, allocations: 126.2 kB / 488.7 MB, free: 9.207 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.169e-05/0.4257, allocations: 0 / 488.7 MB, free: 9.207 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.4258, allocations: 358.8 kB / 489.1 MB, free: 8.848 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001865/0.426, allocations: 105.1 kB / 489.2 MB, free: 8.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002562/0.4263, allocations: 231.5 kB / 489.4 MB, free: 8.469 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002066/0.4265, allocations: 133.8 kB / 489.5 MB, free: 8.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.4265, allocations: 4 kB / 489.5 MB, free: 8.336 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0006362/0.4271, allocations: 413.6 kB / 489.9 MB, free: 7.922 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004247/0.4276, allocations: 1.333 MB / 491.3 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.134e-06/0.4276, allocations: 8 kB / 491.3 MB, free: 6.473 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002539/0.4279, allocations: 72.77 kB / 491.4 MB, free: 6.398 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003809/0.4282, allocations: 95.88 kB / 491.4 MB, free: 6.305 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001416/0.4297, allocations: 1.631 MB / 493.1 MB, free: 4.555 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003762/0.4301, allocations: 59.62 kB / 493.1 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.49e-05/0.4301, allocations: 16 kB / 493.2 MB, free: 4.48 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.097e-06/0.4301, allocations: 4 kB / 493.2 MB, free: 4.477 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005883/0.4307, allocations: 364.7 kB / 493.5 MB, free: 4.117 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.882e-06/0.4307, allocations: 4 kB / 493.5 MB, free: 4.113 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.4309, allocations: 64.91 kB / 493.6 MB, free: 4.047 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003319/0.4313, allocations: 87.89 kB / 493.7 MB, free: 3.961 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00131/0.4326, allocations: 1.647 MB / 495.3 MB, free: 2.203 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003294/0.4329, allocations: 43.62 kB / 495.4 MB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.095e-05/0.433, allocations: 23.98 kB / 495.4 MB, free: 2.137 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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (53): * Single equations (assignments): 51 * 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.0001461/0.4331, allocations: 123.9 kB / 495.5 MB, free: 2.008 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.00053/0.4337, allocations: 342 kB / 495.8 MB, free: 1.664 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.62e-05/0.4337, allocations: 43.53 kB / 495.9 MB, free: 1.621 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006358/0.4344, allocations: 386.2 kB / 496.3 MB, free: 1.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.531e-06/0.4344, allocations: 7.953 kB / 496.3 MB, free: 1.223 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.583e-06/0.4344, allocations: 4 kB / 496.3 MB, free: 1.219 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.234e-06/0.4344, allocations: 3.984 kB / 496.3 MB, free: 1.215 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001218/0.4356, allocations: 0.9113 MB / 497.2 MB, free: 256 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.766e-06/0.4357, allocations: 0 / 497.2 MB, free: 256 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003603/0.436, allocations: 75.89 kB / 497.3 MB, free: 180 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002098/0.4362, allocations: 72.77 kB / 497.3 MB, free: 104 kB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.739e-05/0.4363, allocations: 8.062 kB / 497.3 MB, free: 96 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001314/0.4376, allocations: 1.63 MB / 499 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.564e-06/0.4376, allocations: 0 / 499 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008217/0.4384, allocations: 0.6504 MB / 499.6 MB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001552/0.4386, allocations: 152.6 kB / 499.8 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.821e-05/0.4387, allocations: 0 / 499.8 MB, free: 13.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003334/0.439, allocations: 31.97 kB / 499.8 MB, free: 13.46 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000107/0.4391, allocations: 59.81 kB / 499.9 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.897e-05/0.4392, allocations: 16 kB / 499.9 MB, free: 13.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001903/0.4394, allocations: 204.6 kB / 0.4883 GB, free: 13.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4394, allocations: 0 / 0.4883 GB, free: 13.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008544/0.4402, allocations: 231.2 kB / 0.4886 GB, free: 12.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v,loadInductor.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_last,meanVoltage.y_last) * 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 (39): * Single equations (assignments): 32 * 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.001158/0.4414, allocations: 1.335 MB / 0.4899 GB, free: 11.59 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001138/0.4426, allocations: 0.856 MB / 0.4907 GB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.4426, allocations: 7.938 kB / 0.4907 GB, free: 10.68 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003803/0.443, allocations: 293.5 kB / 0.491 GB, free: 10.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004219/0.4434, allocations: 58.12 kB / 0.491 GB, free: 10.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001871/0.4453, allocations: 0.8894 MB / 0.4919 GB, free: 9.383 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004291/0.4457, allocations: 0.8676 MB / 0.4928 GB, free: 8.484 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002842/0.446, allocations: 63.27 kB / 0.4928 GB, free: 8.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002383/0.4463, allocations: 179.4 kB / 0.493 GB, free: 8.242 MB / 378.7 MB Notification: Performance of SimCode: time 3.71e-07/0.4463, allocations: 0 / 0.493 GB, free: 8.242 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02996/0.4762, allocations: 9.878 MB / 0.5026 GB, free: 14.47 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001719/0.4765, allocations: 180.1 kB / 0.5028 GB, free: 14.28 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.137/2.614, allocations: 0 / 0.5028 GB, free: 14.28 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat