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.002505/0.002503, allocations: 185.5 kB / 16.41 MB, free: 5.727 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.098/2.098, allocations: 205.4 MB / 222.5 MB, free: 9.133 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.001163/0.001162, allocations: 101.8 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004007/0.0004007, allocations: 12 kB / 327.1 MB, free: 108 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3442/0.3447, allocations: 47.57 MB / 374.6 MB, free: 45.3 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1382/0.4829, allocations: 83.36 MB / 458 MB, free: 13.29 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003769/0.4834, allocations: 91.94 kB / 458.1 MB, free: 13.2 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03089/0.5143, allocations: 7.013 MB / 465.1 MB, free: 6.145 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.703e-06/0.5144, allocations: 0 / 465.1 MB, free: 6.145 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.366e-05/0.5144, allocations: 11.98 kB / 465.1 MB, free: 6.133 MB / 346.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.001991/0.5164, allocations: 0.7333 MB / 465.9 MB, free: 5.348 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/0.5165, allocations: 12.03 kB / 465.9 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001593/0.5167, allocations: 78.52 kB / 465.9 MB, free: 5.25 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.5168, allocations: 51.44 kB / 466 MB, free: 5.199 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007794/0.5176, allocations: 371 kB / 466.4 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.395e-05/0.5177, allocations: 29 kB / 466.4 MB, free: 4.77 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001227/0.5178, allocations: 40 kB / 466.4 MB, free: 4.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001279/0.5191, allocations: 444.7 kB / 466.9 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.513e-05/0.5192, allocations: 0 / 466.9 MB, free: 4.277 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.77e-05/0.5192, allocations: 16 kB / 466.9 MB, free: 4.262 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.928e-05/0.5193, allocations: 12 kB / 466.9 MB, free: 4.25 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001139/0.5204, allocations: 307.8 kB / 467.2 MB, free: 3.949 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003787/0.5242, allocations: 1.613 MB / 468.8 MB, free: 2.242 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001049/0.5253, allocations: 282.9 kB / 469.1 MB, free: 1.953 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.966e-05/0.5254, allocations: 4 kB / 469.1 MB, free: 1.949 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006513/0.5261, allocations: 231.5 kB / 469.3 MB, free: 1.703 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 3.607e-06/0.5261, allocations: 0 / 469.3 MB, free: 1.703 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.002289/0.5284, allocations: 0.5743 MB / 469.9 MB, free: 1.102 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000108/0.5285, allocations: 114.8 kB / 470 MB, free: 0.9648 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006759/0.5292, allocations: 332.8 kB / 470.3 MB, free: 0.6289 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.625e-05/0.5293, allocations: 37.7 kB / 470.4 MB, free: 0.5859 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000227/0.5295, allocations: 262.9 kB / 470.6 MB, free: 332 kB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001281/0.5297, allocations: 106.6 kB / 470.7 MB, free: 224 kB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.421e-05/0.5297, allocations: 4 kB / 470.7 MB, free: 220 kB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001709/0.5299, allocations: 336.3 kB / 471 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004566/0.5304, allocations: 116.8 kB / 471.2 MB, free: 15.77 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000583/0.531, allocations: 242.8 kB / 471.4 MB, free: 15.47 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005198/0.5315, allocations: 153.7 kB / 471.5 MB, free: 15.32 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.5315, allocations: 7.938 kB / 471.6 MB, free: 15.31 MB / 362.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001445/0.533, allocations: 465.5 kB / 472 MB, free: 14.84 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006235/0.5336, allocations: 1.333 MB / 473.3 MB, free: 13.4 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.549e-05/0.5336, allocations: 4 kB / 473.3 MB, free: 13.39 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004979/0.5341, allocations: 76.81 kB / 473.4 MB, free: 13.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004427/0.5346, allocations: 71.83 kB / 473.5 MB, free: 13.25 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002813/0.5374, allocations: 1.776 MB / 475.3 MB, free: 11.34 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006827/0.5382, allocations: 63.66 kB / 475.3 MB, free: 11.28 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.083e-05/0.5382, allocations: 20.06 kB / 475.3 MB, free: 11.26 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.5383, allocations: 4 kB / 475.4 MB, free: 11.25 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001179/0.5394, allocations: 402.5 kB / 475.7 MB, free: 10.85 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.666e-06/0.5395, allocations: 8 kB / 475.8 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003829/0.5399, allocations: 80.89 kB / 475.8 MB, free: 10.76 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003563/0.5402, allocations: 55.84 kB / 475.9 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002793/0.543, allocations: 1.769 MB / 477.7 MB, free: 8.805 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004829/0.5436, allocations: 51.73 kB / 477.7 MB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.957e-05/0.5436, allocations: 12.08 kB / 477.7 MB, free: 8.742 MB / 362.7 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,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 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 38 * 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.0004869/0.5441, allocations: 263.2 kB / 478 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001237/0.5443, allocations: 39.53 kB / 478 MB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001246/0.5444, allocations: 40.11 kB / 478.1 MB, free: 8.395 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.474e-06/0.5444, allocations: 7.938 kB / 478.1 MB, free: 8.387 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.5444, allocations: 4 kB / 478.1 MB, free: 8.383 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.5445, allocations: 3.984 kB / 478.1 MB, free: 8.379 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001997/0.5465, allocations: 0.867 MB / 478.9 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.5465, allocations: 0 / 478.9 MB, free: 7.453 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000273/0.5468, allocations: 23.98 kB / 479 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003902/0.5472, allocations: 76.81 kB / 479 MB, free: 7.352 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.542e-05/0.5472, allocations: 4 kB / 479 MB, free: 7.348 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002732/0.55, allocations: 1.792 MB / 480.8 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.55, allocations: 0 / 480.8 MB, free: 5.418 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001584/0.5516, allocations: 0.5741 MB / 481.4 MB, free: 4.824 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002671/0.5519, allocations: 136.7 kB / 481.5 MB, free: 4.672 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.248e-05/0.552, allocations: 16 kB / 481.6 MB, free: 4.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.5525, allocations: 27.97 kB / 481.6 MB, free: 4.629 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001647/0.5527, allocations: 47.89 kB / 481.6 MB, free: 4.582 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.936e-05/0.5527, allocations: 12 kB / 481.6 MB, free: 4.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0005162/0.5533, allocations: 263.2 kB / 481.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.31e-07/0.5533, allocations: 0 / 481.9 MB, free: 4.32 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001167/0.5545, allocations: 207.4 kB / 482.1 MB, free: 4.117 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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) * Number of clocked states: 0 () * 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.001985/0.5565, allocations: 1.131 MB / 483.2 MB, free: 2.957 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.002295/0.5588, allocations: 0.881 MB / 484.1 MB, free: 2.027 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.282e-06/0.5588, allocations: 0 / 484.1 MB, free: 2.027 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007104/0.5596, allocations: 294.4 kB / 484.4 MB, free: 1.727 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007065/0.5603, allocations: 72.34 kB / 484.5 MB, free: 1.656 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004039/0.5643, allocations: 3.417 MB / 487.9 MB, free: 14.12 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005254/0.5649, allocations: 0.8237 MB / 488.7 MB, free: 13.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003474/0.5653, allocations: 139.4 kB / 488.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of SimCode: time 1.142e-06/0.5653, allocations: 0 / 488.8 MB, free: 13.14 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.73/3.296, allocations: 8.329 MB / 497.2 MB, free: 4.82 MB / 378.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