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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001102/0.001102, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.21/1.21, allocations: 227.2 MB / 245 MB, free: 5.953 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008535/0.0008535, allocations: 98.41 kB / 297.3 MB, free: 5.98 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0001994/0.0001994, allocations: 8 kB / 358 MB, free: 9.223 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1844/0.1846, allocations: 51.48 MB / 409.5 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08976/0.2744, allocations: 80.49 MB / 490 MB, free: 10.1 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002007/0.2747, allocations: 71.97 kB / 490.1 MB, free: 10.03 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0119/0.2866, allocations: 4.298 MB / 494.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.794e-06/0.2866, allocations: 0 / 494.4 MB, free: 5.723 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.585e-05/0.2866, allocations: 4 kB / 494.4 MB, free: 5.719 MB / 362.7 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.0009433/0.2876, allocations: 0.608 MB / 495 MB, free: 5.051 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.2876, allocations: 12.03 kB / 495 MB, free: 5.039 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.079e-05/0.2877, allocations: 62.55 kB / 495 MB, free: 4.969 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.318e-05/0.2878, allocations: 31.62 kB / 495.1 MB, free: 4.938 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003097/0.2881, allocations: 242.8 kB / 495.3 MB, free: 4.66 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001027/0.2882, allocations: 109.5 kB / 495.4 MB, free: 4.535 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.925e-05/0.2883, allocations: 24 kB / 495.4 MB, free: 4.512 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000496/0.2888, allocations: 253.8 kB / 495.7 MB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.132e-05/0.2888, allocations: 0 / 495.7 MB, free: 4.25 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.623e-05/0.2889, allocations: 8 kB / 495.7 MB, free: 4.242 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.2889, allocations: 12 kB / 495.7 MB, free: 4.23 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005034/0.2894, allocations: 205.6 kB / 495.9 MB, free: 4.027 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001346/0.2907, allocations: 0.8983 MB / 496.8 MB, free: 3.062 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004679/0.2912, allocations: 214.7 kB / 497 MB, free: 2.844 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.229e-05/0.2913, allocations: 11.98 kB / 497 MB, free: 2.832 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003837/0.2916, allocations: 186.2 kB / 497.2 MB, free: 2.633 MB / 362.7 MB Notification: Performance of pre-optimization done (n=21): time 1.613e-06/0.2917, allocations: 0 / 497.2 MB, free: 2.633 MB / 362.7 MB Notification: Performance of matching and sorting (n=21): time 0.001509/0.2932, allocations: 0.5519 MB / 497.8 MB, free: 2.055 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.895e-05/0.2932, allocations: 85.06 kB / 497.8 MB, free: 1.953 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001744/0.2934, allocations: 178.2 kB / 498 MB, free: 1.773 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.129e-05/0.2935, allocations: 33.7 kB / 498.1 MB, free: 1.734 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.48e-05/0.2936, allocations: 152.2 kB / 498.2 MB, free: 1.582 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.572e-05/0.2936, allocations: 71.03 kB / 498.3 MB, free: 1.512 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.889e-05/0.2937, allocations: 7.938 kB / 498.3 MB, free: 1.504 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 9.799e-05/0.2938, allocations: 334.8 kB / 498.6 MB, free: 1.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.294, allocations: 104.2 kB / 498.7 MB, free: 1.062 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002712/0.2943, allocations: 147 kB / 498.9 MB, free: 0.9102 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002695/0.2946, allocations: 147.4 kB / 499 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.325e-06/0.2946, allocations: 0 / 499 MB, free: 0.7539 MB / 362.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008499/0.2955, allocations: 445.9 kB / 499.4 MB, free: 304 kB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.715e-05/0.2955, allocations: 67.36 kB / 499.5 MB, free: 224 kB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.073e-06/0.2955, allocations: 4 kB / 499.5 MB, free: 220 kB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003063/0.2958, allocations: 108.8 kB / 499.6 MB, free: 108 kB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001848/0.296, allocations: 35.98 kB / 499.6 MB, free: 72 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002046/0.2981, allocations: 1.896 MB / 0.4898 GB, free: 14.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.2985, allocations: 63.83 kB / 0.4898 GB, free: 13.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.57e-05/0.2985, allocations: 12.06 kB / 0.4899 GB, free: 13.97 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,dcPowerSupply.cv,dcPowerSupply.cc,diode.off,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count,dcPowerSupply.cp) * 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 (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 {1 9} Notification: Performance of prepare postOptimizeDAE: time 0.0001434/0.2987, allocations: 141.4 kB / 0.49 GB, free: 13.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.248e-05/0.2987, allocations: 27.7 kB / 0.49 GB, free: 13.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.2988, allocations: 21.88 kB / 0.49 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.154e-06/0.2988, allocations: 3.938 kB / 0.49 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.164e-06/0.2988, allocations: 0 / 0.49 GB, free: 13.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.2988, allocations: 7.984 kB / 0.4901 GB, free: 13.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002735/0.2991, allocations: 305.4 kB / 0.4903 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.2991, allocations: 4 kB / 0.4903 GB, free: 13.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001689/0.2993, allocations: 32.16 kB / 0.4904 GB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002406/0.2995, allocations: 108.7 kB / 0.4905 GB, free: 13.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.2996, allocations: 8 kB / 0.4905 GB, free: 13.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.3014, allocations: 1.885 MB / 0.4923 GB, free: 11.24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.3014, allocations: 7.984 kB / 0.4923 GB, free: 11.23 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009627/0.3024, allocations: 472.3 kB / 0.4928 GB, free: 10.75 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.235e-05/0.3025, allocations: 112.8 kB / 0.4929 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.937e-05/0.3025, allocations: 0 / 0.4929 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002297/0.3028, allocations: 31.97 kB / 0.4929 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.848e-05/0.3029, allocations: 23.95 kB / 0.4929 GB, free: 10.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.65e-05/0.3029, allocations: 8 kB / 0.493 GB, free: 10.56 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001128/0.303, allocations: 148.5 kB / 0.4931 GB, free: 10.42 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.303, allocations: 0 / 0.4931 GB, free: 10.42 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000372/0.3034, allocations: 95.84 kB / 0.4932 GB, free: 10.32 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 (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 {1 9} Notification: Performance of Backend phase and start with SimCode phase: time 0.001237/0.3046, allocations: 1.014 MB / 0.4942 GB, free: 9.281 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0008273/0.3055, allocations: 0.4934 MB / 0.4947 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.3055, allocations: 0 / 0.4947 GB, free: 8.75 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004357/0.3059, allocations: 262.5 kB / 0.4949 GB, free: 8.48 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002674/0.3062, allocations: 48.83 kB / 0.495 GB, free: 8.438 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001647/0.3079, allocations: 1.068 MB / 0.496 GB, free: 7.309 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002758/0.3082, allocations: 0.756 MB / 0.4967 GB, free: 6.523 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 8.524e-05/0.3083, allocations: 9.969 kB / 0.4967 GB, free: 6.516 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-05/0.3084, allocations: 71.41 kB / 0.4968 GB, free: 6.445 MB / 378.7 MB Notification: Performance of SimCode: time 1.333e-06/0.3084, allocations: 0 / 0.4968 GB, free: 6.445 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01926/0.3276, allocations: 6.16 MB / 0.5028 GB, free: 0.5117 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000156/0.3278, allocations: 221.9 kB / 0.503 GB, free: 276 kB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.697/2.025, allocations: 0 / 0.503 GB, free: 276 kB / 378.7 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/linux/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)