Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R,fileNamePrefix="Modelica_4_0_0_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_4_0_0_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 4.0.0+maint.om/package.mo): time 0.0009677/0.0009677, allocations: 176.2 kB / 8.348 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.294/1.294, allocations: 221.5 MB / 230.3 MB, free: 7.586 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009101/0.0009101, allocations: 94.03 kB / 281.2 MB, free: 5.336 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.681e-05/1.684e-05, allocations: 4 kB / 337.2 MB, free: 9.926 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08386/0.08389, allocations: 50.42 MB / 387.6 MB, free: 7.465 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3315/0.4154, allocations: 85.12 MB / 472.7 MB, free: 9.559 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003006/0.4158, allocations: 79.95 kB / 472.8 MB, free: 9.48 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02761/0.4434, allocations: 9.686 MB / 482.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.163e-06/0.4435, allocations: 0 / 482.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.536e-05/0.4435, allocations: 8 kB / 482.5 MB, free: 15.74 MB / 362.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.001428/0.445, allocations: 0.7626 MB / 483.2 MB, free: 14.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.081e-05/0.445, allocations: 12.03 kB / 483.2 MB, free: 14.92 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001344/0.4452, allocations: 71.23 kB / 483.3 MB, free: 14.85 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006298/0.4458, allocations: 396.7 kB / 483.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.153e-05/0.4458, allocations: 19.94 kB / 483.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.113e-05/0.4459, allocations: 32 kB / 483.8 MB, free: 14.37 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005597/0.4465, allocations: 278.5 kB / 484 MB, free: 14.09 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007198/0.4472, allocations: 414.8 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.679e-05/0.4472, allocations: 0 / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.215e-05/0.4473, allocations: 4 kB / 484.4 MB, free: 13.66 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.351e-05/0.4473, allocations: 12 kB / 484.4 MB, free: 13.65 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002582/0.4499, allocations: 1.682 MB / 486.1 MB, free: 11.89 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000822/0.4507, allocations: 350.9 kB / 486.5 MB, free: 11.54 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000392/0.4511, allocations: 197.4 kB / 486.7 MB, free: 11.34 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.803e-05/0.4512, allocations: 7.984 kB / 486.7 MB, free: 11.33 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004551/0.4517, allocations: 248.7 kB / 486.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.933e-06/0.4517, allocations: 3.938 kB / 486.9 MB, free: 11.07 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007389/0.4524, allocations: 333.5 kB / 487.2 MB, free: 10.73 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001068/0.4525, allocations: 118.6 kB / 487.4 MB, free: 10.59 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003567/0.4529, allocations: 269.6 kB / 487.6 MB, free: 10.33 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.396e-05/0.4529, allocations: 29.7 kB / 487.7 MB, free: 10.29 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000182/0.4531, allocations: 240.8 kB / 487.9 MB, free: 10.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001127/0.4533, allocations: 126.2 kB / 488 MB, free: 9.926 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.389e-05/0.4533, allocations: 4 kB / 488 MB, free: 9.922 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.4535, allocations: 346.8 kB / 488.4 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00019/0.4537, allocations: 101.1 kB / 488.5 MB, free: 9.477 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000278/0.454, allocations: 231 kB / 488.7 MB, free: 9.199 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002278/0.4542, allocations: 121 kB / 488.8 MB, free: 9.082 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.26e-06/0.4542, allocations: 7.938 kB / 488.8 MB, free: 9.074 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007152/0.4549, allocations: 401.5 kB / 489.2 MB, free: 8.672 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0006841/0.4556, allocations: 1.337 MB / 490.5 MB, free: 7.227 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.606e-06/0.4556, allocations: 4 kB / 490.5 MB, free: 7.223 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002973/0.4559, allocations: 68.83 kB / 490.6 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003544/0.4563, allocations: 95.81 kB / 490.7 MB, free: 7.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001592/0.4579, allocations: 1.642 MB / 492.3 MB, free: 5.297 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003632/0.4583, allocations: 51.62 kB / 492.4 MB, free: 5.246 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.244e-05/0.4583, allocations: 24.05 kB / 492.4 MB, free: 5.223 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.124e-05/0.4584, allocations: 5.25 kB / 492.4 MB, free: 5.219 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005964/0.459, allocations: 339.6 kB / 492.7 MB, free: 4.883 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.459, allocations: 4 kB / 492.8 MB, free: 4.879 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00019/0.4592, allocations: 73.22 kB / 492.8 MB, free: 4.805 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003168/0.4595, allocations: 87.83 kB / 492.9 MB, free: 4.719 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.4609, allocations: 1.631 MB / 494.5 MB, free: 2.973 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003208/0.4612, allocations: 43.78 kB / 494.6 MB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.4613, allocations: 20.09 kB / 494.6 MB, free: 2.91 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_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 () * 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.0001942/0.4615, allocations: 135.9 kB / 494.7 MB, free: 2.77 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0005558/0.4621, allocations: 329.8 kB / 495.1 MB, free: 2.438 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.552e-05/0.4621, allocations: 39.52 kB / 495.1 MB, free: 2.398 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006391/0.4628, allocations: 358.9 kB / 495.4 MB, free: 2.035 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.4628, allocations: 8 kB / 495.5 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.522e-06/0.4628, allocations: 0 / 495.5 MB, free: 2.027 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.208e-06/0.4628, allocations: 7.938 kB / 495.5 MB, free: 2.02 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00142/0.4642, allocations: 0.8916 MB / 496.4 MB, free: 1.074 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.083e-06/0.4643, allocations: 8 kB / 496.4 MB, free: 1.066 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003394/0.4646, allocations: 72.02 kB / 496.4 MB, free: 0.9961 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001982/0.4648, allocations: 68.75 kB / 496.5 MB, free: 0.9258 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.204e-05/0.4649, allocations: 7.984 kB / 496.5 MB, free: 0.918 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.4664, allocations: 1.619 MB / 498.1 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.668e-06/0.4664, allocations: 3.938 kB / 498.1 MB, free: 15.18 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009366/0.4674, allocations: 0.6279 MB / 498.8 MB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001858/0.4676, allocations: 152.5 kB / 498.9 MB, free: 14.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.156e-05/0.4676, allocations: 7.984 kB / 498.9 MB, free: 14.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000325/0.468, allocations: 36.06 kB / 498.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000117/0.4681, allocations: 47.92 kB / 499 MB, free: 14.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.092e-05/0.4681, allocations: 12 kB / 499 MB, free: 14.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002274/0.4684, allocations: 204.6 kB / 499.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4684, allocations: 0 / 499.2 MB, free: 14.05 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0009396/0.4693, allocations: 219.3 kB / 499.4 MB, free: 13.84 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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) * 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.001339/0.4707, allocations: 1.327 MB / 0.489 GB, free: 12.46 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.4719, allocations: 0.8454 MB / 0.4898 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.472, allocations: 4.562 kB / 0.4898 GB, free: 11.57 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003723/0.4723, allocations: 289.6 kB / 0.4901 GB, free: 11.28 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004256/0.4728, allocations: 58.02 kB / 0.4902 GB, free: 11.22 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001759/0.4745, allocations: 0.8078 MB / 0.491 GB, free: 10.36 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00043/0.475, allocations: 0.8519 MB / 0.4918 GB, free: 9.477 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002684/0.4753, allocations: 71.22 kB / 0.4919 GB, free: 9.41 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.4755, allocations: 160.4 kB / 0.492 GB, free: 9.254 MB / 378.7 MB Notification: Performance of SimCode: time 4.71e-07/0.4755, allocations: 3.938 kB / 0.492 GB, free: 9.25 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03135/0.5068, allocations: 9.633 MB / 0.5014 GB, free: 15.72 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001771/0.5071, allocations: 179.2 kB / 0.5016 GB, free: 15.53 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.266/2.773, allocations: 0 / 0.5016 GB, free: 15.53 MB / 394.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat