Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001337/0.001337, allocations: 122.2 kB / 17.78 MB, free: 5.355 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001411/0.001411, allocations: 197.2 kB / 18.72 MB, free: 4.41 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.415/1.415, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002656/0.002656, allocations: 59.89 kB / 358.3 MB, free: 13.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3246, allocations: 50.55 MB / 408.8 MB, free: 1.477 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004497/0.3292, allocations: 2.63 MB / 411.5 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001396/0.3306, allocations: 0.6661 MB / 412.1 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.3308, allocations: 7.938 kB / 412.1 MB, free: 14.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002013/0.331, allocations: 39.64 kB / 412.2 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002262/0.3313, allocations: 71.36 kB / 412.2 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000336/0.3316, allocations: 95.78 kB / 412.3 MB, free: 13.95 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005382/0.3322, allocations: 378.6 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000234/0.3324, allocations: 88.91 kB / 412.8 MB, free: 13.48 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002415/0.3327, allocations: 135.5 kB / 412.9 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002795/0.333, allocations: 155.4 kB / 413.1 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.005e-05/0.3331, allocations: 32 kB / 413.1 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.051e-05/0.3331, allocations: 28 kB / 413.1 MB, free: 13.14 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.552e-05/0.3332, allocations: 59.77 kB / 413.2 MB, free: 13.08 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001817/0.3334, allocations: 155.2 kB / 413.3 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004343/0.3338, allocations: 325.7 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3339, allocations: 0 / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.3339, allocations: 0 / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.242e-05/0.3339, allocations: 4 kB / 413.7 MB, free: 12.61 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.001196/0.3351, allocations: 0.6425 MB / 414.3 MB, free: 11.9 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.242e-05/0.3351, allocations: 8.031 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.877e-05/0.3352, allocations: 58.73 kB / 414.4 MB, free: 11.83 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.707e-05/0.3353, allocations: 32.75 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004183/0.3357, allocations: 255.9 kB / 414.7 MB, free: 11.51 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001058/0.3358, allocations: 102.1 kB / 414.8 MB, free: 11.39 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.837e-05/0.3359, allocations: 24.38 kB / 414.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000536/0.3364, allocations: 253.7 kB / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.039e-05/0.3365, allocations: 0 / 415 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.676e-05/0.3365, allocations: 12 kB / 415 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.885e-06/0.3365, allocations: 7.938 kB / 415.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000543/0.3371, allocations: 197.6 kB / 415.2 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001347/0.3384, allocations: 0.8595 MB / 416.1 MB, free: 9.969 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.3389, allocations: 210.6 kB / 416.3 MB, free: 9.754 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003303/0.3393, allocations: 124.8 kB / 416.4 MB, free: 9.629 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.282e-05/0.3393, allocations: 4 kB / 416.4 MB, free: 9.625 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003936/0.3397, allocations: 181.1 kB / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 2.194e-06/0.3397, allocations: 0 / 416.6 MB, free: 9.43 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001536/0.3413, allocations: 0.498 MB / 417.1 MB, free: 8.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.247e-05/0.3414, allocations: 106.8 kB / 417.2 MB, free: 8.777 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002162/0.3416, allocations: 202.8 kB / 417.4 MB, free: 8.57 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.3417, allocations: 33.7 kB / 417.4 MB, free: 8.531 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001146/0.3418, allocations: 152.4 kB / 417.6 MB, free: 8.379 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.523e-05/0.3419, allocations: 75.44 kB / 417.7 MB, free: 8.305 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001113/0.342, allocations: 53.94 kB / 417.7 MB, free: 8.246 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001559/0.3421, allocations: 330.8 kB / 418 MB, free: 7.914 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002864/0.3424, allocations: 96.19 kB / 418.1 MB, free: 7.82 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003072/0.3427, allocations: 143.8 kB / 418.3 MB, free: 7.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005156/0.3433, allocations: 246.8 kB / 418.5 MB, free: 7.406 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.199e-05/0.3433, allocations: 4 kB / 418.5 MB, free: 7.402 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008394/0.3441, allocations: 407.5 kB / 418.9 MB, free: 6.984 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.979e-05/0.3442, allocations: 67.39 kB / 419 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.3442, allocations: 0 / 419 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003546/0.3446, allocations: 104.7 kB / 419.1 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001884/0.3448, allocations: 31.98 kB / 419.1 MB, free: 6.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002724/0.3475, allocations: 2.08 MB / 421.2 MB, free: 4.551 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004855/0.348, allocations: 67.89 kB / 421.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.193e-05/0.3481, allocations: 8 kB / 421.3 MB, free: 4.477 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 9 (dcPowerSupply.cp,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,diode.off,dcPowerSupply.cc,dcPowerSupply.cv,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (18): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 2 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of prepare postOptimizeDAE: time 0.0001648/0.3482, allocations: 133.8 kB / 421.4 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.842e-05/0.3483, allocations: 31.78 kB / 421.4 MB, free: 4.305 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.93e-05/0.3484, allocations: 25.88 kB / 421.5 MB, free: 4.277 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.57e-06/0.3484, allocations: 15.92 kB / 421.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.3484, allocations: 0 / 421.5 MB, free: 4.262 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.651e-06/0.3484, allocations: 3.984 kB / 421.5 MB, free: 4.258 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005301/0.3489, allocations: 451 kB / 421.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.3489, allocations: 0 / 421.9 MB, free: 3.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001571/0.3491, allocations: 27.98 kB / 421.9 MB, free: 3.73 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00028/0.3494, allocations: 108.8 kB / 422.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.893e-05/0.3494, allocations: 4 kB / 422.1 MB, free: 3.617 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002332/0.3518, allocations: 2.065 MB / 424.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.583e-06/0.3518, allocations: 320 / 424.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008994/0.3527, allocations: 414.4 kB / 424.5 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001175/0.3528, allocations: 109 kB / 424.6 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.138e-05/0.3529, allocations: 15.92 kB / 424.7 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002302/0.3531, allocations: 24.05 kB / 424.7 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.3532, allocations: 31.94 kB / 424.7 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.843e-05/0.3532, allocations: 4 kB / 424.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001368/0.3534, allocations: 144.6 kB / 424.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.3534, allocations: 0 / 424.9 MB, free: 0.6445 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004367/0.3538, allocations: 91.84 kB / 424.9 MB, free: 0.5547 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 1 (bufferCapacitor.v) * Number of discrete variables: 6 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,9)} Notification: Performance of Backend phase and start with SimCode phase: time 0.001275/0.3551, allocations: 0.9508 MB / 425.9 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009751/0.3561, allocations: 0.4931 MB / 426.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.069e-06/0.3561, allocations: 4 kB / 426.4 MB, free: 15.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004727/0.3566, allocations: 242.5 kB / 426.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003692/0.357, allocations: 65.02 kB / 426.7 MB, free: 14.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004394/0.3614, allocations: 2.729 MB / 429.4 MB, free: 11.88 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004057/0.3618, allocations: 0.748 MB / 430.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.743e-05/0.3619, allocations: 17.95 kB / 430.2 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.362, allocations: 71.34 kB / 430.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of SimCode: time 4.1e-07/0.362, allocations: 0 / 430.3 MB, free: 11.02 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03619/0.3982, allocations: 7.108 MB / 437.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.64/12.03, allocations: 7.438 kB / 437.4 MB, free: 4.082 MB / 350.1 MB (rm -f Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Analog_Examples_DemoPowerSupplyWithBuffer.fmu > Modelica_trunk_Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer.pipe 2>&1)