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.00154/0.00154, allocations: 181.4 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.109/2.109, 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.001117/0.001116, allocations: 78.7 kB / 267.5 MB, free: 14.04 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.21e-05/3.227e-05, allocations: 4 kB / 321.6 MB, free: 17.72 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1026, allocations: 47.57 MB / 369.2 MB, free: 2.086 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4163/0.5189, allocations: 83.55 MB / 452.7 MB, free: 9.32 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003405/0.5193, allocations: 91.45 kB / 452.8 MB, free: 9.266 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03203/0.5514, allocations: 7.327 MB / 460.2 MB, free: 3.055 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.964e-06/0.5514, allocations: 7.875 kB / 460.2 MB, free: 3.047 MB / 330.7 MB Notification: Performance of Transformations before backend: time 4.563e-05/0.5515, allocations: 8 kB / 460.2 MB, free: 3.039 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: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.001937/0.5535, allocations: 0.7063 MB / 460.9 MB, free: 2.312 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.734e-05/0.5535, allocations: 16.03 kB / 460.9 MB, free: 2.297 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001623/0.5537, allocations: 75.22 kB / 461 MB, free: 2.238 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001742/0.5539, allocations: 55.34 kB / 461 MB, free: 2.184 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008381/0.5547, allocations: 369.1 kB / 461.4 MB, free: 1.832 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.526e-05/0.5548, allocations: 38.3 kB / 461.4 MB, free: 1.805 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001093/0.5549, allocations: 44.97 kB / 461.5 MB, free: 1.773 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001108/0.5561, allocations: 435.5 kB / 461.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.633e-05/0.5561, allocations: 0 / 461.9 MB, free: 1.457 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.871e-05/0.5562, allocations: 17.69 kB / 461.9 MB, free: 1.453 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.823e-05/0.5562, allocations: 12 kB / 461.9 MB, free: 1.441 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008445/0.5571, allocations: 276.7 kB / 462.2 MB, free: 1.27 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00399/0.5611, allocations: 1.693 MB / 463.9 MB, free: 15.79 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009956/0.5621, allocations: 287.4 kB / 464.2 MB, free: 15.6 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004773/0.5626, allocations: 149.7 kB / 464.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.741e-05/0.5627, allocations: 4 kB / 464.3 MB, free: 15.5 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005935/0.5633, allocations: 233.1 kB / 464.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of pre-optimization done (n=36): time 3.085e-06/0.5633, allocations: 0 / 464.5 MB, free: 15.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=36): time 0.001006/0.5643, allocations: 320.6 kB / 464.9 MB, free: 15.05 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001009/0.5645, allocations: 136 kB / 465 MB, free: 14.89 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006312/0.5651, allocations: 324.5 kB / 465.3 MB, free: 14.58 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 7.153e-05/0.5652, allocations: 41.69 kB / 465.4 MB, free: 14.53 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000241/0.5654, allocations: 266.9 kB / 465.6 MB, free: 14.27 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001427/0.5656, allocations: 110.5 kB / 465.7 MB, free: 14.16 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.234e-05/0.5656, allocations: 8 kB / 465.7 MB, free: 14.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001625/0.5658, allocations: 330.8 kB / 466 MB, free: 13.82 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003008/0.5661, allocations: 92.88 kB / 466.1 MB, free: 13.73 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.5666, allocations: 223.8 kB / 466.4 MB, free: 13.45 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003796/0.567, allocations: 150.1 kB / 466.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.23e-06/0.567, allocations: 0 / 466.5 MB, free: 13.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001123/0.5681, allocations: 424.1 kB / 466.9 MB, free: 12.87 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007795/0.5689, allocations: 1.426 MB / 468.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.569, allocations: 4 kB / 468.3 MB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005002/0.5695, allocations: 76.77 kB / 468.4 MB, free: 11.25 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.57, allocations: 67.83 kB / 468.5 MB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002805/0.5728, allocations: 1.757 MB / 470.2 MB, free: 9.293 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007488/0.5736, allocations: 67.59 kB / 470.3 MB, free: 9.227 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.725e-05/0.5737, allocations: 16 kB / 470.3 MB, free: 9.211 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.5737, allocations: 4 kB / 470.3 MB, free: 9.207 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001172/0.5749, allocations: 398.4 kB / 470.7 MB, free: 8.809 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.287e-05/0.575, allocations: 4 kB / 470.7 MB, free: 8.805 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003788/0.5754, allocations: 81.23 kB / 470.8 MB, free: 8.723 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004181/0.5758, allocations: 55.91 kB / 470.9 MB, free: 8.668 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002818/0.5787, allocations: 1.757 MB / 472.6 MB, free: 6.773 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005214/0.5792, allocations: 47.73 kB / 472.7 MB, free: 6.727 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.639e-05/0.5793, allocations: 16 kB / 472.7 MB, free: 6.711 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 (43): * Single equations (assignments): 41 * 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.0002423/0.5796, allocations: 139.2 kB / 472.8 MB, free: 6.57 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001545/0.5797, allocations: 43.52 kB / 472.9 MB, free: 6.527 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001525/0.5799, allocations: 44.27 kB / 472.9 MB, free: 6.484 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.067e-06/0.5799, allocations: 4 kB / 472.9 MB, free: 6.48 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.244e-06/0.5799, allocations: 3.953 kB / 472.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.675e-06/0.5799, allocations: 0 / 472.9 MB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002189/0.5821, allocations: 0.9839 MB / 473.9 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.823e-06/0.5822, allocations: 0 / 473.9 MB, free: 5.426 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003619/0.5826, allocations: 39.92 kB / 473.9 MB, free: 5.387 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003514/0.5829, allocations: 68.77 kB / 474 MB, free: 5.316 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.988e-05/0.583, allocations: 8 kB / 474 MB, free: 5.309 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002412/0.5854, allocations: 1.702 MB / 475.7 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.525e-06/0.5855, allocations: 0 / 475.7 MB, free: 3.477 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001408/0.5869, allocations: 0.5534 MB / 476.3 MB, free: 2.891 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002884/0.5872, allocations: 144.6 kB / 476.4 MB, free: 2.73 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.843e-05/0.5873, allocations: 11.98 kB / 476.4 MB, free: 2.719 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005232/0.5879, allocations: 32.05 kB / 476.4 MB, free: 2.688 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.588, allocations: 39.94 kB / 476.5 MB, free: 2.648 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.563e-05/0.5881, allocations: 15.94 kB / 476.5 MB, free: 2.633 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0005125/0.5886, allocations: 250.2 kB / 476.7 MB, free: 2.391 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5886, allocations: 0 / 476.7 MB, free: 2.391 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.00119/0.5898, allocations: 203.5 kB / 476.9 MB, free: 2.191 MB / 346.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.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 (29): * Single equations (assignments): 22 * 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.001857/0.5917, allocations: 1.195 MB / 478.1 MB, free: 0.957 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.002009/0.5938, allocations: 0.8286 MB / 479 MB, free: 80 kB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 7.104e-06/0.5938, allocations: 0.625 kB / 479 MB, free: 80 kB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006586/0.5945, allocations: 282.3 kB / 479.2 MB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007165/0.5952, allocations: 58.61 kB / 479.3 MB, free: 15.73 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002609/0.5979, allocations: 0.7238 MB / 480 MB, free: 14.96 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005636/0.5985, allocations: 0.8313 MB / 480.9 MB, free: 14.1 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003429/0.5988, allocations: 143.4 kB / 481 MB, free: 13.96 MB / 362.7 MB Notification: Performance of SimCode: time 1.313e-06/0.5989, allocations: 0 / 481 MB, free: 13.96 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.787/3.386, allocations: 8.743 MB / 489.7 MB, free: 5.215 MB / 362.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