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.00153/0.00153, allocations: 181.3 kB / 13.66 MB, free: 1.664 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.016/2.016, allocations: 205.2 MB / 219.4 MB, free: 14.21 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.001058/0.001058, allocations: 90.64 kB / 267.5 MB, free: 14.05 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.573e-05/3.59e-05, allocations: 4 kB / 321.6 MB, free: 17.73 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09817/0.09824, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4441/0.5424, allocations: 83.25 MB / 452.5 MB, free: 9.602 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003407/0.5428, allocations: 84.38 kB / 452.5 MB, free: 9.555 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03102/0.5739, allocations: 6.998 MB / 459.5 MB, free: 3.621 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.278e-06/0.5739, allocations: 0 / 459.5 MB, free: 3.621 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.158e-05/0.574, allocations: 15.92 kB / 459.6 MB, free: 3.605 MB / 330.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.001741/0.5757, allocations: 0.6961 MB / 460.2 MB, free: 2.887 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.593e-05/0.5758, allocations: 12.03 kB / 460.3 MB, free: 2.875 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001403/0.576, allocations: 74.03 kB / 460.3 MB, free: 2.816 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000151/0.5761, allocations: 47.44 kB / 460.4 MB, free: 2.77 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007622/0.5769, allocations: 362.9 kB / 460.7 MB, free: 2.414 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.301e-05/0.577, allocations: 35.78 kB / 460.8 MB, free: 2.395 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.979e-05/0.5771, allocations: 39.05 kB / 460.8 MB, free: 2.367 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001008/0.5781, allocations: 414.9 kB / 461.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.246e-05/0.5781, allocations: 0 / 461.2 MB, free: 2.062 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.315e-05/0.5782, allocations: 15.69 kB / 461.2 MB, free: 2.059 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.074e-05/0.5782, allocations: 15.98 kB / 461.2 MB, free: 2.043 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000744/0.579, allocations: 261.2 kB / 461.5 MB, free: 1.883 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003556/0.5826, allocations: 1.605 MB / 463.1 MB, free: 496 kB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008295/0.5834, allocations: 266.5 kB / 463.4 MB, free: 316 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004468/0.5839, allocations: 138.9 kB / 463.5 MB, free: 220 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.584, allocations: 4 kB / 463.5 MB, free: 216 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005938/0.5846, allocations: 230 kB / 463.7 MB, free: 12 kB / 330.7 MB Notification: Performance of pre-optimization done (n=34): time 3.106e-06/0.5846, allocations: 0 / 463.7 MB, free: 12 kB / 330.7 MB Notification: Performance of matching and sorting (n=34): time 0.0009878/0.5856, allocations: 312.2 kB / 464 MB, free: 15.77 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.325e-05/0.5857, allocations: 136.5 kB / 464.2 MB, free: 15.61 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005658/0.5863, allocations: 317.9 kB / 464.5 MB, free: 15.36 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 5.494e-05/0.5864, allocations: 36.33 kB / 464.5 MB, free: 15.32 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.5866, allocations: 278.2 kB / 464.8 MB, free: 15.09 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001239/0.5868, allocations: 98.2 kB / 464.9 MB, free: 15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.456e-05/0.5868, allocations: 8 kB / 464.9 MB, free: 14.99 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001671/0.587, allocations: 326.8 kB / 465.2 MB, free: 14.66 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002874/0.5873, allocations: 92.88 kB / 465.3 MB, free: 14.57 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000426/0.5877, allocations: 220 kB / 465.5 MB, free: 14.3 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003649/0.5881, allocations: 138.4 kB / 465.6 MB, free: 14.16 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.05e-06/0.5881, allocations: 4 kB / 465.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001057/0.5892, allocations: 413.8 kB / 466.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006716/0.5899, allocations: 1.423 MB / 467.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.318e-05/0.5899, allocations: 4 kB / 467.5 MB, free: 12.2 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005214/0.5904, allocations: 84.75 kB / 467.6 MB, free: 12.11 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004357/0.5909, allocations: 63.84 kB / 467.6 MB, free: 12.05 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002825/0.5937, allocations: 1.8 MB / 469.4 MB, free: 10.11 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007054/0.5945, allocations: 67.67 kB / 469.5 MB, free: 10.05 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.695e-05/0.5946, allocations: 31.91 kB / 469.5 MB, free: 10.02 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.245e-05/0.5946, allocations: 4 kB / 469.5 MB, free: 10.01 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001006/0.5956, allocations: 379.3 kB / 469.9 MB, free: 9.633 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.907e-06/0.5956, allocations: 4 kB / 469.9 MB, free: 9.629 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003891/0.596, allocations: 80.77 kB / 470 MB, free: 9.547 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003496/0.5964, allocations: 52.38 kB / 470 MB, free: 9.496 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00283/0.5992, allocations: 1.814 MB / 471.8 MB, free: 7.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005124/0.5998, allocations: 55.66 kB / 471.9 MB, free: 7.5 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.358e-05/0.5999, allocations: 16 kB / 471.9 MB, free: 7.484 MB / 346.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.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.0002818/0.6002, allocations: 143.1 kB / 472.1 MB, free: 7.34 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001304/0.6003, allocations: 35.62 kB / 472.1 MB, free: 7.305 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001557/0.6005, allocations: 40.23 kB / 472.1 MB, free: 7.262 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.997e-06/0.6005, allocations: 7.984 kB / 472.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.6005, allocations: 0 / 472.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.6005, allocations: 0 / 472.1 MB, free: 7.254 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002041/0.6026, allocations: 0.9677 MB / 473.1 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.6026, allocations: 0 / 473.1 MB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002906/0.6029, allocations: 35.92 kB / 473.1 MB, free: 6.188 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003869/0.6033, allocations: 72.81 kB / 473.2 MB, free: 6.113 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.203e-05/0.6034, allocations: 11.98 kB / 473.2 MB, free: 6.102 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002617/0.606, allocations: 1.741 MB / 475 MB, free: 4.227 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.756e-06/0.6061, allocations: 3.938 kB / 475 MB, free: 4.223 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001375/0.6074, allocations: 0.5529 MB / 475.5 MB, free: 3.641 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002662/0.6077, allocations: 140.5 kB / 475.7 MB, free: 3.484 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.399e-05/0.6078, allocations: 11.98 kB / 475.7 MB, free: 3.473 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005282/0.6084, allocations: 32.05 kB / 475.7 MB, free: 3.441 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001713/0.6086, allocations: 40.22 kB / 475.7 MB, free: 3.402 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.389e-05/0.6086, allocations: 12 kB / 475.8 MB, free: 3.391 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0004737/0.6091, allocations: 246.1 kB / 476 MB, free: 3.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.686e-06/0.6091, allocations: 3.938 kB / 476 MB, free: 3.145 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001191/0.6103, allocations: 207.5 kB / 476.2 MB, free: 2.941 MB / 346.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.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.001809/0.6122, allocations: 1.172 MB / 477.4 MB, free: 1.734 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002018/0.6142, allocations: 0.8342 MB / 478.2 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 6.182e-06/0.6143, allocations: 0 / 478.2 MB, free: 0.8516 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006385/0.6149, allocations: 282.8 kB / 478.5 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006926/0.6156, allocations: 61.83 kB / 478.5 MB, free: 0.5039 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002526/0.6182, allocations: 0.6616 MB / 479.2 MB, free: 15.8 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005807/0.6188, allocations: 0.8273 MB / 480 MB, free: 14.94 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003196/0.6192, allocations: 135.4 kB / 480.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of SimCode: time 1.603e-06/0.6192, allocations: 0 / 480.2 MB, free: 14.81 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.898/3.517, allocations: 8.451 MB / 488.6 MB, free: 6.348 MB / 362.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