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.001018/0.001018, allocations: 194.3 kB / 8.766 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.325/1.325, allocations: 225.6 MB / 234.8 MB, free: 3.188 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008315/0.0008315, allocations: 95.84 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.159e-05, allocations: 4 kB / 343.8 MB, free: 8.145 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1045/0.1046, allocations: 51.48 MB / 395.3 MB, free: 4.625 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3749/0.4795, allocations: 87.12 MB / 482.4 MB, free: 5.777 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001986/0.4798, allocations: 83.19 kB / 482.5 MB, free: 5.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02468/0.5045, allocations: 10.15 MB / 492.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.5045, allocations: 0 / 492.6 MB, free: 13.3 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.075e-05/0.5045, allocations: 12 kB / 492.6 MB, free: 13.29 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.001218/0.5058, allocations: 0.7698 MB / 493.4 MB, free: 12.52 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.659e-05/0.5058, allocations: 12.03 kB / 493.4 MB, free: 12.5 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001144/0.5059, allocations: 70.86 kB / 493.5 MB, free: 12.44 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000582/0.5065, allocations: 391.4 kB / 493.9 MB, free: 12.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.98e-05/0.5066, allocations: 20.92 kB / 493.9 MB, free: 12.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.219e-05/0.5066, allocations: 31.91 kB / 493.9 MB, free: 12.02 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005184/0.5072, allocations: 282 kB / 494.2 MB, free: 11.85 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006697/0.5078, allocations: 415.7 kB / 494.6 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.5079, allocations: 4.688 kB / 494.6 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.038e-05/0.5079, allocations: 0 / 494.6 MB, free: 11.53 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.5079, allocations: 15.95 kB / 494.6 MB, free: 11.51 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002417/0.5104, allocations: 1.694 MB / 496.3 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007821/0.5112, allocations: 365.5 kB / 496.7 MB, free: 9.82 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003732/0.5115, allocations: 203 kB / 496.9 MB, free: 9.68 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.478e-05/0.5116, allocations: 5.875 kB / 496.9 MB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004144/0.512, allocations: 242 kB / 497.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of pre-optimization done (n=42): time 1.834e-06/0.512, allocations: 0 / 497.1 MB, free: 9.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=42): time 0.0006358/0.5127, allocations: 339.8 kB / 497.5 MB, free: 9.219 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.272e-05/0.5127, allocations: 110.8 kB / 497.6 MB, free: 9.086 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002922/0.513, allocations: 276.1 kB / 497.8 MB, free: 8.867 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.951e-05/0.5131, allocations: 33.02 kB / 497.9 MB, free: 8.832 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001715/0.5133, allocations: 257.7 kB / 498.1 MB, free: 8.633 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001007/0.5134, allocations: 116.4 kB / 498.2 MB, free: 8.535 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.061e-05/0.5134, allocations: 0 / 498.2 MB, free: 8.535 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001412/0.5136, allocations: 356.4 kB / 498.6 MB, free: 8.195 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001665/0.5137, allocations: 100.6 kB / 498.7 MB, free: 8.141 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000249/0.514, allocations: 224.1 kB / 498.9 MB, free: 7.918 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001915/0.5142, allocations: 118.4 kB / 499 MB, free: 7.844 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.5142, allocations: 0 / 499 MB, free: 7.844 MB / 362.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.0006392/0.5148, allocations: 414.7 kB / 499.4 MB, free: 7.523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005782/0.5154, allocations: 1.337 MB / 0.489 GB, free: 6.105 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.168e-05/0.5154, allocations: 7.75 kB / 0.489 GB, free: 6.102 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000267/0.5157, allocations: 68.42 kB / 0.4891 GB, free: 6.051 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003842/0.5161, allocations: 98.7 kB / 0.4892 GB, free: 5.957 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001535/0.5177, allocations: 1.624 MB / 0.4908 GB, free: 4.391 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003893/0.5181, allocations: 59.77 kB / 0.4908 GB, free: 4.332 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.753e-05/0.5181, allocations: 27.16 kB / 0.4909 GB, free: 4.312 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.011e-05/0.5181, allocations: 4 kB / 0.4909 GB, free: 4.309 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.000549/0.5187, allocations: 338.8 kB / 0.4912 GB, free: 4.066 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.5187, allocations: 4.406 kB / 0.4912 GB, free: 4.062 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001778/0.5189, allocations: 76 kB / 0.4913 GB, free: 4.004 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003122/0.5192, allocations: 79.89 kB / 0.4913 GB, free: 3.926 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001404/0.5206, allocations: 1.635 MB / 0.4929 GB, free: 2.352 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003487/0.521, allocations: 51.67 kB / 0.493 GB, free: 2.301 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.853e-05/0.521, allocations: 15.44 kB / 0.493 GB, free: 2.289 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.0001736/0.5212, allocations: 127.2 kB / 0.4931 GB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.000519/0.5217, allocations: 329.2 kB / 0.4934 GB, free: 1.906 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.023e-05/0.5218, allocations: 45.17 kB / 0.4935 GB, free: 1.863 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006239/0.5224, allocations: 365.8 kB / 0.4938 GB, free: 1.602 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.211e-06/0.5225, allocations: 8 kB / 0.4938 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.453e-06/0.5225, allocations: 0 / 0.4938 GB, free: 1.594 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.075e-06/0.5225, allocations: 3.984 kB / 0.4938 GB, free: 1.59 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001214/0.5237, allocations: 0.8996 MB / 0.4947 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.509e-06/0.5237, allocations: 48 / 0.4947 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00036/0.5241, allocations: 79.94 kB / 0.4948 GB, free: 0.7695 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001785/0.5243, allocations: 67.62 kB / 0.4948 GB, free: 0.7227 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.931e-05/0.5243, allocations: 7.984 kB / 0.4949 GB, free: 0.7148 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001398/0.5257, allocations: 1.624 MB / 0.4964 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.866e-06/0.5257, allocations: 0 / 0.4964 GB, free: 15.15 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008146/0.5266, allocations: 0.6356 MB / 0.4971 GB, free: 14.64 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001928/0.5268, allocations: 152 kB / 0.4972 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.16e-05/0.5268, allocations: 3.984 kB / 0.4972 GB, free: 14.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003308/0.5272, allocations: 43.73 kB / 0.4973 GB, free: 14.44 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00012/0.5273, allocations: 45.59 kB / 0.4973 GB, free: 14.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.014e-05/0.5273, allocations: 11.98 kB / 0.4973 GB, free: 14.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002153/0.5276, allocations: 211.4 kB / 0.4975 GB, free: 14.23 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.5276, allocations: 0 / 0.4975 GB, free: 14.23 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000964/0.5285, allocations: 215.3 kB / 0.4977 GB, free: 14.02 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.001272/0.5298, allocations: 1.327 MB / 0.499 GB, free: 12.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001187/0.531, allocations: 0.8377 MB / 0.4998 GB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.435e-06/0.531, allocations: 4.188 kB / 0.4998 GB, free: 12.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003623/0.5314, allocations: 292.2 kB / 0.5001 GB, free: 11.88 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004565/0.5319, allocations: 64.23 kB / 0.5002 GB, free: 11.82 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001695/0.5336, allocations: 0.8079 MB / 0.501 GB, free: 11.03 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004279/0.534, allocations: 0.8597 MB / 0.5018 GB, free: 10.14 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002717/0.5343, allocations: 63.28 kB / 0.5019 GB, free: 10.08 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001881/0.5345, allocations: 165 kB / 0.502 GB, free: 10.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.81e-07/0.5345, allocations: 0 / 0.502 GB, free: 10.04 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03177/0.5663, allocations: 9.819 MB / 0.5116 GB, free: 392 kB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002211/0.5666, allocations: 190.5 kB / 0.5118 GB, free: 184 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.184/2.751, allocations: 0 / 0.5118 GB, free: 184 kB / 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