Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_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.001151/0.001151, allocations: 180.5 kB / 16.38 MB, free: 5.766 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.321/1.321, allocations: 223.2 MB / 240.3 MB, free: 10.16 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008626/0.0008626, allocations: 98.88 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002348/0.0002348, allocations: 8 kB / 351.2 MB, free: 15 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2373/0.2375, allocations: 50.41 MB / 401.6 MB, free: 32.54 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1192/0.3568, allocations: 85.87 MB / 487.5 MB, free: 10.55 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002522/0.3571, allocations: 87.94 kB / 487.6 MB, free: 10.46 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02623/0.3834, allocations: 9.798 MB / 497.4 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.3834, allocations: 0 / 497.4 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.421e-05/0.3834, allocations: 12 kB / 497.4 MB, free: 0.5898 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.001427/0.3849, allocations: 0.8183 MB / 498.2 MB, free: 15.71 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.3849, allocations: 16.03 kB / 498.2 MB, free: 15.7 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000108/0.385, allocations: 86.52 kB / 498.3 MB, free: 15.61 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001036/0.3852, allocations: 59.25 kB / 498.3 MB, free: 15.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005598/0.3857, allocations: 403.5 kB / 498.7 MB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.969e-05/0.3858, allocations: 33 kB / 498.8 MB, free: 15.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.034e-05/0.3858, allocations: 48 kB / 498.8 MB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009217/0.3868, allocations: 0.5123 MB / 499.3 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.508e-05/0.3868, allocations: 0 / 499.3 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.441e-05/0.3868, allocations: 16 kB / 499.3 MB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.088e-05/0.3869, allocations: 12 kB / 499.4 MB, free: 14.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008121/0.3877, allocations: 395.7 kB / 499.7 MB, free: 14.09 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002456/0.3901, allocations: 1.776 MB / 0.4898 GB, free: 12.22 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.3912, allocations: 445.6 kB / 0.4902 GB, free: 11.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.3913, allocations: 8 kB / 0.4902 GB, free: 11.77 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005567/0.3918, allocations: 304.6 kB / 0.4905 GB, free: 11.45 MB / 378.7 MB Notification: Performance of pre-optimization done (n=42): time 4.439e-06/0.3918, allocations: 0 / 0.4905 GB, free: 11.45 MB / 378.7 MB Notification: Performance of matching and sorting (n=42): time 0.001618/0.3935, allocations: 0.7208 MB / 0.4912 GB, free: 10.7 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.025e-05/0.3935, allocations: 110.8 kB / 0.4913 GB, free: 10.57 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003505/0.3939, allocations: 332.7 kB / 0.4916 GB, free: 10.24 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.014e-05/0.394, allocations: 37.7 kB / 0.4917 GB, free: 10.2 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001622/0.3941, allocations: 248.2 kB / 0.4919 GB, free: 9.953 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001343/0.3943, allocations: 122.2 kB / 0.492 GB, free: 9.832 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.397e-05/0.3943, allocations: 12 kB / 0.492 GB, free: 9.82 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001741/0.3945, allocations: 362.7 kB / 0.4924 GB, free: 9.457 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003528/0.3948, allocations: 149 kB / 0.4925 GB, free: 9.312 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000428/0.3953, allocations: 280 kB / 0.4928 GB, free: 8.988 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000384/0.3957, allocations: 193.6 kB / 0.493 GB, free: 8.793 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.3957, allocations: 0 / 0.493 GB, free: 8.793 MB / 378.7 MB Notification: Performance of matching and sorting (n=58) (initialization): time 0.001022/0.3967, allocations: 0.555 MB / 0.4935 GB, free: 8.223 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0005136/0.3972, allocations: 1.342 MB / 0.4948 GB, free: 6.777 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.3972, allocations: 4 kB / 0.4948 GB, free: 6.773 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000269/0.3975, allocations: 80.73 kB / 0.4949 GB, free: 6.691 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003475/0.3979, allocations: 91.88 kB / 0.495 GB, free: 6.602 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001621/0.3995, allocations: 1.714 MB / 0.4967 GB, free: 4.754 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003791/0.3999, allocations: 71.62 kB / 0.4967 GB, free: 4.684 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.642e-05/0.3999, allocations: 19.98 kB / 0.4967 GB, free: 4.664 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.653e-06/0.4, allocations: 4 kB / 0.4967 GB, free: 4.66 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008536/0.4008, allocations: 481.8 kB / 0.4972 GB, free: 4.18 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.4008, allocations: 4 kB / 0.4972 GB, free: 4.176 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.401, allocations: 69.12 kB / 0.4973 GB, free: 4.105 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003083/0.4013, allocations: 91.83 kB / 0.4974 GB, free: 4.016 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001493/0.4028, allocations: 1.706 MB / 0.499 GB, free: 2.176 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003275/0.4032, allocations: 51.73 kB / 0.4991 GB, free: 2.125 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.549e-05/0.4032, allocations: 16 kB / 0.4991 GB, free: 2.109 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,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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.0003071/0.4035, allocations: 267.7 kB / 0.4993 GB, free: 1.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.408e-05/0.4036, allocations: 39.58 kB / 0.4994 GB, free: 1.801 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000945/0.4046, allocations: 486.8 kB / 0.4998 GB, free: 1.312 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.74e-06/0.4046, allocations: 7.953 kB / 0.4999 GB, free: 1.305 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.4046, allocations: 4 kB / 0.4999 GB, free: 1.301 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.853e-06/0.4046, allocations: 3.984 kB / 0.4999 GB, free: 1.297 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001564/0.4062, allocations: 1.057 MB / 0.5009 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.172e-05/0.4062, allocations: 0 / 0.5009 GB, free: 184 kB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003366/0.4066, allocations: 67.89 kB / 0.501 GB, free: 116 kB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002017/0.4068, allocations: 76.75 kB / 0.501 GB, free: 36 kB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.4068, allocations: 8 kB / 0.501 GB, free: 28 kB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1547/0.5615, allocations: 1.691 MB / 0.5027 GB, free: 96.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.5615, allocations: 0.9375 kB / 0.5027 GB, free: 96.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001576/0.5631, allocations: 0.7571 MB / 0.5034 GB, free: 96.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001822/0.5633, allocations: 151.4 kB / 0.5036 GB, free: 96.38 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.017e-05/0.5634, allocations: 13.89 kB / 0.5036 GB, free: 96.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003447/0.5637, allocations: 44.75 kB / 0.5036 GB, free: 96.38 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/0.5639, allocations: 40.52 kB / 0.5037 GB, free: 96.38 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.556e-05/0.5639, allocations: 19.52 kB / 0.5037 GB, free: 96.38 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003184/0.5642, allocations: 256.7 kB / 0.5039 GB, free: 96.3 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.5642, allocations: 3.844 kB / 0.5039 GB, free: 96.3 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0008736/0.5651, allocations: 237.4 kB / 0.5042 GB, free: 96.3 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,chopperStepUp.andCondition_p.y,chopperStepUp.fire_p,chopperStepUp.transistor.off,chopperStepUp.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 (36): * Single equations (assignments): 29 * 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.001606/0.5667, allocations: 1.309 MB / 0.5054 GB, free: 95.6 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00175/0.5685, allocations: 1.007 MB / 0.5064 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.516e-06/0.5685, allocations: 0.5625 kB / 0.5064 GB, free: 95.23 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006231/0.5691, allocations: 348 kB / 0.5068 GB, free: 95.12 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.5696, allocations: 74.47 kB / 0.5068 GB, free: 95.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.5719, allocations: 3.726 MB / 0.5105 GB, free: 92.11 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000266/0.5722, allocations: 0.8549 MB / 0.5113 GB, free: 91.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002082/0.5724, allocations: 49.67 kB / 0.5114 GB, free: 91.39 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.5726, allocations: 172.9 kB / 0.5115 GB, free: 91.38 MB / 378.7 MB Notification: Performance of SimCode: time 5.81e-07/0.5726, allocations: 0 / 0.5115 GB, free: 91.38 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0213/0.5939, allocations: 10.4 MB / 0.5217 GB, free: 88.68 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001413/0.5941, allocations: 243.8 kB / 0.5219 GB, free: 88.44 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.222/2.816, allocations: 4 kB / 0.5219 GB, free: 88.43 MB / 378.7 MB (rm -f Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_4.0.0_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat