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_R.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_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R",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.001054/0.001054, allocations: 180 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.48/1.48, allocations: 205.4 MB / 223.1 MB, free: 9.133 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.0009006/0.0009006, allocations: 94.64 kB / 271.5 MB, free: 8.371 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002628/0.0002628, allocations: 7.984 kB / 328.4 MB, free: 15.43 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2595/0.2598, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1055/0.3653, allocations: 83.35 MB / 459.3 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003214/0.3657, allocations: 88.94 kB / 459.4 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0187/0.3844, allocations: 7.012 MB / 466.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.3844, allocations: 0 / 466.4 MB, free: 6.152 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.844e-05/0.3845, allocations: 15.92 kB / 466.4 MB, free: 6.137 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001174/0.3857, allocations: 0.7255 MB / 467.1 MB, free: 5.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.297e-05/0.3857, allocations: 19.91 kB / 467.1 MB, free: 5.34 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.368e-05/0.3858, allocations: 74.53 kB / 467.2 MB, free: 5.258 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.585e-05/0.3859, allocations: 59.44 kB / 467.3 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005027/0.3864, allocations: 367 kB / 467.6 MB, free: 4.801 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.878e-05/0.3865, allocations: 29 kB / 467.7 MB, free: 4.773 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.502e-05/0.3865, allocations: 43.98 kB / 467.7 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.3873, allocations: 440.7 kB / 468.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.957e-05/0.3873, allocations: 0 / 468.1 MB, free: 4.281 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.418e-05/0.3874, allocations: 19.98 kB / 468.1 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.102e-05/0.3874, allocations: 12 kB / 468.2 MB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006185/0.388, allocations: 319.8 kB / 468.5 MB, free: 3.938 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002114/0.3901, allocations: 1.601 MB / 470.1 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006231/0.3908, allocations: 278.9 kB / 470.3 MB, free: 1.957 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.664e-05/0.3908, allocations: 4 kB / 470.3 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004007/0.3912, allocations: 231.5 kB / 470.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 1.753e-06/0.3912, allocations: 0 / 470.6 MB, free: 1.707 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.001333/0.3926, allocations: 0.5782 MB / 471.2 MB, free: 1.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.566e-05/0.3927, allocations: 110.8 kB / 471.3 MB, free: 0.9688 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004346/0.3931, allocations: 332.8 kB / 471.6 MB, free: 0.6328 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.3932, allocations: 37.69 kB / 471.6 MB, free: 0.5898 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001736/0.3933, allocations: 216.5 kB / 471.8 MB, free: 380 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.27e-05/0.3934, allocations: 102.6 kB / 471.9 MB, free: 276 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.02e-05/0.3935, allocations: 12 kB / 471.9 MB, free: 264 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001833/0.3937, allocations: 356.3 kB / 472.3 MB, free: 15.9 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002431/0.3939, allocations: 116.8 kB / 472.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.3942, allocations: 242.8 kB / 472.6 MB, free: 15.5 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002975/0.3946, allocations: 157.7 kB / 472.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.186e-06/0.3946, allocations: 0 / 472.8 MB, free: 15.34 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008095/0.3954, allocations: 489 kB / 473.3 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006975/0.3961, allocations: 1.333 MB / 474.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.098e-05/0.3961, allocations: 4 kB / 474.6 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003039/0.3964, allocations: 80.8 kB / 474.7 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002284/0.3967, allocations: 67.84 kB / 474.8 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001872/0.3985, allocations: 1.774 MB / 476.5 MB, free: 11.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003649/0.3989, allocations: 71.72 kB / 476.6 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/0.399, allocations: 16 kB / 476.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.658e-06/0.399, allocations: 4 kB / 476.6 MB, free: 11.26 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006637/0.3997, allocations: 406.5 kB / 477 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.346e-06/0.3997, allocations: 0 / 477 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002035/0.3999, allocations: 84.75 kB / 477.1 MB, free: 10.77 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001869/0.4001, allocations: 59.84 kB / 477.2 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001722/0.4018, allocations: 1.777 MB / 478.9 MB, free: 8.797 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002924/0.4021, allocations: 55.72 kB / 479 MB, free: 8.742 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.4022, allocations: 16 kB / 479 MB, free: 8.727 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 (40): * Single equations (assignments): 38 * 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.0003205/0.4025, allocations: 259.1 kB / 479.3 MB, free: 8.461 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.224e-05/0.4026, allocations: 39.56 kB / 479.3 MB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.793e-05/0.4027, allocations: 48.09 kB / 479.3 MB, free: 8.371 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.14e-06/0.4027, allocations: 4 kB / 479.4 MB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.046e-06/0.4027, allocations: 3.938 kB / 479.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.4027, allocations: 0 / 479.4 MB, free: 8.363 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001177/0.4039, allocations: 0.8631 MB / 480.2 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.013e-06/0.4039, allocations: 0 / 480.2 MB, free: 7.441 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001481/0.404, allocations: 27.92 kB / 480.2 MB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002071/0.4043, allocations: 72.81 kB / 480.3 MB, free: 7.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.597e-05/0.4043, allocations: 11.98 kB / 480.3 MB, free: 7.328 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001573/0.4059, allocations: 1.784 MB / 482.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.4059, allocations: 0.9375 kB / 482.1 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008864/0.4068, allocations: 0.5741 MB / 482.7 MB, free: 4.816 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001556/0.4069, allocations: 140.6 kB / 482.8 MB, free: 4.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.265e-05/0.407, allocations: 15.98 kB / 482.8 MB, free: 4.645 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000272/0.4073, allocations: 36.03 kB / 482.9 MB, free: 4.609 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001042/0.4074, allocations: 35.91 kB / 482.9 MB, free: 4.574 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.632e-05/0.4074, allocations: 11.94 kB / 482.9 MB, free: 4.562 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003125/0.4078, allocations: 263.2 kB / 483.2 MB, free: 4.309 MB / 362.7 MB Notification: Performance of sort global known variables: time 2e-07/0.4078, allocations: 4 kB / 483.2 MB, free: 4.305 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008041/0.4086, allocations: 199.5 kB / 483.4 MB, free: 4.109 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (meanCurrent.x,meanVoltage.x) * 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 (26): * Single equations (assignments): 19 * 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 7} Notification: Performance of Backend phase and start with SimCode phase: time 0.001211/0.4098, allocations: 1.134 MB / 484.5 MB, free: 2.949 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001522/0.4113, allocations: 0.8807 MB / 485.4 MB, free: 2.02 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.122e-06/0.4114, allocations: 3.938 kB / 485.4 MB, free: 2.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004661/0.4118, allocations: 298.4 kB / 485.7 MB, free: 1.711 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000491/0.4123, allocations: 68.66 kB / 485.8 MB, free: 1.648 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003338/0.4157, allocations: 3.39 MB / 489.1 MB, free: 14.15 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005568/0.4163, allocations: 0.8353 MB / 490 MB, free: 13.29 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002243/0.4165, allocations: 39.27 kB / 490 MB, free: 13.25 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002171/0.4167, allocations: 139.4 kB / 490.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of SimCode: time 1.313e-06/0.4167, allocations: 0 / 490.2 MB, free: 13.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02415/0.4409, allocations: 9.419 MB / 499.6 MB, free: 3.707 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002498/0.4412, allocations: 246.7 kB / 499.8 MB, free: 3.41 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.132/2.573, allocations: 0 / 499.8 MB, free: 3.41 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.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_R_res.mat does not exist to compare? outputFormat=mat