Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_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.ChopperStepUp.ChopperStepUp_R,fileNamePrefix="Modelica_3_2_3_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_3_2_3_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 3.2.3+maint.om/package.mo): time 0.001367/0.001367, allocations: 180.9 kB / 17.01 MB, free: 5.125 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.509/1.509, allocations: 205.4 MB / 223.1 MB, free: 9.121 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.001068/0.001068, allocations: 89.23 kB / 271.5 MB, free: 8.363 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002535/0.0002535, allocations: 8 kB / 328.4 MB, free: 15.42 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2387/0.239, allocations: 47.57 MB / 375.9 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09248/0.3315, allocations: 83.22 MB / 459.1 MB, free: 13.42 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002387/0.3318, allocations: 83.95 kB / 459.2 MB, free: 13.34 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01899/0.3508, allocations: 7.666 MB / 466.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.3508, allocations: 0 / 466.9 MB, free: 5.641 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.476e-05/0.3508, allocations: 8 kB / 466.9 MB, free: 5.633 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 109 * Number of variables: 109 Notification: Performance of Generate backend data structure: time 0.001171/0.352, allocations: 0.7674 MB / 467.7 MB, free: 4.809 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.3521, allocations: 12.03 kB / 467.7 MB, free: 4.797 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.707e-05/0.3522, allocations: 82.52 kB / 467.8 MB, free: 4.707 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.523e-05/0.3523, allocations: 59.34 kB / 467.8 MB, free: 4.648 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004767/0.3527, allocations: 382.9 kB / 468.2 MB, free: 4.234 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.946e-05/0.3528, allocations: 36.98 kB / 468.2 MB, free: 4.199 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.439e-05/0.3529, allocations: 44 kB / 468.3 MB, free: 4.156 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007487/0.3536, allocations: 484.7 kB / 468.7 MB, free: 3.664 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.395e-05/0.3536, allocations: 3.938 kB / 468.7 MB, free: 3.66 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.119e-05/0.3537, allocations: 16 kB / 468.8 MB, free: 3.645 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.103e-05/0.3537, allocations: 12 kB / 468.8 MB, free: 3.633 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006227/0.3543, allocations: 343.8 kB / 469.1 MB, free: 3.297 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002108/0.3564, allocations: 1.698 MB / 470.8 MB, free: 1.504 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006906/0.3572, allocations: 345.4 kB / 471.1 MB, free: 1.156 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3572, allocations: 7.938 kB / 471.2 MB, free: 1.148 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004019/0.3576, allocations: 247.8 kB / 471.4 MB, free: 0.8867 MB / 346.7 MB Notification: Performance of pre-optimization done (n=39): time 1.623e-06/0.3576, allocations: 4 kB / 471.4 MB, free: 0.8828 MB / 346.7 MB Notification: Performance of matching and sorting (n=39): time 0.0012/0.3588, allocations: 0.5935 MB / 472 MB, free: 268 kB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.042e-05/0.3589, allocations: 110.8 kB / 472.1 MB, free: 132 kB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000372/0.3593, allocations: 328.8 kB / 472.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.782e-05/0.3593, allocations: 41.69 kB / 472.5 MB, free: 15.75 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001321/0.3594, allocations: 240.1 kB / 472.7 MB, free: 15.51 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.516e-05/0.3595, allocations: 118.3 kB / 472.8 MB, free: 15.39 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.005e-05/0.3596, allocations: 12 kB / 472.8 MB, free: 15.38 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001047/0.3597, allocations: 350.8 kB / 473.2 MB, free: 15.03 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.3599, allocations: 129.1 kB / 473.3 MB, free: 14.91 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003183/0.3603, allocations: 260.7 kB / 473.5 MB, free: 14.6 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002872/0.3606, allocations: 177.8 kB / 473.7 MB, free: 14.42 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.3606, allocations: 4 kB / 473.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=56) (initialization): time 0.0008151/0.3614, allocations: 0.5029 MB / 474.2 MB, free: 13.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000387/0.3618, allocations: 1.341 MB / 475.6 MB, free: 12.45 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.3618, allocations: 4 kB / 475.6 MB, free: 12.44 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002455/0.3621, allocations: 68.81 kB / 475.6 MB, free: 12.37 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002911/0.3624, allocations: 83.89 kB / 475.7 MB, free: 12.29 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001408/0.3638, allocations: 1.722 MB / 477.4 MB, free: 10.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003367/0.3641, allocations: 67.56 kB / 477.5 MB, free: 10.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.078e-05/0.3642, allocations: 24.06 kB / 477.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.532e-06/0.3642, allocations: 4 kB / 477.5 MB, free: 10.34 MB / 362.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0006605/0.3649, allocations: 434.1 kB / 478 MB, free: 9.906 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.3649, allocations: 4 kB / 478 MB, free: 9.902 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001844/0.3651, allocations: 72.75 kB / 478 MB, free: 9.828 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002629/0.3653, allocations: 75.89 kB / 478.1 MB, free: 9.754 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.3667, allocations: 1.71 MB / 479.8 MB, free: 7.914 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.367, allocations: 59.73 kB / 479.9 MB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.962e-05/0.367, allocations: 16 kB / 479.9 MB, free: 7.84 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,meanCurrent.y,$PRE.meanVoltage.y,meanVoltage.y,$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 (48): * Single equations (assignments): 46 * 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.0002354/0.3672, allocations: 251.8 kB / 480.1 MB, free: 7.582 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.749e-05/0.3673, allocations: 39.53 kB / 480.2 MB, free: 7.543 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.643e-05/0.3674, allocations: 44.14 kB / 480.2 MB, free: 7.496 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.3674, allocations: 8 kB / 480.2 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.926e-06/0.3674, allocations: 3.953 kB / 480.2 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.917e-06/0.3674, allocations: 7.938 kB / 480.2 MB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001197/0.3686, allocations: 0.9374 MB / 481.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.3687, allocations: 256 / 481.2 MB, free: 6.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002449/0.3689, allocations: 51.91 kB / 481.2 MB, free: 6.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001891/0.3691, allocations: 68.81 kB / 481.3 MB, free: 6.359 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.088e-05/0.3691, allocations: 15.95 kB / 481.3 MB, free: 6.344 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00132/0.3705, allocations: 1.698 MB / 483 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.3705, allocations: 0 / 483 MB, free: 4.512 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008641/0.3714, allocations: 0.6129 MB / 483.6 MB, free: 3.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001484/0.3715, allocations: 160.7 kB / 483.8 MB, free: 3.703 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.34e-05/0.3716, allocations: 4 kB / 483.8 MB, free: 3.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002835/0.3719, allocations: 35.91 kB / 483.8 MB, free: 3.664 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.419e-05/0.372, allocations: 39.94 kB / 483.9 MB, free: 3.625 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.517e-05/0.372, allocations: 12 kB / 483.9 MB, free: 3.613 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002826/0.3723, allocations: 271.2 kB / 484.1 MB, free: 3.352 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3723, allocations: 0 / 484.1 MB, free: 3.352 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007113/0.373, allocations: 227.4 kB / 484.4 MB, free: 3.129 MB / 362.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,inductorSource.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,meanVoltage.y) * 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 (32): * Single equations (assignments): 25 * 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.001157/0.3742, allocations: 1.174 MB / 485.5 MB, free: 1.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.00126/0.3754, allocations: 0.9112 MB / 486.4 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3755, allocations: 0 / 486.4 MB, free: 0.9648 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000376/0.3758, allocations: 302.8 kB / 486.7 MB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003694/0.3762, allocations: 65.47 kB / 486.8 MB, free: 0.5938 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002446/0.3787, allocations: 3.631 MB / 490.4 MB, free: 12.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003279/0.379, allocations: 0.8476 MB / 491.3 MB, free: 11.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001834/0.3792, allocations: 47.28 kB / 491.3 MB, free: 11.93 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.3794, allocations: 151.4 kB / 491.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of SimCode: time 3e-07/0.3794, allocations: 0 / 491.5 MB, free: 11.78 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02173/0.4011, allocations: 9.773 MB / 0.4895 GB, free: 2.027 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002009/0.4014, allocations: 242.1 kB / 0.4897 GB, free: 1.785 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.03/2.431, allocations: 0 / 0.4897 GB, free: 1.785 MB / 378.7 MB (rm -f Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat