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.001187/0.001187, allocations: 174.7 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.273/1.273, allocations: 221.3 MB / 235.5 MB, free: 2.953 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.0008282/0.0008279, allocations: 86.94 kB / 286.5 MB, free: 240 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.744e-05/2.747e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09964/0.09968, allocations: 50.42 MB / 394.4 MB, free: 1.754 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3164/0.4161, allocations: 85.98 MB / 480.3 MB, free: 1.484 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002321/0.4164, allocations: 87.94 kB / 480.4 MB, free: 1.398 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02766/0.4441, allocations: 10.11 MB / 490.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4441, allocations: 0 / 490.5 MB, free: 7.234 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.104e-05/0.4442, allocations: 15.94 kB / 490.5 MB, free: 7.219 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.001629/0.4458, allocations: 0.7876 MB / 491.3 MB, free: 6.379 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.361e-05/0.4459, allocations: 12.03 kB / 491.3 MB, free: 6.367 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001444/0.446, allocations: 82.52 kB / 491.4 MB, free: 6.277 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001551/0.4462, allocations: 67.25 kB / 491.5 MB, free: 6.211 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006643/0.4469, allocations: 404.3 kB / 491.9 MB, free: 5.773 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.094e-05/0.4469, allocations: 37 kB / 491.9 MB, free: 5.734 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.084e-05/0.447, allocations: 55.91 kB / 492 MB, free: 5.68 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008405/0.4479, allocations: 0.489 MB / 492.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.4479, allocations: 0 / 492.5 MB, free: 5.172 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.817e-05/0.448, allocations: 20 kB / 492.5 MB, free: 5.152 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.234e-05/0.448, allocations: 12 kB / 492.5 MB, free: 5.141 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005925/0.4486, allocations: 319.9 kB / 492.8 MB, free: 4.824 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002762/0.4513, allocations: 1.861 MB / 494.7 MB, free: 2.859 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009062/0.4523, allocations: 380.1 kB / 495 MB, free: 2.477 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004233/0.4527, allocations: 214.7 kB / 495.3 MB, free: 2.266 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.917e-05/0.4528, allocations: 16.3 kB / 495.3 MB, free: 2.25 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004492/0.4532, allocations: 261.1 kB / 495.5 MB, free: 1.977 MB / 362.7 MB Notification: Performance of pre-optimization done (n=44): time 2.184e-06/0.4532, allocations: 8 kB / 495.5 MB, free: 1.969 MB / 362.7 MB Notification: Performance of matching and sorting (n=44): time 0.0007477/0.454, allocations: 369.9 kB / 495.9 MB, free: 1.598 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.201e-05/0.4541, allocations: 114.8 kB / 496 MB, free: 1.461 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004354/0.4545, allocations: 330.8 kB / 496.3 MB, free: 1.137 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 6.048e-05/0.4546, allocations: 37.7 kB / 496.4 MB, free: 1.094 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002146/0.4548, allocations: 253 kB / 496.6 MB, free: 0.8398 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001452/0.455, allocations: 142 kB / 496.8 MB, free: 0.6992 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.87e-05/0.455, allocations: 8 kB / 496.8 MB, free: 0.6914 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001809/0.4552, allocations: 358.8 kB / 497.1 MB, free: 340 kB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002221/0.4554, allocations: 113.1 kB / 497.2 MB, free: 228 kB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003294/0.4558, allocations: 244.5 kB / 497.5 MB, free: 15.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.456, allocations: 167.2 kB / 497.6 MB, free: 15.76 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.544e-06/0.4561, allocations: 7.953 kB / 497.6 MB, free: 15.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008203/0.4569, allocations: 499.4 kB / 498.1 MB, free: 15.25 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006125/0.4575, allocations: 1.333 MB / 499.5 MB, free: 13.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.061e-05/0.4575, allocations: 4 kB / 499.5 MB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003157/0.4578, allocations: 72.77 kB / 499.5 MB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000388/0.4582, allocations: 99.83 kB / 499.6 MB, free: 13.63 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001727/0.46, allocations: 1.694 MB / 0.4896 GB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004176/0.4604, allocations: 63.56 kB / 0.4896 GB, free: 11.75 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.843e-05/0.4605, allocations: 20 kB / 0.4896 GB, free: 11.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.828e-06/0.4605, allocations: 5.562 kB / 0.4897 GB, free: 11.72 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0007301/0.4612, allocations: 442.1 kB / 0.4901 GB, free: 11.28 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.074e-06/0.4612, allocations: 8 kB / 0.4901 GB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.4614, allocations: 68.81 kB / 0.4901 GB, free: 11.2 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003248/0.4618, allocations: 92.3 kB / 0.4902 GB, free: 11.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001606/0.4634, allocations: 1.698 MB / 0.4919 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003471/0.4638, allocations: 63.59 kB / 0.492 GB, free: 9.215 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.26e-05/0.4638, allocations: 20 kB / 0.492 GB, free: 9.195 MB / 378.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.0001705/0.464, allocations: 140.1 kB / 0.4921 GB, free: 9.051 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.936e-05/0.4641, allocations: 51.38 kB / 0.4922 GB, free: 9 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008184/0.4649, allocations: 422.1 kB / 0.4926 GB, free: 8.578 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.91e-06/0.4649, allocations: 4 kB / 0.4926 GB, free: 8.574 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.4649, allocations: 3.984 kB / 0.4926 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.781e-06/0.4649, allocations: 0 / 0.4926 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001476/0.4664, allocations: 1.036 MB / 0.4936 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.585e-06/0.4664, allocations: 0 / 0.4936 GB, free: 7.469 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.4668, allocations: 71.95 kB / 0.4936 GB, free: 7.398 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000188/0.467, allocations: 68.83 kB / 0.4937 GB, free: 7.328 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.391e-05/0.467, allocations: 15.98 kB / 0.4937 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001542/0.4686, allocations: 1.69 MB / 0.4954 GB, free: 5.484 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4686, allocations: 3.953 kB / 0.4954 GB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009428/0.4695, allocations: 0.6777 MB / 0.496 GB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001839/0.4697, allocations: 156.4 kB / 0.4962 GB, free: 4.594 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.29e-05/0.4698, allocations: 12 kB / 0.4962 GB, free: 4.582 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00033/0.4701, allocations: 43.97 kB / 0.4962 GB, free: 4.539 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001237/0.4703, allocations: 51.86 kB / 0.4963 GB, free: 4.488 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.054e-05/0.4703, allocations: 12 kB / 0.4963 GB, free: 4.477 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002956/0.4706, allocations: 261.2 kB / 0.4966 GB, free: 4.223 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.4706, allocations: 0 / 0.4966 GB, free: 4.223 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008357/0.4715, allocations: 247.4 kB / 0.4968 GB, free: 3.98 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.00139/0.4729, allocations: 1.394 MB / 0.4982 GB, free: 2.543 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001365/0.4742, allocations: 0.9206 MB / 0.4991 GB, free: 1.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.725e-06/0.4743, allocations: 1.625 kB / 0.4991 GB, free: 1.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004355/0.4747, allocations: 318.8 kB / 0.4994 GB, free: 1.246 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004602/0.4752, allocations: 75.97 kB / 0.4994 GB, free: 1.176 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001944/0.4771, allocations: 0.9317 MB / 0.5003 GB, free: 204 kB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004723/0.4776, allocations: 0.8642 MB / 0.5012 GB, free: 15.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003043/0.4779, allocations: 72.22 kB / 0.5013 GB, free: 15.23 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002455/0.4782, allocations: 179.4 kB / 0.5014 GB, free: 15.06 MB / 394.7 MB Notification: Performance of SimCode: time 6.92e-07/0.4782, allocations: 0 / 0.5014 GB, free: 15.06 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.5048, allocations: 11.35 MB / 0.5125 GB, free: 4.012 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001849/0.5051, allocations: 223.4 kB / 0.5127 GB, free: 3.785 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.204/2.709, allocations: 4.062 kB / 0.5127 GB, free: 3.781 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