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.001496/0.001496, allocations: 182 kB / 17.01 MB, free: 5.125 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.513/1.513, allocations: 205.4 MB / 223.1 MB, free: 9.113 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.0009881/0.000988, allocations: 95.77 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002625/0.0002625, allocations: 4 kB / 328.4 MB, free: 15.41 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2384, allocations: 47.56 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09783/0.3363, allocations: 83.65 MB / 459.6 MB, free: 12.98 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003033/0.3367, allocations: 91.94 kB / 459.7 MB, free: 12.89 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01933/0.356, allocations: 7.341 MB / 467 MB, free: 5.52 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.3561, allocations: 0 / 467 MB, free: 5.52 MB / 346.7 MB Notification: Performance of Transformations before backend: time 4.403e-05/0.3561, allocations: 11.98 kB / 467 MB, free: 5.508 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.001518/0.3576, allocations: 0.7547 MB / 467.8 MB, free: 4.695 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/0.3577, allocations: 8.031 kB / 467.8 MB, free: 4.688 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001441/0.3578, allocations: 82.52 kB / 467.9 MB, free: 4.598 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001309/0.358, allocations: 51.44 kB / 467.9 MB, free: 4.547 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005454/0.3585, allocations: 378.9 kB / 468.3 MB, free: 4.137 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.924e-05/0.3586, allocations: 33 kB / 468.3 MB, free: 4.105 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.608e-05/0.3587, allocations: 43.98 kB / 468.4 MB, free: 4.062 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007773/0.3594, allocations: 456.7 kB / 468.8 MB, free: 3.598 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3595, allocations: 12 kB / 468.8 MB, free: 3.586 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.193e-05/0.3595, allocations: 19.98 kB / 468.8 MB, free: 3.566 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.019e-05/0.3595, allocations: 8 kB / 468.8 MB, free: 3.559 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006256/0.3602, allocations: 331.7 kB / 469.2 MB, free: 3.234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002279/0.3625, allocations: 1.69 MB / 470.9 MB, free: 1.445 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00065/0.3631, allocations: 297.2 kB / 471.1 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.514e-05/0.3632, allocations: 8 kB / 471.2 MB, free: 1.141 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004111/0.3636, allocations: 238.2 kB / 471.4 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 1.854e-06/0.3636, allocations: 0 / 471.4 MB, free: 0.8906 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001223/0.3648, allocations: 0.5661 MB / 471.9 MB, free: 304 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.795e-05/0.3649, allocations: 114.7 kB / 472.1 MB, free: 164 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003983/0.3653, allocations: 344.8 kB / 472.4 MB, free: 15.81 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.726e-05/0.3653, allocations: 41.64 kB / 472.4 MB, free: 15.77 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001483/0.3655, allocations: 220.5 kB / 472.7 MB, free: 15.55 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.483e-05/0.3656, allocations: 114.4 kB / 472.8 MB, free: 15.44 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.844e-05/0.3656, allocations: 4 kB / 472.8 MB, free: 15.43 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001222/0.3658, allocations: 354.8 kB / 473.1 MB, free: 15.08 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002525/0.366, allocations: 124.8 kB / 473.2 MB, free: 14.96 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003149/0.3663, allocations: 246.8 kB / 473.5 MB, free: 14.66 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002995/0.3666, allocations: 170.8 kB / 473.6 MB, free: 14.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.558e-06/0.3667, allocations: 4 kB / 473.7 MB, free: 14.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0008132/0.3675, allocations: 494.4 kB / 474.1 MB, free: 13.98 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004984/0.368, allocations: 1.337 MB / 475.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.345e-06/0.368, allocations: 4 kB / 475.5 MB, free: 12.54 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002691/0.3683, allocations: 76.78 kB / 475.5 MB, free: 12.46 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002551/0.3685, allocations: 75.84 kB / 475.6 MB, free: 12.38 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001623/0.3702, allocations: 1.706 MB / 477.3 MB, free: 10.54 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003549/0.3705, allocations: 63.66 kB / 477.4 MB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.429e-05/0.3706, allocations: 19.95 kB / 477.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.315e-06/0.3706, allocations: 4 kB / 477.4 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006746/0.3713, allocations: 414.1 kB / 477.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.3713, allocations: 4.438 kB / 477.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001889/0.3715, allocations: 77 kB / 477.9 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002083/0.3717, allocations: 59.91 kB / 478 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001446/0.3732, allocations: 1.714 MB / 479.7 MB, free: 8.059 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003115/0.3735, allocations: 51.66 kB / 479.7 MB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.123e-05/0.3735, allocations: 23.88 kB / 479.7 MB, free: 7.984 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.0002676/0.3738, allocations: 259.3 kB / 480 MB, free: 7.719 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.718e-05/0.3739, allocations: 39.53 kB / 480 MB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.534e-05/0.374, allocations: 48.12 kB / 480.1 MB, free: 7.629 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.128e-06/0.374, allocations: 4 kB / 480.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.789e-06/0.374, allocations: 0 / 480.1 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.608e-06/0.374, allocations: 3.938 kB / 480.1 MB, free: 7.621 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001236/0.3753, allocations: 0.8971 MB / 481 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.545e-06/0.3753, allocations: 0 / 481 MB, free: 6.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001893/0.3755, allocations: 39.97 kB / 481 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001893/0.3757, allocations: 61.12 kB / 481.1 MB, free: 6.562 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.773e-05/0.3757, allocations: 11.98 kB / 481.1 MB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001501/0.3772, allocations: 1.729 MB / 482.8 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.3772, allocations: 0 / 482.8 MB, free: 4.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009146/0.3782, allocations: 0.5705 MB / 483.4 MB, free: 4.094 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001651/0.3783, allocations: 148.6 kB / 483.5 MB, free: 3.93 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.867e-05/0.3784, allocations: 11.95 kB / 483.6 MB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002756/0.3787, allocations: 32.03 kB / 483.6 MB, free: 3.887 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.964e-05/0.3788, allocations: 35.95 kB / 483.6 MB, free: 3.852 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.62e-05/0.3788, allocations: 15.98 kB / 483.6 MB, free: 3.836 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003115/0.3792, allocations: 267.2 kB / 483.9 MB, free: 3.578 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.3792, allocations: 4 kB / 483.9 MB, free: 3.574 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008818/0.3801, allocations: 207.5 kB / 484.1 MB, free: 3.371 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.001353/0.3814, allocations: 1.151 MB / 485.3 MB, free: 2.191 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001572/0.383, allocations: 0.8678 MB / 486.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.383, allocations: 0 / 486.1 MB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004393/0.3835, allocations: 291.5 kB / 486.4 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004299/0.3839, allocations: 77.47 kB / 486.5 MB, free: 0.9023 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003108/0.387, allocations: 3.497 MB / 490 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004326/0.3875, allocations: 0.8428 MB / 490.8 MB, free: 12.41 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002239/0.3877, allocations: 43.27 kB / 490.9 MB, free: 12.38 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002203/0.3879, allocations: 143.4 kB / 491 MB, free: 12.23 MB / 378.7 MB Notification: Performance of SimCode: time 1.422e-06/0.3879, allocations: 0 / 491 MB, free: 12.23 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02436/0.4123, allocations: 9.481 MB / 0.4888 GB, free: 2.77 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002384/0.4126, allocations: 247.7 kB / 0.489 GB, free: 2.445 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.008/2.421, allocations: 0 / 0.489 GB, free: 2.445 MB / 378.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