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.002449/0.002448, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.076/2.076, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001111/0.001111, allocations: 93.33 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.559e-05/2.57e-05, allocations: 4 kB / 314.9 MB, free: 9.047 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3345/0.3346, allocations: 47.56 MB / 362.5 MB, free: 45.75 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1723/0.507, allocations: 82.6 MB / 445.1 MB, free: 3.598 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000515/0.5076, allocations: 87.94 kB / 445.1 MB, free: 3.512 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.03673/0.5443, allocations: 6.93 MB / 452.1 MB, free: 12.62 MB / 347.1 MB Notification: Performance of FrontEnd: time 1.844e-06/0.5444, allocations: 3.938 kB / 452.1 MB, free: 12.62 MB / 347.1 MB Notification: Performance of Transformations before backend: time 4.431e-05/0.5444, allocations: 8 kB / 452.1 MB, free: 12.61 MB / 347.1 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.001843/0.5463, allocations: 0.6829 MB / 452.8 MB, free: 11.88 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.42e-05/0.5464, allocations: 16.03 kB / 452.8 MB, free: 11.86 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000187/0.5466, allocations: 51.44 kB / 452.8 MB, free: 11.81 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008668/0.5474, allocations: 367.6 kB / 453.2 MB, free: 11.41 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.928e-05/0.5475, allocations: 16 kB / 453.2 MB, free: 11.39 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001063/0.5476, allocations: 27.98 kB / 453.2 MB, free: 11.37 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0007644/0.5484, allocations: 233.5 kB / 453.5 MB, free: 11.14 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009291/0.5493, allocations: 359.9 kB / 453.8 MB, free: 10.77 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.451e-05/0.5494, allocations: 7.984 kB / 453.8 MB, free: 10.76 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.491e-05/0.5494, allocations: 0 / 453.8 MB, free: 10.76 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.808e-05/0.5495, allocations: 12 kB / 453.8 MB, free: 10.75 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003527/0.553, allocations: 1.505 MB / 455.3 MB, free: 9.156 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007867/0.5538, allocations: 248.8 kB / 455.6 MB, free: 8.902 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004133/0.5543, allocations: 136.8 kB / 455.7 MB, free: 8.766 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.411e-05/0.5543, allocations: 5.75 kB / 455.7 MB, free: 8.762 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006755/0.555, allocations: 216 kB / 455.9 MB, free: 8.527 MB / 347.1 MB Notification: Performance of pre-optimization done (n=34): time 5.951e-06/0.5551, allocations: 4 kB / 455.9 MB, free: 8.523 MB / 347.1 MB Notification: Performance of matching and sorting (n=34): time 0.0009439/0.556, allocations: 279.7 kB / 456.2 MB, free: 8.242 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001017/0.5561, allocations: 144.4 kB / 456.3 MB, free: 8.07 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004721/0.5566, allocations: 257.1 kB / 456.6 MB, free: 7.812 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.5567, allocations: 25.7 kB / 456.6 MB, free: 7.781 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002335/0.5569, allocations: 282.6 kB / 456.9 MB, free: 7.5 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001215/0.5571, allocations: 90.66 kB / 457 MB, free: 7.41 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.557e-05/0.5571, allocations: 0 / 457 MB, free: 7.41 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.5573, allocations: 336.9 kB / 457.3 MB, free: 7.074 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002556/0.5575, allocations: 84.88 kB / 457.4 MB, free: 6.992 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003746/0.5579, allocations: 203.2 kB / 457.6 MB, free: 6.73 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000288/0.5582, allocations: 102.2 kB / 457.7 MB, free: 6.633 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.155e-06/0.5583, allocations: 3.953 kB / 457.7 MB, free: 6.629 MB / 347.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0009566/0.5592, allocations: 352.8 kB / 458 MB, free: 6.277 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0008161/0.5601, allocations: 1.424 MB / 459.5 MB, free: 4.738 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.263e-05/0.5601, allocations: 4 kB / 459.5 MB, free: 4.734 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006213/0.5607, allocations: 76.81 kB / 459.5 MB, free: 4.656 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004297/0.5612, allocations: 63.84 kB / 459.6 MB, free: 4.594 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00265/0.5639, allocations: 1.73 MB / 461.3 MB, free: 2.754 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000646/0.5646, allocations: 59.7 kB / 461.4 MB, free: 2.695 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.752e-05/0.5646, allocations: 20 kB / 461.4 MB, free: 2.676 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.561e-05/0.5646, allocations: 4 kB / 461.4 MB, free: 2.672 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008664/0.5655, allocations: 294 kB / 461.7 MB, free: 2.383 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.766e-06/0.5656, allocations: 8.031 kB / 461.7 MB, free: 2.375 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003559/0.5659, allocations: 89.7 kB / 461.8 MB, free: 2.285 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003237/0.5663, allocations: 51.91 kB / 461.9 MB, free: 2.234 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002888/0.5692, allocations: 1.737 MB / 463.6 MB, free: 396 kB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004668/0.5697, allocations: 47.78 kB / 463.6 MB, free: 348 kB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.182e-05/0.5697, allocations: 16 kB / 463.7 MB, free: 332 kB / 347.1 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.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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002242/0.57, allocations: 125.6 kB / 463.8 MB, free: 204 kB / 347.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0008156/0.5708, allocations: 293.9 kB / 464.1 MB, free: 15.9 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/0.5709, allocations: 31.62 kB / 464.1 MB, free: 15.87 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001486/0.571, allocations: 39.52 kB / 464.1 MB, free: 15.83 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.783e-06/0.5711, allocations: 7.938 kB / 464.1 MB, free: 15.82 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.464e-06/0.5711, allocations: 0 / 464.1 MB, free: 15.82 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.046e-05/0.5711, allocations: 3.984 kB / 464.1 MB, free: 15.82 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002345/0.5735, allocations: 0.8782 MB / 465 MB, free: 14.89 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.707e-06/0.5735, allocations: 0 / 465 MB, free: 14.89 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004155/0.5739, allocations: 27.92 kB / 465.1 MB, free: 14.86 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005372/0.5745, allocations: 72.84 kB / 465.1 MB, free: 14.79 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.773e-05/0.5746, allocations: 4 kB / 465.1 MB, free: 14.78 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004344/0.5789, allocations: 1.682 MB / 466.8 MB, free: 12.99 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.088e-06/0.579, allocations: 0 / 466.8 MB, free: 12.99 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00187/0.5809, allocations: 0.5226 MB / 467.3 MB, free: 12.44 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003506/0.5813, allocations: 132.7 kB / 467.5 MB, free: 12.29 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001464/0.5815, allocations: 11.94 kB / 467.5 MB, free: 12.28 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007412/0.5822, allocations: 23.98 kB / 467.5 MB, free: 12.25 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.5825, allocations: 36 kB / 467.5 MB, free: 12.22 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.542e-05/0.5826, allocations: 16 kB / 467.5 MB, free: 12.2 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0005813/0.5832, allocations: 196.6 kB / 467.7 MB, free: 12.01 MB / 363.1 MB Notification: Performance of sort global known variables: time 7.11e-07/0.5832, allocations: 3.938 kB / 467.7 MB, free: 12.01 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001294/0.5845, allocations: 187.4 kB / 467.9 MB, free: 11.82 MB / 363.1 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.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) * 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.001632/0.5862, allocations: 1.14 MB / 469.1 MB, free: 10.64 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001827/0.588, allocations: 0.7778 MB / 469.8 MB, free: 9.824 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.588, allocations: 0 / 469.8 MB, free: 9.824 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005409/0.5886, allocations: 265.9 kB / 470.1 MB, free: 9.555 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005867/0.5892, allocations: 63.72 kB / 470.2 MB, free: 9.496 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002226/0.5914, allocations: 0.608 MB / 470.8 MB, free: 8.844 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005357/0.592, allocations: 0.8273 MB / 471.6 MB, free: 7.992 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002897/0.5923, allocations: 131.4 kB / 471.7 MB, free: 7.863 MB / 363.1 MB Notification: Performance of SimCode: time 1.162e-06/0.5923, allocations: 4 kB / 471.7 MB, free: 7.859 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.88/3.472, allocations: 8.106 MB / 479.8 MB, free: 15.78 MB / 379.1 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