Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_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_cpp_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_cpp_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.001544/0.001544, allocations: 185.3 kB / 16.4 MB, free: 5.75 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.161/2.161, allocations: 205.4 MB / 222.5 MB, free: 9.113 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.001142/0.001142, allocations: 99.16 kB / 270.9 MB, free: 8.355 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003852/0.0003853, allocations: 16 kB / 327.1 MB, free: 88 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3317/0.3321, allocations: 47.56 MB / 374.6 MB, free: 45.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R): time 0.007286/0.3394, allocations: 3.066 MB / 377.7 MB, free: 43.07 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003424/0.3429, allocations: 0.9686 MB / 378.7 MB, free: 42.29 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005342/0.3435, allocations: 11.25 kB / 378.7 MB, free: 42.28 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002883/0.3438, allocations: 52.91 kB / 378.7 MB, free: 42.23 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000672/0.3445, allocations: 152.9 kB / 378.9 MB, free: 42.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009933/0.3455, allocations: 138 kB / 379 MB, free: 42 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001193/0.3467, allocations: 411.5 kB / 379.4 MB, free: 41.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006362/0.3474, allocations: 181.7 kB / 379.6 MB, free: 41.62 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004719/0.3479, allocations: 181.2 kB / 379.8 MB, free: 41.52 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004768/0.3484, allocations: 204.3 kB / 380 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001294/0.3485, allocations: 24.09 kB / 380 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001502/0.3487, allocations: 23.47 kB / 380 MB, free: 41.38 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001791/0.3489, allocations: 83.31 kB / 380.1 MB, free: 41.32 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002405/0.3492, allocations: 120.4 kB / 380.2 MB, free: 41.23 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009024/0.3501, allocations: 483.6 kB / 380.7 MB, free: 40.87 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3501, allocations: 1.031 kB / 380.7 MB, free: 40.87 MB / 298.7 MB Notification: Performance of FrontEnd: time 3.417e-06/0.3502, allocations: 0 / 380.7 MB, free: 40.87 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.244e-05/0.3502, allocations: 3.938 kB / 380.7 MB, free: 40.86 MB / 298.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.002684/0.3529, allocations: 0.7645 MB / 381.5 MB, free: 40.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.821e-05/0.353, allocations: 9.688 kB / 381.5 MB, free: 40.21 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002157/0.3532, allocations: 84.89 kB / 381.6 MB, free: 40.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002203/0.3535, allocations: 60.31 kB / 381.6 MB, free: 40.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001106/0.3546, allocations: 382.7 kB / 382 MB, free: 39.76 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001549/0.3548, allocations: 41 kB / 382 MB, free: 39.75 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001664/0.355, allocations: 42.44 kB / 382.1 MB, free: 39.73 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001877/0.3569, allocations: 480 kB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.634e-05/0.3569, allocations: 4.969 kB / 382.5 MB, free: 39.43 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001233/0.3571, allocations: 15.97 kB / 382.6 MB, free: 39.41 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.654e-05/0.3571, allocations: 10.91 kB / 382.6 MB, free: 39.41 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00166/0.3588, allocations: 331.6 kB / 382.9 MB, free: 39.26 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005436/0.3643, allocations: 1.709 MB / 384.6 MB, free: 37.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001851/0.3662, allocations: 340 kB / 384.9 MB, free: 37.67 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.798e-05/0.3663, allocations: 4.719 kB / 384.9 MB, free: 37.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001121/0.3674, allocations: 266.3 kB / 385.2 MB, free: 37.49 MB / 298.7 MB Notification: Performance of pre-optimization done (n=40): time 5.741e-06/0.3674, allocations: 3.984 kB / 385.2 MB, free: 37.48 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.003818/0.3713, allocations: 0.6511 MB / 385.9 MB, free: 37.11 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.55e-05/0.3714, allocations: 112 kB / 386 MB, free: 36.98 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008494/0.3723, allocations: 363.6 kB / 386.3 MB, free: 36.73 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001073/0.3724, allocations: 34.05 kB / 386.4 MB, free: 36.7 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002517/0.3727, allocations: 291.5 kB / 386.6 MB, free: 36.42 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001941/0.3729, allocations: 118.4 kB / 386.8 MB, free: 36.32 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.98e-05/0.373, allocations: 9.156 kB / 386.8 MB, free: 36.31 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001192/0.3731, allocations: 327.5 kB / 387.1 MB, free: 35.99 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007094/0.3739, allocations: 124.9 kB / 387.2 MB, free: 35.92 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007599/0.3746, allocations: 265 kB / 387.5 MB, free: 35.61 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000747/0.3754, allocations: 174 kB / 387.6 MB, free: 35.43 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.956e-06/0.3754, allocations: 0 / 387.6 MB, free: 35.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=57) (initialization): time 0.002133/0.3776, allocations: 500 kB / 388.1 MB, free: 34.93 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004335/0.3781, allocations: 1.428 MB / 389.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.696e-05/0.3781, allocations: 0 / 389.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006414/0.3788, allocations: 72.81 kB / 389.6 MB, free: 33.31 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008279/0.3796, allocations: 87.83 kB / 389.7 MB, free: 33.22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003108/0.3828, allocations: 1.718 MB / 391.4 MB, free: 31.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009233/0.3837, allocations: 55.67 kB / 391.5 MB, free: 31.32 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.669e-05/0.3838, allocations: 16 kB / 391.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.439e-05/0.3839, allocations: 4 kB / 391.5 MB, free: 31.3 MB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001657/0.3855, allocations: 441.4 kB / 391.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.469e-05/0.3856, allocations: 4 kB / 391.9 MB, free: 30.86 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004783/0.3861, allocations: 73.36 kB / 392 MB, free: 30.78 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007018/0.3868, allocations: 79.83 kB / 392.1 MB, free: 30.7 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003014/0.3898, allocations: 1.698 MB / 393.8 MB, free: 28.87 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006564/0.3905, allocations: 43.69 kB / 393.8 MB, free: 28.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.974e-05/0.3906, allocations: 20 kB / 393.8 MB, free: 28.81 MB / 298.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,chopperStepUp.andCondition_p.y,chopperStepUp.transistor.off,chopperStepUp.diode.off,signalPWM.notFire,$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 (49): * Single equations (assignments): 47 * 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.000567/0.3912, allocations: 260 kB / 394.1 MB, free: 28.54 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001714/0.3914, allocations: 47.53 kB / 394.1 MB, free: 28.5 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001672/0.3916, allocations: 48.14 kB / 394.2 MB, free: 28.45 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.242e-05/0.3916, allocations: 7.984 kB / 394.2 MB, free: 28.44 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.227e-06/0.3916, allocations: 0 / 394.2 MB, free: 28.44 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.197e-05/0.3917, allocations: 3.953 kB / 394.2 MB, free: 28.43 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002578/0.3943, allocations: 0.9772 MB / 395.2 MB, free: 27.39 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.871e-06/0.3943, allocations: 0 / 395.2 MB, free: 27.39 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004877/0.3948, allocations: 52.16 kB / 395.2 MB, free: 27.34 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003269/0.3951, allocations: 72.84 kB / 395.3 MB, free: 27.27 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.192e-05/0.3952, allocations: 15.95 kB / 395.3 MB, free: 27.25 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001923/0.3971, allocations: 1.706 MB / 397 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.435e-06/0.3972, allocations: 0 / 397 MB, free: 25.41 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001624/0.3988, allocations: 0.6702 MB / 397.7 MB, free: 24.71 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002406/0.3991, allocations: 148.4 kB / 397.8 MB, free: 24.55 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.072e-05/0.3992, allocations: 16 kB / 397.9 MB, free: 24.54 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004816/0.3997, allocations: 31.97 kB / 397.9 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001442/0.3998, allocations: 31.95 kB / 397.9 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-05/0.3999, allocations: 12 kB / 397.9 MB, free: 24.46 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003396/0.4002, allocations: 243.2 kB / 398.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.91e-07/0.4003, allocations: 0 / 398.2 MB, free: 24.23 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001204/0.4015, allocations: 227.4 kB / 398.4 MB, free: 24 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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.transistor.off,chopperStepUp.diode.off,signalPWM.notFire,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 (33): * Single equations (assignments): 26 * 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.001887/0.4034, allocations: 1.293 MB / 399.7 MB, free: 22.68 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001995/0.4054, allocations: 0.9183 MB / 400.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.4054, allocations: 0 / 400.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006743/0.4061, allocations: 319.3 kB / 400.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006803/0.4068, allocations: 69.7 kB / 401 MB, free: 21.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003511/0.4104, allocations: 3.84 MB / 404.8 MB, free: 17.35 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003421/0.4108, allocations: 0.8393 MB / 405.7 MB, free: 16.48 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003253/0.4111, allocations: 151.4 kB / 405.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of SimCode: time 2.395e-06/0.4111, allocations: 0 / 405.8 MB, free: 16.34 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.672/3.083, allocations: 8.942 MB / 414.7 MB, free: 7.414 MB / 298.7 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepUp_ChopperStepUp_R.fmu > Modelica_3.2.3_cpp_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_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepUp.ChopperStepUp_R_res.mat does not exist to compare? outputFormat=mat