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.0009517/0.0009517, allocations: 175.4 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.289/1.289, allocations: 221.3 MB / 235.5 MB, free: 2.902 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.0008447/0.0008447, allocations: 97.98 kB / 286.5 MB, free: 192 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.454e-05/2.464e-05, allocations: 0 / 343.9 MB, free: 4.211 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1056/0.1057, allocations: 50.42 MB / 394.4 MB, free: 1.75 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3119/0.4176, allocations: 85.79 MB / 480.2 MB, free: 1.672 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002461/0.4179, allocations: 83.95 kB / 480.2 MB, free: 1.59 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02588/0.4438, allocations: 9.768 MB / 490 MB, free: 7.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.4438, allocations: 0 / 490 MB, free: 7.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.119e-05/0.4439, allocations: 12 kB / 490 MB, free: 7.758 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.001302/0.4452, allocations: 0.7642 MB / 490.8 MB, free: 6.941 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.181e-05/0.4452, allocations: 8.031 kB / 490.8 MB, free: 6.934 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001039/0.4454, allocations: 90.52 kB / 490.9 MB, free: 6.836 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001032/0.4455, allocations: 63.25 kB / 490.9 MB, free: 6.773 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005656/0.446, allocations: 396.4 kB / 491.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.019e-05/0.4461, allocations: 33 kB / 491.4 MB, free: 6.309 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.639e-05/0.4462, allocations: 48 kB / 491.4 MB, free: 6.262 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007843/0.447, allocations: 484.7 kB / 491.9 MB, free: 5.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.783e-05/0.447, allocations: 4 kB / 491.9 MB, free: 5.766 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.6e-05/0.447, allocations: 16 kB / 491.9 MB, free: 5.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.244e-05/0.4471, allocations: 12 kB / 491.9 MB, free: 5.738 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005464/0.4476, allocations: 307.9 kB / 492.2 MB, free: 5.434 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002565/0.4502, allocations: 1.792 MB / 494 MB, free: 3.551 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.451, allocations: 375.9 kB / 494.4 MB, free: 3.176 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004268/0.4515, allocations: 204.8 kB / 494.6 MB, free: 2.973 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.248e-05/0.4515, allocations: 7.953 kB / 494.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004626/0.452, allocations: 256.8 kB / 494.8 MB, free: 2.695 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 2.295e-06/0.452, allocations: 0 / 494.8 MB, free: 2.695 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0007793/0.4528, allocations: 365.3 kB / 495.2 MB, free: 2.328 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.265e-05/0.4529, allocations: 114.8 kB / 495.3 MB, free: 2.191 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000402/0.4533, allocations: 331.5 kB / 495.6 MB, free: 1.863 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 5.383e-05/0.4534, allocations: 33.7 kB / 495.7 MB, free: 1.824 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000185/0.4536, allocations: 252.3 kB / 495.9 MB, free: 1.57 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001086/0.4537, allocations: 122.3 kB / 496 MB, free: 1.449 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.218e-05/0.4537, allocations: 8 kB / 496 MB, free: 1.441 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001725/0.4539, allocations: 358.8 kB / 496.4 MB, free: 1.082 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000206/0.4541, allocations: 109.1 kB / 496.5 MB, free: 0.9766 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003055/0.4544, allocations: 232.2 kB / 496.7 MB, free: 0.6953 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002634/0.4547, allocations: 162.9 kB / 496.9 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.016e-06/0.4547, allocations: 0 / 496.9 MB, free: 0.5312 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0007903/0.4555, allocations: 486.5 kB / 497.3 MB, free: 40 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007075/0.4562, allocations: 1.337 MB / 498.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.75e-05/0.4563, allocations: 8 kB / 498.7 MB, free: 14.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003248/0.4566, allocations: 72.83 kB / 498.8 MB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003593/0.457, allocations: 83.89 kB / 498.8 MB, free: 14.43 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001767/0.4587, allocations: 1.706 MB / 0.4888 GB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003901/0.4591, allocations: 71.62 kB / 0.4889 GB, free: 12.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.546e-05/0.4592, allocations: 16 kB / 0.4889 GB, free: 12.51 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.028e-05/0.4592, allocations: 5.562 kB / 0.4889 GB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006689/0.4599, allocations: 422.3 kB / 0.4893 GB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.4599, allocations: 7.938 kB / 0.4893 GB, free: 12.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001899/0.4601, allocations: 72.88 kB / 0.4894 GB, free: 12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003407/0.4604, allocations: 87.83 kB / 0.4895 GB, free: 11.91 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001454/0.4619, allocations: 1.694 MB / 0.4911 GB, free: 10.08 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003289/0.4623, allocations: 55.84 kB / 0.4912 GB, free: 10.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.4623, allocations: 24 kB / 0.4912 GB, free: 10 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 () * 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.0001596/0.4625, allocations: 144.5 kB / 0.4913 GB, free: 9.855 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.993e-05/0.4625, allocations: 43.44 kB / 0.4914 GB, free: 9.812 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007147/0.4633, allocations: 410.7 kB / 0.4918 GB, free: 9.398 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.609e-06/0.4633, allocations: 4 kB / 0.4918 GB, free: 9.395 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.725e-06/0.4633, allocations: 4 kB / 0.4918 GB, free: 9.391 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.308e-06/0.4633, allocations: 7.922 kB / 0.4918 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00138/0.4647, allocations: 0.9962 MB / 0.4928 GB, free: 8.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.815e-06/0.4647, allocations: 4.031 kB / 0.4928 GB, free: 8.316 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003257/0.465, allocations: 71.89 kB / 0.4928 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001806/0.4652, allocations: 60.83 kB / 0.4929 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.566e-05/0.4653, allocations: 15.98 kB / 0.4929 GB, free: 8.168 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001405/0.4667, allocations: 1.687 MB / 0.4945 GB, free: 6.348 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/0.4667, allocations: 4.062 kB / 0.4946 GB, free: 6.344 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008712/0.4676, allocations: 0.6587 MB / 0.4952 GB, free: 5.648 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001643/0.4678, allocations: 156.5 kB / 0.4953 GB, free: 5.473 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.714e-05/0.4678, allocations: 8 kB / 0.4954 GB, free: 5.465 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003502/0.4682, allocations: 51.92 kB / 0.4954 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001141/0.4683, allocations: 39.94 kB / 0.4954 GB, free: 5.375 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.537e-05/0.4683, allocations: 24.05 kB / 0.4955 GB, free: 5.352 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002647/0.4686, allocations: 250.2 kB / 0.4957 GB, free: 5.105 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4686, allocations: 4 kB / 0.4957 GB, free: 5.102 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0007696/0.4694, allocations: 235.4 kB / 0.4959 GB, free: 4.871 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.001269/0.4707, allocations: 1.375 MB / 0.4973 GB, free: 3.453 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00128/0.472, allocations: 0.9044 MB / 0.4982 GB, free: 2.496 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.945e-06/0.472, allocations: 0 / 0.4982 GB, free: 2.496 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004576/0.4725, allocations: 310.3 kB / 0.4985 GB, free: 2.18 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004461/0.4729, allocations: 76.97 kB / 0.4985 GB, free: 2.109 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001734/0.4747, allocations: 0.8407 MB / 0.4993 GB, free: 1.223 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004346/0.4751, allocations: 0.8563 MB / 0.5002 GB, free: 348 kB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002985/0.4754, allocations: 71.41 kB / 0.5003 GB, free: 276 kB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002264/0.4756, allocations: 159.4 kB / 0.5004 GB, free: 116 kB / 378.7 MB Notification: Performance of SimCode: time 2.495e-06/0.4757, allocations: 4 kB / 0.5004 GB, free: 112 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02722/0.5029, allocations: 11.11 MB / 0.5113 GB, free: 5.309 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002065/0.5031, allocations: 219.8 kB / 0.5115 GB, free: 5.082 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.206/2.71, allocations: 0 / 0.5115 GB, free: 5.082 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