Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.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_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL,fileNamePrefix="Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL",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.001473/0.001474, allocations: 179.4 kB / 8.364 MB, free: 0.7148 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.006/2.006, allocations: 205.3 MB / 214.1 MB, free: 14.15 MB / 187.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001585/0.001585, allocations: 93 kB / 262.1 MB, free: 13.88 MB / 219.1 MB Notification: Performance of FrontEnd - loaded program: time 2.926e-05/2.936e-05, allocations: 4 kB / 314.9 MB, free: 9.051 MB / 267.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4148/0.4149, allocations: 47.56 MB / 362.4 MB, free: 45.86 MB / 299.1 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1354/0.5504, allocations: 82.89 MB / 445.3 MB, free: 3.406 MB / 331.1 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003749/0.5508, allocations: 87.94 kB / 445.4 MB, free: 3.32 MB / 331.1 MB Notification: Performance of FrontEnd - DAE generated: time 0.0395/0.5903, allocations: 7.266 MB / 452.7 MB, free: 12.09 MB / 347.1 MB Notification: Performance of FrontEnd: time 4.058e-06/0.5904, allocations: 0 / 452.7 MB, free: 12.09 MB / 347.1 MB Notification: Performance of Transformations before backend: time 8.212e-05/0.5905, allocations: 8 kB / 452.7 MB, free: 12.08 MB / 347.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 103 * Number of variables: 103 Notification: Performance of Generate backend data structure: time 0.002856/0.5934, allocations: 0.7048 MB / 453.4 MB, free: 11.33 MB / 347.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.483e-05/0.5935, allocations: 8.031 kB / 453.4 MB, free: 11.32 MB / 347.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003427/0.5938, allocations: 60.28 kB / 453.5 MB, free: 11.26 MB / 347.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001392/0.5952, allocations: 375.3 kB / 453.8 MB, free: 10.86 MB / 347.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.166e-05/0.5953, allocations: 12 kB / 453.8 MB, free: 10.84 MB / 347.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001715/0.5955, allocations: 31.91 kB / 453.9 MB, free: 10.81 MB / 347.1 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.00129/0.5968, allocations: 250.6 kB / 454.1 MB, free: 10.57 MB / 347.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001575/0.5984, allocations: 378.8 kB / 454.5 MB, free: 10.18 MB / 347.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.8e-05/0.5985, allocations: 0 / 454.5 MB, free: 10.18 MB / 347.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.151e-05/0.5987, allocations: 4 kB / 454.5 MB, free: 10.17 MB / 347.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.054e-05/0.5987, allocations: 12 kB / 454.5 MB, free: 10.16 MB / 347.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00543/0.6042, allocations: 1.589 MB / 456.1 MB, free: 8.484 MB / 347.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001248/0.6055, allocations: 268.6 kB / 456.4 MB, free: 8.215 MB / 347.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000667/0.6062, allocations: 144.8 kB / 456.5 MB, free: 8.07 MB / 347.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.508e-05/0.6062, allocations: 4 kB / 456.5 MB, free: 8.066 MB / 347.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008478/0.6071, allocations: 225.6 kB / 456.7 MB, free: 7.824 MB / 347.1 MB Notification: Performance of pre-optimization done (n=36): time 4.228e-06/0.6071, allocations: 0 / 456.7 MB, free: 7.824 MB / 347.1 MB Notification: Performance of matching and sorting (n=36): time 0.001397/0.6085, allocations: 289.8 kB / 457 MB, free: 7.531 MB / 347.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001199/0.6087, allocations: 136.5 kB / 457.1 MB, free: 7.367 MB / 347.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006544/0.6094, allocations: 261.1 kB / 457.4 MB, free: 7.105 MB / 347.1 MB Notification: Performance of collectPreVariables (initialization): time 9.284e-05/0.6095, allocations: 25.7 kB / 457.4 MB, free: 7.074 MB / 347.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003627/0.6099, allocations: 286.6 kB / 457.7 MB, free: 6.789 MB / 347.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001928/0.6101, allocations: 98.66 kB / 457.8 MB, free: 6.691 MB / 347.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.526e-05/0.6101, allocations: 0 / 457.8 MB, free: 6.691 MB / 347.1 MB Notification: Performance of setup shared object (initialization): time 0.0001969/0.6103, allocations: 334.8 kB / 458.1 MB, free: 6.355 MB / 347.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004737/0.6108, allocations: 84.88 kB / 458.2 MB, free: 6.27 MB / 347.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005768/0.6114, allocations: 214.9 kB / 458.4 MB, free: 6.004 MB / 347.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.6119, allocations: 107.5 kB / 458.5 MB, free: 5.902 MB / 347.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.202e-05/0.612, allocations: 4 kB / 458.5 MB, free: 5.898 MB / 347.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001486/0.6135, allocations: 350.5 kB / 458.9 MB, free: 5.547 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0009183/0.6144, allocations: 1.42 MB / 460.3 MB, free: 4.012 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.462e-05/0.6145, allocations: 8 kB / 460.3 MB, free: 4.004 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000735/0.6152, allocations: 84.75 kB / 460.4 MB, free: 3.918 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007895/0.616, allocations: 63.91 kB / 460.4 MB, free: 3.855 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003966/0.62, allocations: 1.694 MB / 462.1 MB, free: 2.051 MB / 347.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009097/0.621, allocations: 63.66 kB / 462.2 MB, free: 1.988 MB / 347.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.367e-05/0.6211, allocations: 19.95 kB / 462.2 MB, free: 1.969 MB / 347.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.6211, allocations: 4 kB / 462.2 MB, free: 1.965 MB / 347.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001278/0.6224, allocations: 300.9 kB / 462.5 MB, free: 1.668 MB / 347.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.6224, allocations: 4 kB / 462.5 MB, free: 1.664 MB / 347.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005054/0.623, allocations: 73.7 kB / 462.6 MB, free: 1.59 MB / 347.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005799/0.6236, allocations: 63.91 kB / 462.7 MB, free: 1.527 MB / 347.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00337/0.627, allocations: 1.688 MB / 464.3 MB, free: 15.73 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00067/0.6277, allocations: 43.8 kB / 464.4 MB, free: 15.68 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.828e-05/0.6278, allocations: 12 kB / 464.4 MB, free: 15.67 MB / 363.1 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 (43): * Single equations (assignments): 41 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002895/0.6281, allocations: 135 kB / 464.5 MB, free: 15.54 MB / 363.1 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.001134/0.6292, allocations: 294.1 kB / 464.8 MB, free: 15.24 MB / 363.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001181/0.6294, allocations: 31.62 kB / 464.8 MB, free: 15.21 MB / 363.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001735/0.6296, allocations: 43.61 kB / 464.9 MB, free: 15.16 MB / 363.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.22e-05/0.6296, allocations: 4 kB / 464.9 MB, free: 15.16 MB / 363.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.6296, allocations: 4.375 kB / 464.9 MB, free: 15.15 MB / 363.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.293e-05/0.6296, allocations: 3.984 kB / 464.9 MB, free: 15.15 MB / 363.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002471/0.6321, allocations: 0.883 MB / 465.8 MB, free: 14.21 MB / 363.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.398e-06/0.6321, allocations: 4 kB / 465.8 MB, free: 14.21 MB / 363.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003321/0.6325, allocations: 35.95 kB / 465.8 MB, free: 14.17 MB / 363.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003191/0.6328, allocations: 64.77 kB / 465.9 MB, free: 14.11 MB / 363.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.851e-05/0.6329, allocations: 11.98 kB / 465.9 MB, free: 14.09 MB / 363.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002193/0.6351, allocations: 1.619 MB / 467.5 MB, free: 12.36 MB / 363.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.837e-06/0.6351, allocations: 64 / 467.5 MB, free: 12.36 MB / 363.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001208/0.6363, allocations: 0.5341 MB / 468.1 MB, free: 11.8 MB / 363.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002414/0.6366, allocations: 140.7 kB / 468.2 MB, free: 11.64 MB / 363.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.611e-05/0.6367, allocations: 4 kB / 468.2 MB, free: 11.64 MB / 363.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004722/0.6372, allocations: 23.97 kB / 468.2 MB, free: 11.61 MB / 363.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001395/0.6373, allocations: 39.95 kB / 468.3 MB, free: 11.57 MB / 363.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.305e-05/0.6374, allocations: 15.98 kB / 468.3 MB, free: 11.56 MB / 363.1 MB Notification: Performance of sorting global known variables: time 0.0003129/0.6377, allocations: 196.6 kB / 468.5 MB, free: 11.37 MB / 363.1 MB Notification: Performance of sort global known variables: time 4.6e-07/0.6377, allocations: 0 / 468.5 MB, free: 11.37 MB / 363.1 MB Notification: Performance of remove unused functions: time 0.001292/0.639, allocations: 195.4 kB / 468.7 MB, free: 11.18 MB / 363.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (meanCurrent.x,meanVoltage.x,inductor.i) * 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 (29): * Single equations (assignments): 22 * 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.001838/0.6409, allocations: 1.168 MB / 469.8 MB, free: 9.969 MB / 363.1 MB Notification: Performance of simCode: created initialization part: time 0.001916/0.6429, allocations: 0.7685 MB / 470.6 MB, free: 9.16 MB / 363.1 MB Notification: Performance of simCode: created event and clocks part: time 7.995e-06/0.6429, allocations: 0 / 470.6 MB, free: 9.16 MB / 363.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000576/0.6435, allocations: 257.5 kB / 470.8 MB, free: 8.898 MB / 363.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006293/0.6441, allocations: 54.36 kB / 470.9 MB, free: 8.848 MB / 363.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002328/0.6465, allocations: 0.6721 MB / 471.6 MB, free: 8.129 MB / 363.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005982/0.6471, allocations: 0.8352 MB / 472.4 MB, free: 7.27 MB / 363.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003114/0.6474, allocations: 147.3 kB / 472.5 MB, free: 7.125 MB / 363.1 MB Notification: Performance of SimCode: time 9.61e-07/0.6475, allocations: 0 / 472.5 MB, free: 7.125 MB / 363.1 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.016/3.664, allocations: 8.409 MB / 481 MB, free: 14.75 MB / 379.1 MB (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat --tempDir=temp_Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL_fmu --startTime=0 --stopTime=0.1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_cpp_Modelica_Electrical_PowerConverters_Examples_DCDC_ChopperStepDown_ChopperStepDown_RL.fmu > Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.3_cpp_Modelica.Electrical.PowerConverters.Examples.DCDC.ChopperStepDown.ChopperStepDown_RL_res.mat does not exist to compare? outputFormat=mat