Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001054/0.001054, allocations: 202.2 kB / 17.08 MB, free: 5.059 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.244/1.244, allocations: 227.2 MB / 245 MB, free: 7.559 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008793/0.000879, allocations: 110.6 kB / 297.3 MB, free: 6.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002019/0.0002019, allocations: 4 kB / 358 MB, free: 9.422 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2215/0.2218, allocations: 51.48 MB / 409.5 MB, free: 26.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1094/0.3312, allocations: 87.85 MB / 497.4 MB, free: 2.742 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000303/0.3316, allocations: 95.92 kB / 497.5 MB, free: 2.648 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02849/0.3601, allocations: 10.26 MB / 0.4958 GB, free: 8.332 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3601, allocations: 0 / 0.4958 GB, free: 8.332 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.343e-05/0.3602, allocations: 15.98 kB / 0.4958 GB, free: 8.316 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 116 * Number of variables: 116 Notification: Performance of Generate backend data structure: time 0.001519/0.3617, allocations: 0.8337 MB / 0.4966 GB, free: 7.426 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.396e-05/0.3617, allocations: 8.031 kB / 0.4967 GB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001182/0.3619, allocations: 86.52 kB / 0.4967 GB, free: 7.324 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001092/0.362, allocations: 75.19 kB / 0.4968 GB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005933/0.3626, allocations: 391.6 kB / 0.4972 GB, free: 6.828 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.679e-05/0.3626, allocations: 37 kB / 0.4972 GB, free: 6.793 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.422e-05/0.3627, allocations: 47.98 kB / 0.4973 GB, free: 6.746 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009507/0.3637, allocations: 0.5123 MB / 0.4978 GB, free: 6.211 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.961e-05/0.3637, allocations: 3.938 kB / 0.4978 GB, free: 6.207 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.869e-05/0.3637, allocations: 20 kB / 0.4978 GB, free: 6.188 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.3638, allocations: 15.94 kB / 0.4978 GB, free: 6.172 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008308/0.3646, allocations: 395.7 kB / 0.4982 GB, free: 5.785 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00262/0.3672, allocations: 1.8 MB / 0.4999 GB, free: 3.891 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001143/0.3684, allocations: 457 kB / 0.5004 GB, free: 3.438 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.55e-05/0.3684, allocations: 7.984 kB / 0.5004 GB, free: 3.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005912/0.369, allocations: 296.4 kB / 0.5007 GB, free: 3.121 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 1.924e-06/0.3691, allocations: 4 kB / 0.5007 GB, free: 3.117 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001711/0.3708, allocations: 0.7132 MB / 0.5014 GB, free: 2.375 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.56e-05/0.3709, allocations: 118.8 kB / 0.5015 GB, free: 2.234 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003827/0.3713, allocations: 332.8 kB / 0.5018 GB, free: 1.906 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.54e-05/0.3713, allocations: 41.69 kB / 0.5018 GB, free: 1.859 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001859/0.3715, allocations: 256.3 kB / 0.5021 GB, free: 1.605 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001222/0.3716, allocations: 122.2 kB / 0.5022 GB, free: 1.484 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.404e-05/0.3717, allocations: 12 kB / 0.5022 GB, free: 1.473 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001632/0.3718, allocations: 362.7 kB / 0.5025 GB, free: 1.109 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003509/0.3722, allocations: 153 kB / 0.5027 GB, free: 0.9609 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004452/0.3727, allocations: 284.1 kB / 0.503 GB, free: 0.6289 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003879/0.373, allocations: 201.2 kB / 0.5032 GB, free: 440 kB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.387e-06/0.3731, allocations: 4 kB / 0.5032 GB, free: 436 kB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.1719/0.545, allocations: 0.5494 MB / 0.5037 GB, free: 92.71 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002732/0.5453, allocations: 1.335 MB / 0.505 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.31e-05/0.5453, allocations: 6.312 kB / 0.505 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000306/0.5456, allocations: 75.86 kB / 0.5051 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004039/0.546, allocations: 92.06 kB / 0.5052 GB, free: 91.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001435/0.5475, allocations: 1.711 MB / 0.5068 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004476/0.5479, allocations: 69.78 kB / 0.5069 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.848e-05/0.548, allocations: 19.5 kB / 0.5069 GB, free: 89.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.014e-05/0.548, allocations: 3.469 kB / 0.5069 GB, free: 89.99 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009158/0.5489, allocations: 486.4 kB / 0.5074 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.5489, allocations: 2.844 kB / 0.5074 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001943/0.5491, allocations: 70.27 kB / 0.5075 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003135/0.5495, allocations: 85.78 kB / 0.5075 GB, free: 89.95 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001186/0.5507, allocations: 1.716 MB / 0.5092 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003602/0.551, allocations: 59.55 kB / 0.5093 GB, free: 88.62 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.969e-05/0.5511, allocations: 19.64 kB / 0.5093 GB, free: 88.62 MB / 378.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_last,meanCurrent.y_last,$PRE.meanVoltage.y_last,meanVoltage.y_last,$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 (50): * Single equations (assignments): 48 * 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.0002604/0.5513, allocations: 259.7 kB / 0.5095 GB, free: 88.43 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.268e-05/0.5514, allocations: 51.39 kB / 0.5096 GB, free: 88.43 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009497/0.5524, allocations: 489.5 kB / 0.5101 GB, free: 88.38 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.5524, allocations: 9.344 kB / 0.5101 GB, free: 88.38 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.825e-06/0.5524, allocations: 4.609 kB / 0.5101 GB, free: 88.38 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.812e-06/0.5524, allocations: 3.062 kB / 0.5101 GB, free: 88.38 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0015/0.5539, allocations: 1.056 MB / 0.5111 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.866e-06/0.5539, allocations: 0 / 0.5111 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003322/0.5543, allocations: 73.2 kB / 0.5112 GB, free: 88.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001892/0.5545, allocations: 66.67 kB / 0.5112 GB, free: 88.06 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.137e-05/0.5545, allocations: 19.98 kB / 0.5113 GB, free: 88.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001342/0.5558, allocations: 1.706 MB / 0.5129 GB, free: 86.72 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.003e-06/0.5559, allocations: 1.625 kB / 0.5129 GB, free: 86.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001486/0.5574, allocations: 0.7595 MB / 0.5137 GB, free: 86.49 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001743/0.5575, allocations: 159.8 kB / 0.5138 GB, free: 86.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.828e-05/0.5576, allocations: 13.39 kB / 0.5138 GB, free: 86.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003253/0.5579, allocations: 39.59 kB / 0.5139 GB, free: 86.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.5581, allocations: 41.23 kB / 0.5139 GB, free: 86.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.11e-05/0.5581, allocations: 19.31 kB / 0.5139 GB, free: 86.33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002885/0.5584, allocations: 267.4 kB / 0.5142 GB, free: 86.19 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.5584, allocations: 1.25 kB / 0.5142 GB, free: 86.19 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008864/0.5593, allocations: 241.2 kB / 0.5144 GB, free: 86.15 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (meanCurrent.x,meanVoltage.x,inductor.i,capacitor.v) * 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_last,meanVoltage.y_last) * 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 (37): * Single equations (assignments): 30 * 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.001318/0.5606, allocations: 1.332 MB / 0.5157 GB, free: 85.26 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.5621, allocations: 1.01 MB / 0.5167 GB, free: 84.69 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.5621, allocations: 0 / 0.5167 GB, free: 84.69 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004417/0.5625, allocations: 354.6 kB / 0.517 GB, free: 84.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004169/0.563, allocations: 72.44 kB / 0.5171 GB, free: 84.47 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002379/0.5654, allocations: 3.762 MB / 0.5208 GB, free: 81.22 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000258/0.5656, allocations: 0.8638 MB / 0.5216 GB, free: 80.51 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002287/0.5659, allocations: 54.81 kB / 0.5217 GB, free: 80.5 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001873/0.5661, allocations: 167 kB / 0.5218 GB, free: 80.38 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5661, allocations: 0 / 0.5218 GB, free: 80.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02202/0.5881, allocations: 10.64 MB / 0.5322 GB, free: 76.15 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001607/0.5883, allocations: 255.3 kB / 0.5325 GB, free: 75.82 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.157/2.745, allocations: 0 / 0.5325 GB, free: 75.82 MB / 378.7 MB (rm -f Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_trunk_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat