Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.0009944/0.0009944, allocations: 172.2 kB / 14.1 MB, free: 1.223 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.477/1.477, allocations: 205.2 MB / 219.8 MB, free: 14.27 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.0008005/0.0008004, allocations: 82.66 kB / 268 MB, free: 14.11 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.125e-05/2.127e-05, allocations: 0 / 322.6 MB, free: 17.24 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08531/0.08534, allocations: 47.57 MB / 370.1 MB, free: 1.602 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.316/0.4014, allocations: 83.25 MB / 453.4 MB, free: 10.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002735/0.4017, allocations: 83.52 kB / 453.5 MB, free: 10.05 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01828/0.42, allocations: 7.007 MB / 460.5 MB, free: 4.109 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.4201, allocations: 3.938 kB / 460.5 MB, free: 4.105 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.807e-05/0.4201, allocations: 12 kB / 460.5 MB, free: 4.094 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: 97 * Number of variables: 97 Notification: Performance of Generate backend data structure: time 0.001159/0.4213, allocations: 0.6856 MB / 461.2 MB, free: 3.387 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.707e-05/0.4213, allocations: 12.03 kB / 461.2 MB, free: 3.375 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.026e-05/0.4214, allocations: 77.64 kB / 461.3 MB, free: 3.312 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.881e-05/0.4215, allocations: 47.44 kB / 461.3 MB, free: 3.266 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005211/0.4221, allocations: 367.9 kB / 461.7 MB, free: 2.906 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.009e-05/0.4221, allocations: 33.59 kB / 461.7 MB, free: 2.887 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.604e-05/0.4222, allocations: 37.31 kB / 461.7 MB, free: 2.863 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006677/0.4229, allocations: 417.3 kB / 462.1 MB, free: 2.555 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.643e-05/0.4229, allocations: 0 / 462.1 MB, free: 2.555 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.914e-05/0.4229, allocations: 17.5 kB / 462.2 MB, free: 2.551 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.468e-05/0.4229, allocations: 12 kB / 462.2 MB, free: 2.539 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004559/0.4234, allocations: 265.3 kB / 462.4 MB, free: 2.328 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002288/0.4257, allocations: 1.6 MB / 464 MB, free: 0.6328 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005487/0.4263, allocations: 271 kB / 464.3 MB, free: 364 kB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.4266, allocations: 144.8 kB / 464.4 MB, free: 216 kB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.075e-05/0.4266, allocations: 4 kB / 464.4 MB, free: 212 kB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003928/0.427, allocations: 224.3 kB / 464.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of pre-optimization done (n=34): time 2.515e-06/0.427, allocations: 0 / 464.7 MB, free: 15.96 MB / 346.7 MB Notification: Performance of matching and sorting (n=34): time 0.0006007/0.4276, allocations: 311.3 kB / 465 MB, free: 15.65 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.866e-05/0.4277, allocations: 144.5 kB / 465.1 MB, free: 15.48 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003745/0.4281, allocations: 319.5 kB / 465.4 MB, free: 15.16 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 4.509e-05/0.4282, allocations: 37.7 kB / 465.5 MB, free: 15.12 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001571/0.4283, allocations: 216.5 kB / 465.7 MB, free: 14.9 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.284e-05/0.4284, allocations: 98.7 kB / 465.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.392e-05/0.4285, allocations: 4 kB / 465.8 MB, free: 14.8 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001508/0.4286, allocations: 350.8 kB / 466.1 MB, free: 14.45 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001746/0.4288, allocations: 92.88 kB / 466.2 MB, free: 14.36 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000259/0.4291, allocations: 224 kB / 466.4 MB, free: 14.08 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002125/0.4293, allocations: 138.4 kB / 466.6 MB, free: 13.94 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.116e-06/0.4293, allocations: 0 / 466.6 MB, free: 13.94 MB / 346.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006425/0.43, allocations: 430 kB / 467 MB, free: 13.5 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005965/0.4306, allocations: 1.432 MB / 468.4 MB, free: 11.96 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.119e-05/0.4306, allocations: 8 kB / 468.4 MB, free: 11.95 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003226/0.4309, allocations: 80.81 kB / 468.5 MB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002214/0.4312, allocations: 59.91 kB / 468.6 MB, free: 11.81 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001856/0.433, allocations: 1.805 MB / 470.4 MB, free: 9.871 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003392/0.4334, allocations: 67.55 kB / 470.4 MB, free: 9.805 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.455e-05/0.4334, allocations: 19.98 kB / 470.4 MB, free: 9.785 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.452e-06/0.4334, allocations: 4 kB / 470.4 MB, free: 9.781 MB / 346.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0005878/0.434, allocations: 383.3 kB / 470.8 MB, free: 9.398 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.853e-06/0.434, allocations: 4 kB / 470.8 MB, free: 9.395 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002112/0.4343, allocations: 85.28 kB / 470.9 MB, free: 9.309 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001723/0.4344, allocations: 51.86 kB / 471 MB, free: 9.258 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00178/0.4362, allocations: 1.819 MB / 472.8 MB, free: 7.309 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000326/0.4366, allocations: 51.67 kB / 472.8 MB, free: 7.258 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.786e-05/0.4366, allocations: 20.06 kB / 472.8 MB, free: 7.238 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 (39): * Single equations (assignments): 37 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0001577/0.4368, allocations: 143.8 kB / 473 MB, free: 7.094 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.727e-05/0.4369, allocations: 39.52 kB / 473 MB, free: 7.055 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001076/0.437, allocations: 48.61 kB / 473.1 MB, free: 7.004 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.479e-06/0.437, allocations: 4 kB / 473.1 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.747e-06/0.437, allocations: 0 / 473.1 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.437, allocations: 0 / 473.1 MB, free: 7 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001262/0.4383, allocations: 0.9677 MB / 474 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.4383, allocations: 0 / 474 MB, free: 5.969 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001354/0.4384, allocations: 27.92 kB / 474.1 MB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.4386, allocations: 72.81 kB / 474.1 MB, free: 5.867 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.353e-05/0.4387, allocations: 8 kB / 474.2 MB, free: 5.859 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001625/0.4403, allocations: 1.761 MB / 475.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.4403, allocations: 0 / 475.9 MB, free: 3.965 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000772/0.4411, allocations: 0.5591 MB / 476.5 MB, free: 3.379 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001542/0.4413, allocations: 144.6 kB / 476.6 MB, free: 3.219 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.886e-05/0.4413, allocations: 8 kB / 476.6 MB, free: 3.211 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002715/0.4416, allocations: 36.09 kB / 476.7 MB, free: 3.176 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001174/0.4417, allocations: 35.95 kB / 476.7 MB, free: 3.141 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.339e-05/0.4418, allocations: 11.92 kB / 476.7 MB, free: 3.129 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.4421, allocations: 246.2 kB / 476.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.31e-07/0.4421, allocations: 0 / 476.9 MB, free: 2.887 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007678/0.4428, allocations: 199.6 kB / 477.1 MB, free: 2.691 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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) * 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.001154/0.444, allocations: 1.184 MB / 478.3 MB, free: 1.473 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001234/0.4452, allocations: 0.8443 MB / 479.2 MB, free: 0.582 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.4453, allocations: 4.062 kB / 479.2 MB, free: 0.5781 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003571/0.4456, allocations: 266.4 kB / 479.4 MB, free: 312 kB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003896/0.446, allocations: 70.72 kB / 479.5 MB, free: 244 kB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001436/0.4475, allocations: 0.6288 MB / 480.1 MB, free: 15.56 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003907/0.4479, allocations: 0.824 MB / 481 MB, free: 14.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0002271/0.4481, allocations: 67.23 kB / 481 MB, free: 14.65 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.4483, allocations: 131.4 kB / 481.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of SimCode: time 3.4e-07/0.4483, allocations: 0 / 481.1 MB, free: 14.52 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02482/0.4731, allocations: 9.968 MB / 491.1 MB, free: 4.543 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001805/0.4733, allocations: 226.3 kB / 491.3 MB, free: 4.309 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.177/2.65, allocations: 0 / 491.3 MB, free: 4.309 MB / 362.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_R.fmu > Modelica_3.2.3_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_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_R_res.mat does not exist to compare? outputFormat=mat