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_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_cpp_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_cpp_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.002379/0.002379, allocations: 188.3 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.232/2.232, allocations: 205.4 MB / 222.5 MB, free: 13.86 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.001656/0.001655, allocations: 94.86 kB / 270.9 MB, free: 13.38 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005232/0.0005234, allocations: 8 kB / 327.1 MB, free: 14.99 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09702/0.09759, allocations: 47.59 MB / 374.7 MB, free: 15.32 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL): time 0.00553/0.1032, allocations: 2.983 MB / 377.6 MB, free: 12.32 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.002613/0.1059, allocations: 0.9362 MB / 378.6 MB, free: 11.38 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003951/0.1063, allocations: 7.938 kB / 378.6 MB, free: 11.37 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002236/0.1065, allocations: 55.55 kB / 378.6 MB, free: 11.32 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004573/0.107, allocations: 143.6 kB / 378.8 MB, free: 11.18 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007697/0.1078, allocations: 147.6 kB / 378.9 MB, free: 11.03 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009942/0.1088, allocations: 383 kB / 379.3 MB, free: 10.66 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004951/0.1093, allocations: 170 kB / 379.5 MB, free: 10.49 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003692/0.1097, allocations: 175.2 kB / 379.6 MB, free: 10.32 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003564/0.1101, allocations: 191.1 kB / 379.8 MB, free: 10.13 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 8.241e-05/0.1102, allocations: 24 kB / 379.8 MB, free: 10.11 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.776e-05/0.1103, allocations: 20 kB / 379.9 MB, free: 10.09 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001464/0.1105, allocations: 83.66 kB / 379.9 MB, free: 10 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001743/0.1107, allocations: 109.5 kB / 380.1 MB, free: 9.891 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0007452/0.1114, allocations: 466.9 kB / 380.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.428e-06/0.1114, allocations: 0 / 380.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1115, allocations: 0 / 380.5 MB, free: 9.434 MB / 282.7 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.1115, allocations: 0 / 380.5 MB, free: 9.434 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.00218/0.1137, allocations: 0.7491 MB / 381.3 MB, free: 8.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.145e-05/0.1137, allocations: 8.031 kB / 381.3 MB, free: 8.617 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001918/0.1139, allocations: 82.52 kB / 381.3 MB, free: 8.527 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.1141, allocations: 59.44 kB / 381.4 MB, free: 8.469 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008672/0.115, allocations: 363 kB / 381.8 MB, free: 8.074 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001072/0.1151, allocations: 44.98 kB / 381.8 MB, free: 8.031 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001207/0.1153, allocations: 43.91 kB / 381.8 MB, free: 7.988 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001325/0.1166, allocations: 452.7 kB / 382.3 MB, free: 7.527 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.168e-05/0.1167, allocations: 4 kB / 382.3 MB, free: 7.523 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.35e-05/0.1168, allocations: 19.98 kB / 382.3 MB, free: 7.504 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.7e-05/0.1168, allocations: 8 kB / 382.3 MB, free: 7.496 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001188/0.118, allocations: 319.7 kB / 382.6 MB, free: 7.184 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004138/0.1222, allocations: 1.678 MB / 384.3 MB, free: 5.406 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001196/0.1234, allocations: 311.7 kB / 384.6 MB, free: 5.094 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.368e-05/0.1235, allocations: 4.281 kB / 384.6 MB, free: 5.09 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008117/0.1243, allocations: 256.7 kB / 384.9 MB, free: 4.82 MB / 282.7 MB Notification: Performance of pre-optimization done (n=37): time 8.066e-05/0.1246, allocations: 0 / 384.9 MB, free: 4.82 MB / 282.7 MB Notification: Performance of matching and sorting (n=37): time 0.004674/0.1294, allocations: 0.632 MB / 385.5 MB, free: 4.16 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001429/0.1296, allocations: 110.8 kB / 385.6 MB, free: 4.027 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001144/0.1308, allocations: 361.5 kB / 386 MB, free: 3.66 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001572/0.131, allocations: 29.7 kB / 386 MB, free: 3.625 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003772/0.1314, allocations: 274.9 kB / 386.3 MB, free: 3.352 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002638/0.1317, allocations: 114.4 kB / 386.4 MB, free: 3.238 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.187e-05/0.1317, allocations: 12 kB / 386.4 MB, free: 3.227 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.000239/0.132, allocations: 330.8 kB / 386.7 MB, free: 2.895 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001752/0.1338, allocations: 112.8 kB / 386.8 MB, free: 2.785 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001032/0.1349, allocations: 251.7 kB / 387.1 MB, free: 2.484 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009012/0.1358, allocations: 174.7 kB / 387.2 MB, free: 2.309 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.395e-05/0.1359, allocations: 7.953 kB / 387.2 MB, free: 2.301 MB / 282.7 MB Notification: Performance of matching and sorting (n=53) (initialization): time 0.003666/0.1396, allocations: 464.4 kB / 387.7 MB, free: 1.832 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001681/0.1413, allocations: 1.428 MB / 389.1 MB, free: 296 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.208e-05/0.1414, allocations: 4 kB / 389.1 MB, free: 292 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007892/0.1422, allocations: 68.81 kB / 389.2 MB, free: 220 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000825/0.1431, allocations: 71.89 kB / 389.3 MB, free: 148 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2606/0.4037, allocations: 1.718 MB / 391 MB, free: 18.95 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006016/0.4044, allocations: 53.83 kB / 391 MB, free: 18.95 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.816e-05/0.4045, allocations: 21.64 kB / 391.1 MB, free: 18.95 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.444e-05/0.4045, allocations: 3.531 kB / 391.1 MB, free: 18.95 MB / 282.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001286/0.4058, allocations: 409.2 kB / 391.5 MB, free: 18.9 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.143e-05/0.4058, allocations: 4.656 kB / 391.5 MB, free: 18.9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003515/0.4062, allocations: 73.88 kB / 391.5 MB, free: 18.89 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004049/0.4066, allocations: 59.81 kB / 391.6 MB, free: 18.89 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002194/0.4088, allocations: 1.713 MB / 393.3 MB, free: 17.56 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004416/0.4093, allocations: 41.98 kB / 393.4 MB, free: 17.56 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.511e-05/0.4094, allocations: 22.67 kB / 393.4 MB, free: 17.55 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 (45): * Single equations (assignments): 43 * 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.0003921/0.4098, allocations: 254.9 kB / 393.6 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001222/0.4099, allocations: 39.81 kB / 393.7 MB, free: 17.36 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000123/0.4101, allocations: 47.59 kB / 393.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.386e-06/0.4101, allocations: 4.094 kB / 393.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.36e-06/0.4101, allocations: 0 / 393.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.739e-06/0.4101, allocations: 5.016 kB / 393.7 MB, free: 17.34 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002139/0.4123, allocations: 0.9334 MB / 394.6 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.811e-06/0.4123, allocations: 1.375 kB / 394.7 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003891/0.4127, allocations: 48.06 kB / 394.7 MB, free: 16.8 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003554/0.4131, allocations: 66.84 kB / 394.8 MB, free: 16.77 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.561e-05/0.4131, allocations: 9.281 kB / 394.8 MB, free: 16.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/0.4153, allocations: 1.715 MB / 396.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.4154, allocations: 3.438 kB / 396.5 MB, free: 15.23 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001755/0.4171, allocations: 0.6468 MB / 397.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003039/0.4175, allocations: 145.8 kB / 397.3 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.475e-05/0.4176, allocations: 11.92 kB / 397.3 MB, free: 14.74 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004759/0.4181, allocations: 32.41 kB / 397.3 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001622/0.4183, allocations: 30.38 kB / 397.4 MB, free: 14.73 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.012e-05/0.4183, allocations: 17.34 kB / 397.4 MB, free: 14.72 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004079/0.4188, allocations: 244.8 kB / 397.6 MB, free: 14.59 MB / 282.7 MB Notification: Performance of sort global known variables: time 3.51e-07/0.4188, allocations: 0 / 397.6 MB, free: 14.59 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001225/0.42, allocations: 207 kB / 397.8 MB, free: 14.54 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.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 (30): * Single equations (assignments): 23 * 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.002103/0.4221, allocations: 1.265 MB / 399.1 MB, free: 13.59 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.00214/0.4243, allocations: 0.893 MB / 400 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 7.824e-06/0.4244, allocations: 0 / 400 MB, free: 13.04 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007512/0.4251, allocations: 308 kB / 400.3 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006825/0.4259, allocations: 61.53 kB / 400.3 MB, free: 12.84 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003728/0.4296, allocations: 3.706 MB / 404 MB, free: 9.527 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004376/0.4301, allocations: 0.8389 MB / 404.9 MB, free: 8.82 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003361/0.4304, allocations: 144.1 kB / 405 MB, free: 8.715 MB / 282.7 MB Notification: Performance of SimCode: time 1.223e-06/0.4305, allocations: 0 / 405 MB, free: 8.715 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.752/3.183, allocations: 8.584 MB / 413.6 MB, free: 5.754 MB / 282.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat