Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_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_trunk_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/ModelicaServices trunk/package.mo): time 0.001066/0.001066, allocations: 98.52 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001162/0.001162, allocations: 204 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.385/1.385, allocations: 227.3 MB / 245.9 MB, free: 10.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002501/0.0002501, allocations: 8 kB / 306.7 MB, free: 1.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1104/0.1106, allocations: 51.49 MB / 358.2 MB, free: 13.74 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.00499/0.1157, allocations: 3.435 MB / 361.7 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002547/0.1183, allocations: 1.091 MB / 362.7 MB, free: 9.188 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005538/0.1188, allocations: 11.94 kB / 362.8 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002907/0.1192, allocations: 67.39 kB / 362.8 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000547/0.1197, allocations: 179.4 kB / 363 MB, free: 8.934 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006791/0.1204, allocations: 179.3 kB / 363.2 MB, free: 8.762 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005414/0.121, allocations: 451.5 kB / 363.6 MB, free: 8.32 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003693/0.1213, allocations: 207.2 kB / 363.8 MB, free: 8.121 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002286/0.1216, allocations: 191.2 kB / 364 MB, free: 7.934 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002762/0.1219, allocations: 226.9 kB / 364.2 MB, free: 7.711 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.895e-05/0.1219, allocations: 24 kB / 364.3 MB, free: 7.688 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.593e-05/0.122, allocations: 24 kB / 364.3 MB, free: 7.664 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001151/0.1221, allocations: 99.58 kB / 364.4 MB, free: 7.566 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.1222, allocations: 125.3 kB / 364.5 MB, free: 7.438 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004821/0.1227, allocations: 0.5066 MB / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.575e-06/0.1227, allocations: 0 / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1228, allocations: 0 / 365 MB, free: 6.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.424e-06/0.1228, allocations: 0 / 365 MB, free: 6.93 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001528/0.1243, allocations: 0.8284 MB / 365.8 MB, free: 6.039 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.77e-05/0.1243, allocations: 8.031 kB / 365.8 MB, free: 6.031 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001146/0.1245, allocations: 86.52 kB / 365.9 MB, free: 5.938 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001073/0.1246, allocations: 67.23 kB / 366 MB, free: 5.871 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005784/0.1252, allocations: 399.5 kB / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.812e-05/0.1253, allocations: 48.98 kB / 366.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.685e-05/0.1253, allocations: 48 kB / 366.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009446/0.1263, allocations: 0.5123 MB / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.657e-05/0.1263, allocations: 0 / 367 MB, free: 4.82 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.127e-05/0.1264, allocations: 20 kB / 367 MB, free: 4.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.1264, allocations: 12 kB / 367 MB, free: 4.789 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008326/0.1272, allocations: 383.7 kB / 367.4 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002616/0.1299, allocations: 1.784 MB / 369.2 MB, free: 2.531 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001089/0.131, allocations: 443.2 kB / 369.6 MB, free: 2.086 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.32e-05/0.131, allocations: 8 kB / 369.6 MB, free: 2.078 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005924/0.1316, allocations: 300.6 kB / 369.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of pre-optimization done (n=42): time 1.493e-06/0.1316, allocations: 0 / 369.9 MB, free: 1.766 MB / 302.1 MB Notification: Performance of matching and sorting (n=42): time 0.001848/0.1335, allocations: 0.7363 MB / 370.6 MB, free: 1 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.406e-05/0.1336, allocations: 106.8 kB / 370.7 MB, free: 0.8711 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004483/0.134, allocations: 397.5 kB / 371.1 MB, free: 480 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.486e-05/0.1341, allocations: 37.7 kB / 371.2 MB, free: 436 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001929/0.1343, allocations: 252.3 kB / 371.4 MB, free: 176 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001029/0.1344, allocations: 126.2 kB / 371.5 MB, free: 48 kB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.1344, allocations: 8 kB / 371.6 MB, free: 40 kB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.2311/0.3655, allocations: 351.2 kB / 371.9 MB, free: 19.66 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005805/0.3661, allocations: 153.5 kB / 372 MB, free: 19.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004827/0.3666, allocations: 285.5 kB / 372.3 MB, free: 19.51 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004369/0.3671, allocations: 194.7 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.159e-06/0.3671, allocations: 4.719 kB / 372.5 MB, free: 19.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001284/0.3684, allocations: 0.5714 MB / 373.1 MB, free: 19.39 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000276/0.3687, allocations: 1.34 MB / 374.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.065e-05/0.3687, allocations: 3.469 kB / 374.4 MB, free: 18.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003443/0.369, allocations: 71.42 kB / 374.5 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004113/0.3695, allocations: 95.39 kB / 374.6 MB, free: 18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001502/0.371, allocations: 1.718 MB / 376.3 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004419/0.3714, allocations: 73.45 kB / 376.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.327e-05/0.3715, allocations: 18.61 kB / 376.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.103e-05/0.3715, allocations: 11.62 kB / 376.4 MB, free: 16.66 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001029/0.3725, allocations: 498.5 kB / 376.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.744e-06/0.3725, allocations: 3.594 kB / 376.9 MB, free: 16.49 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002151/0.3728, allocations: 68.19 kB / 377 MB, free: 16.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003549/0.3731, allocations: 89.33 kB / 377.1 MB, free: 16.46 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001411/0.3746, allocations: 1.713 MB / 378.8 MB, free: 14.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003843/0.375, allocations: 66.98 kB / 378.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.626e-05/0.375, allocations: 19.12 kB / 378.9 MB, free: 14.91 MB / 302.1 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,$whenCondition3,chopperStepDown.andCondition_p.y,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,$PRE.signalPWM.zeroOrderHold.ySample,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 (51): * Single equations (assignments): 49 * 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.0003198/0.3753, allocations: 262.5 kB / 379.1 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.397e-05/0.3754, allocations: 48.3 kB / 379.2 MB, free: 14.66 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001118/0.3765, allocations: 0.4974 MB / 379.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.823e-06/0.3766, allocations: 12.52 kB / 379.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.776e-06/0.3766, allocations: 4.562 kB / 379.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.886e-06/0.3766, allocations: 2.109 kB / 379.7 MB, free: 14.46 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.3783, allocations: 1.055 MB / 380.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.837e-06/0.3783, allocations: 1.656 kB / 380.7 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004206/0.3788, allocations: 67.62 kB / 380.8 MB, free: 13.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002559/0.379, allocations: 73.27 kB / 380.9 MB, free: 13.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.072e-05/0.3791, allocations: 9.828 kB / 380.9 MB, free: 13.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001771/0.3809, allocations: 1.708 MB / 382.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.3809, allocations: 0 / 382.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001878/0.3828, allocations: 0.7569 MB / 383.3 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002471/0.383, allocations: 160.9 kB / 383.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.35e-05/0.3831, allocations: 12.17 kB / 383.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/0.3836, allocations: 47.44 kB / 383.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001651/0.3838, allocations: 34.44 kB / 383.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.024e-05/0.3839, allocations: 15.12 kB / 383.6 MB, free: 11.75 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004363/0.3843, allocations: 266 kB / 383.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.3843, allocations: 0 / 383.9 MB, free: 11.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001495/0.3858, allocations: 245.8 kB / 384.1 MB, free: 11.55 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * Number of discrete variables: 15 (signalPWM.zeroOrderHold.sampleTrigger,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,chopperStepDown.andCondition_p.y,chopperStepDown.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 30 * 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.002107/0.3879, allocations: 1.318 MB / 385.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.3903, allocations: 0.9979 MB / 386.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.657e-06/0.3903, allocations: 4.062 kB / 386.4 MB, free: 10.07 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007649/0.3911, allocations: 345 kB / 386.8 MB, free: 9.879 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006166/0.3917, allocations: 83.47 kB / 386.8 MB, free: 9.852 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003547/0.3953, allocations: 3.737 MB / 390.6 MB, free: 6.605 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004948/0.3958, allocations: 0.8568 MB / 391.4 MB, free: 5.898 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0003325/0.3962, allocations: 57.47 kB / 391.5 MB, free: 5.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002911/0.3965, allocations: 173.6 kB / 391.7 MB, free: 5.754 MB / 302.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3965, allocations: 5.062 kB / 391.7 MB, free: 5.75 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03909/0.4356, allocations: 10.57 MB / 402.2 MB, free: 1.996 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001767/0.4358, allocations: 254.1 kB / 402.5 MB, free: 1.66 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.985/2.421, allocations: 0 / 402.5 MB, free: 1.66 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat