Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.00231/0.00231, allocations: 187.5 kB / 16.4 MB, free: 5.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.276/2.276, allocations: 205.4 MB / 222.5 MB, free: 13.76 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.001179/0.001179, allocations: 90.92 kB / 270.9 MB, free: 13.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003915/0.0003915, allocations: 8 kB / 327.1 MB, free: 14.97 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1026/0.103, allocations: 47.59 MB / 374.7 MB, free: 15.3 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R): time 0.005381/0.1085, allocations: 2.901 MB / 377.6 MB, free: 12.39 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002604/0.1111, allocations: 0.9206 MB / 378.5 MB, free: 11.46 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003579/0.1115, allocations: 11.94 kB / 378.5 MB, free: 11.45 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001949/0.1118, allocations: 43.61 kB / 378.5 MB, free: 11.4 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00043/0.1122, allocations: 143.5 kB / 378.7 MB, free: 11.26 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007301/0.1129, allocations: 131.8 kB / 378.8 MB, free: 11.13 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008549/0.1138, allocations: 367 kB / 379.2 MB, free: 10.77 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004449/0.1143, allocations: 161 kB / 379.3 MB, free: 10.6 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000325/0.1146, allocations: 167.3 kB / 379.5 MB, free: 10.44 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003377/0.115, allocations: 183.1 kB / 379.7 MB, free: 10.26 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.301e-05/0.1151, allocations: 20 kB / 379.7 MB, free: 10.24 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.871e-05/0.1152, allocations: 20 kB / 379.7 MB, free: 10.22 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001332/0.1153, allocations: 75.72 kB / 379.8 MB, free: 10.14 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001559/0.1155, allocations: 105.5 kB / 379.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006604/0.1162, allocations: 443 kB / 380.3 MB, free: 9.602 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.1162, allocations: 4 kB / 380.3 MB, free: 9.598 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.013e-06/0.1162, allocations: 0 / 380.3 MB, free: 9.598 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.107e-05/0.1162, allocations: 0 / 380.3 MB, free: 9.598 MB / 282.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.002081/0.1183, allocations: 0.7283 MB / 381 MB, free: 8.812 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.133e-05/0.1184, allocations: 8.031 kB / 381.1 MB, free: 8.805 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001594/0.1185, allocations: 78.53 kB / 381.1 MB, free: 8.719 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001457/0.1187, allocations: 55.33 kB / 381.2 MB, free: 8.664 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008335/0.1195, allocations: 371.1 kB / 381.5 MB, free: 8.266 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.85e-05/0.1197, allocations: 37 kB / 381.6 MB, free: 8.23 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001068/0.1198, allocations: 40 kB / 381.6 MB, free: 8.191 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001291/0.1211, allocations: 440.7 kB / 382.1 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.467e-05/0.1211, allocations: 0 / 382.1 MB, free: 7.738 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.179e-05/0.1212, allocations: 16 kB / 382.1 MB, free: 7.723 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.71e-05/0.1212, allocations: 8 kB / 382.1 MB, free: 7.715 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001058/0.1223, allocations: 307.8 kB / 382.4 MB, free: 7.418 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0037/0.126, allocations: 1.597 MB / 384 MB, free: 5.727 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001032/0.1271, allocations: 295.4 kB / 384.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.387e-05/0.1272, allocations: 0.5312 kB / 384.3 MB, free: 5.43 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007461/0.1279, allocations: 248.8 kB / 384.5 MB, free: 5.168 MB / 282.7 MB Notification: Performance of pre-optimization done (n=35): time 6.221e-06/0.128, allocations: 3.984 kB / 384.5 MB, free: 5.164 MB / 282.7 MB Notification: Performance of matching and sorting (n=35): time 0.002746/0.1307, allocations: 0.6322 MB / 385.1 MB, free: 4.504 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.789e-05/0.1309, allocations: 114.8 kB / 385.3 MB, free: 4.367 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006143/0.1315, allocations: 349.5 kB / 385.6 MB, free: 4.02 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 7.701e-05/0.1316, allocations: 37.7 kB / 385.6 MB, free: 3.977 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002359/0.1318, allocations: 262.9 kB / 385.9 MB, free: 3.719 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001408/0.132, allocations: 106.5 kB / 386 MB, free: 3.613 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.281e-05/0.132, allocations: 8 kB / 386 MB, free: 3.605 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001513/0.1322, allocations: 326.8 kB / 386.3 MB, free: 3.277 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004481/0.1327, allocations: 112.8 kB / 386.4 MB, free: 3.164 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005705/0.1332, allocations: 243.8 kB / 386.7 MB, free: 2.871 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005032/0.1338, allocations: 153.7 kB / 386.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.741e-06/0.1338, allocations: 0 / 386.8 MB, free: 2.715 MB / 282.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001385/0.1352, allocations: 468.2 kB / 387.3 MB, free: 2.242 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007284/0.1359, allocations: 1.428 MB / 388.7 MB, free: 0.6992 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.717e-05/0.136, allocations: 4 kB / 388.7 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005182/0.1365, allocations: 84.75 kB / 388.8 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004695/0.137, allocations: 55.91 kB / 388.8 MB, free: 0.5547 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2596/0.3966, allocations: 1.773 MB / 390.6 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005905/0.3973, allocations: 57.73 kB / 390.7 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.454e-05/0.3973, allocations: 16.53 kB / 390.7 MB, free: 19.05 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.38e-05/0.3974, allocations: 6.484 kB / 390.7 MB, free: 19.05 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001212/0.3986, allocations: 402.5 kB / 391.1 MB, free: 19.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.256e-05/0.3986, allocations: 8.266 kB / 391.1 MB, free: 19 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003868/0.399, allocations: 82.17 kB / 391.2 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003532/0.3994, allocations: 54.53 kB / 391.2 MB, free: 18.99 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002399/0.4018, allocations: 1.779 MB / 393 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004141/0.4023, allocations: 41.31 kB / 393 MB, free: 17.66 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.16e-05/0.4023, allocations: 17.69 kB / 393.1 MB, free: 17.66 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * 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.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,$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 (41): * Single equations (assignments): 39 * 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.0003875/0.4027, allocations: 255 kB / 393.3 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001068/0.4028, allocations: 40.03 kB / 393.4 MB, free: 17.46 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000112/0.403, allocations: 42.17 kB / 393.4 MB, free: 17.44 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.826e-06/0.403, allocations: 8.906 kB / 393.4 MB, free: 17.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.837e-06/0.403, allocations: 2.875 kB / 393.4 MB, free: 17.44 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.021e-05/0.403, allocations: 3.672 kB / 393.4 MB, free: 17.44 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002113/0.4051, allocations: 0.912 MB / 394.3 MB, free: 16.89 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.295e-06/0.4052, allocations: 1.984 kB / 394.3 MB, free: 16.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003069/0.4055, allocations: 36.22 kB / 394.4 MB, free: 16.89 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003967/0.4059, allocations: 75.38 kB / 394.4 MB, free: 16.86 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.299e-05/0.406, allocations: 7.938 kB / 394.4 MB, free: 16.86 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00236/0.4083, allocations: 1.779 MB / 396.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4084, allocations: 1.844 kB / 396.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001703/0.4101, allocations: 0.6259 MB / 396.8 MB, free: 14.94 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002383/0.4104, allocations: 148.2 kB / 397 MB, free: 14.8 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.203e-05/0.4105, allocations: 17.73 kB / 397 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004639/0.411, allocations: 33.19 kB / 397 MB, free: 14.79 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.4112, allocations: 29.66 kB / 397.1 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.748e-05/0.4112, allocations: 13.88 kB / 397.1 MB, free: 14.78 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004066/0.4116, allocations: 241.4 kB / 397.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4116, allocations: 1.562 kB / 397.3 MB, free: 14.64 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001273/0.4129, allocations: 204.8 kB / 397.5 MB, free: 14.59 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.transistor.off,chopperStepDown.diode.off,signalPWM.notFire,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 (27): * Single equations (assignments): 20 * 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.001972/0.4149, allocations: 1.238 MB / 398.8 MB, free: 13.66 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002199/0.4172, allocations: 0.8823 MB / 399.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.314e-06/0.4172, allocations: 0.9688 kB / 399.6 MB, free: 13.11 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007583/0.418, allocations: 314.7 kB / 400 MB, free: 12.93 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.4186, allocations: 68.92 kB / 400 MB, free: 12.9 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00343/0.4221, allocations: 3.592 MB / 403.6 MB, free: 9.652 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004047/0.4226, allocations: 0.8243 MB / 404.4 MB, free: 8.953 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003125/0.4229, allocations: 137 kB / 404.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4229, allocations: 1.188 kB / 404.6 MB, free: 8.852 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.068/3.49, allocations: 8.279 MB / 412.8 MB, free: 6.07 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat