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.001034/0.001039, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001085/0.001085, allocations: 202 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.314/1.314, allocations: 227.4 MB / 246.9 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001803, allocations: 59.91 kB / 358.2 MB, free: 13.42 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2581/0.2599, allocations: 50.54 MB / 408.8 MB, free: 1.555 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.003717/0.2637, allocations: 2.618 MB / 411.4 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.265, allocations: 0.67 MB / 412.1 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001363/0.2651, allocations: 4 kB / 412.1 MB, free: 14.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001559/0.2653, allocations: 35.64 kB / 412.1 MB, free: 14.21 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001606/0.2655, allocations: 83.27 kB / 412.2 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002883/0.2658, allocations: 87.88 kB / 412.3 MB, free: 14.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004128/0.2662, allocations: 382.6 kB / 412.6 MB, free: 13.66 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001955/0.2664, allocations: 90.59 kB / 412.7 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001727/0.2666, allocations: 139.5 kB / 412.9 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001866/0.2668, allocations: 147.4 kB / 413 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.766e-05/0.2669, allocations: 32 kB / 413 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.503e-05/0.2669, allocations: 32 kB / 413.1 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.088e-05/0.267, allocations: 59.75 kB / 413.1 MB, free: 13.17 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001414/0.2671, allocations: 151.2 kB / 413.3 MB, free: 13.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003199/0.2674, allocations: 326.9 kB / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.12e-06/0.2675, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.172e-06/0.2675, allocations: 0 / 413.6 MB, free: 12.7 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.202e-06/0.2675, allocations: 4 kB / 413.6 MB, free: 12.7 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.001031/0.2685, allocations: 0.6427 MB / 414.2 MB, free: 11.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.293e-05/0.2686, allocations: 8.031 kB / 414.3 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.631e-05/0.2686, allocations: 54.73 kB / 414.3 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.969e-05/0.2687, allocations: 32.66 kB / 414.3 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003699/0.2691, allocations: 259.7 kB / 414.6 MB, free: 11.6 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.743e-05/0.2692, allocations: 102.1 kB / 414.7 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.598e-05/0.2693, allocations: 24.31 kB / 414.7 MB, free: 11.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005134/0.2698, allocations: 257.8 kB / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.141e-05/0.2698, allocations: 0 / 415 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.87e-05/0.2698, allocations: 8 kB / 415 MB, free: 11.19 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2698, allocations: 7.938 kB / 415 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000497/0.2703, allocations: 201.6 kB / 415.2 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00117/0.2715, allocations: 0.8553 MB / 416 MB, free: 10.06 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004493/0.272, allocations: 202.7 kB / 416.2 MB, free: 9.852 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002921/0.2723, allocations: 120.8 kB / 416.4 MB, free: 9.73 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.373e-05/0.2723, allocations: 11.94 kB / 416.4 MB, free: 9.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003561/0.2727, allocations: 185.2 kB / 416.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=21): time 1.693e-06/0.2727, allocations: 0 / 416.5 MB, free: 9.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=21): time 0.001348/0.2741, allocations: 497.8 kB / 417 MB, free: 9.008 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.263e-05/0.2741, allocations: 110.8 kB / 417.1 MB, free: 8.875 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001853/0.2743, allocations: 210.7 kB / 417.3 MB, free: 8.66 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.994e-05/0.2744, allocations: 29.7 kB / 417.4 MB, free: 8.625 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.046e-05/0.2745, allocations: 152.2 kB / 417.5 MB, free: 8.473 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.188e-05/0.2745, allocations: 67 kB / 417.6 MB, free: 8.406 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001035/0.2747, allocations: 57.94 kB / 417.6 MB, free: 8.344 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001114/0.2748, allocations: 330.8 kB / 418 MB, free: 8.012 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000258/0.275, allocations: 96.19 kB / 418.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002643/0.2753, allocations: 147.8 kB / 418.2 MB, free: 7.762 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004522/0.2758, allocations: 242.9 kB / 418.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.2758, allocations: 0 / 418.4 MB, free: 7.504 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0007526/0.2765, allocations: 399.4 kB / 418.8 MB, free: 7.094 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.769e-05/0.2766, allocations: 67.39 kB / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.751e-06/0.2766, allocations: 0 / 418.9 MB, free: 7.016 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003164/0.2769, allocations: 108.7 kB / 419 MB, free: 6.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000169/0.2771, allocations: 31.98 kB / 419 MB, free: 6.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002202/0.2793, allocations: 2.076 MB / 421.1 MB, free: 4.66 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004487/0.2798, allocations: 71.77 kB / 421.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.99e-05/0.2798, allocations: 12 kB / 421.2 MB, free: 4.578 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.0001565/0.28, allocations: 140.4 kB / 421.3 MB, free: 4.434 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.974e-05/0.28, allocations: 27.73 kB / 421.4 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.154e-05/0.2801, allocations: 25.88 kB / 421.4 MB, free: 4.379 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.386e-06/0.2801, allocations: 7.938 kB / 421.4 MB, free: 4.371 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2801, allocations: 4 kB / 421.4 MB, free: 4.367 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2801, allocations: 7.922 kB / 421.4 MB, free: 4.359 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004482/0.2806, allocations: 451.1 kB / 421.8 MB, free: 3.859 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.414e-06/0.2806, allocations: 4.031 kB / 421.8 MB, free: 3.855 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000146/0.2807, allocations: 23.98 kB / 421.9 MB, free: 3.832 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002609/0.281, allocations: 104.7 kB / 422 MB, free: 3.727 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.856e-05/0.281, allocations: 4 kB / 422 MB, free: 3.723 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002019/0.2831, allocations: 2.076 MB / 424.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.2831, allocations: 4.031 kB / 424.1 MB, free: 1.504 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008109/0.2839, allocations: 406.4 kB / 424.5 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.317e-05/0.284, allocations: 108.8 kB / 424.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.839e-05/0.2841, allocations: 11.98 kB / 424.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001946/0.2843, allocations: 19.98 kB / 424.6 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.477e-05/0.2844, allocations: 31.91 kB / 424.6 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.882e-05/0.2844, allocations: 8 kB / 424.6 MB, free: 0.8867 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0001183/0.2845, allocations: 144.7 kB / 424.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2845, allocations: 0 / 424.8 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004128/0.2849, allocations: 95.84 kB / 424.9 MB, free: 0.6523 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.001107/0.2861, allocations: 0.9414 MB / 425.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008677/0.2869, allocations: 493.3 kB / 426.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.995e-06/0.287, allocations: 4.188 kB / 426.3 MB, free: 15.16 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004234/0.2874, allocations: 246.5 kB / 426.5 MB, free: 14.9 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003573/0.2878, allocations: 59.83 kB / 426.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004042/0.2918, allocations: 2.724 MB / 429.3 MB, free: 12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003408/0.2922, allocations: 0.7558 MB / 430.1 MB, free: 11.22 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.649e-05/0.2923, allocations: 9.953 kB / 430.1 MB, free: 11.21 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001043/0.2924, allocations: 75.41 kB / 430.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.2924, allocations: 0 / 430.2 MB, free: 11.13 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04243/0.3348, allocations: 7.108 MB / 437.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.1/11.43, allocations: 9 kB / 437.3 MB, free: 4.199 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)