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.001266/0.001266, allocations: 101.8 kB / 16.99 MB, free: 5.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001536/0.001536, allocations: 206.1 kB / 17.9 MB, free: 5.594 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.569/1.569, allocations: 227.3 MB / 245.9 MB, free: 10.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002153/0.0002154, allocations: 8 kB / 306.7 MB, free: 1.277 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1168/0.1171, allocations: 51.49 MB / 358.2 MB, free: 13.79 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.002984/0.1201, allocations: 2.141 MB / 360.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001132/0.1212, allocations: 0.6628 MB / 361 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001011/0.1214, allocations: 4 kB / 361 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 4.433e-05/0.1214, allocations: 23.77 kB / 361 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001488/0.1216, allocations: 83.75 kB / 361.1 MB, free: 10.85 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001818/0.1218, allocations: 67.91 kB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003038/0.1221, allocations: 227.4 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001812/0.1223, allocations: 72.69 kB / 361.5 MB, free: 10.5 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1224, allocations: 123.6 kB / 361.6 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001841/0.1226, allocations: 127.4 kB / 361.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.54e-05/0.1227, allocations: 16 kB / 361.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.245e-05/0.1227, allocations: 16 kB / 361.8 MB, free: 10.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.679e-05/0.1228, allocations: 47.81 kB / 361.8 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.659e-05/0.1229, allocations: 73.58 kB / 361.9 MB, free: 10.09 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002561/0.1232, allocations: 235.6 kB / 362.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.645e-06/0.1232, allocations: 0 / 362.1 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1232, allocations: 4 kB / 362.1 MB, free: 9.859 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.1232, allocations: 0 / 362.1 MB, free: 9.859 MB / 302.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.001095/0.1243, allocations: 0.5958 MB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.842e-05/0.1243, allocations: 8.031 kB / 362.7 MB, free: 9.195 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.922e-05/0.1244, allocations: 62.53 kB / 362.8 MB, free: 9.125 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.411e-05/0.1245, allocations: 31.72 kB / 362.8 MB, free: 9.094 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004022/0.1249, allocations: 258.2 kB / 363.1 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001023/0.125, allocations: 97.5 kB / 363.2 MB, free: 8.688 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.176e-05/0.1251, allocations: 24 kB / 363.2 MB, free: 8.664 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005178/0.1256, allocations: 257.8 kB / 363.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.816e-06/0.1257, allocations: 0 / 363.4 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.807e-05/0.1257, allocations: 8 kB / 363.4 MB, free: 8.391 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.278e-06/0.1257, allocations: 4 kB / 363.4 MB, free: 8.387 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005356/0.1262, allocations: 221.6 kB / 363.7 MB, free: 8.168 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001324/0.1276, allocations: 0.8593 MB / 364.5 MB, free: 7.242 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005729/0.1282, allocations: 218.7 kB / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.224e-05/0.1282, allocations: 0 / 364.7 MB, free: 7.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005351/0.1287, allocations: 186.7 kB / 364.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 1.643e-06/0.1288, allocations: 0 / 364.9 MB, free: 6.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001572/0.1303, allocations: 0.513 MB / 365.4 MB, free: 6.281 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.615e-05/0.1304, allocations: 81.11 kB / 365.5 MB, free: 6.184 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000231/0.1307, allocations: 214.8 kB / 365.7 MB, free: 5.961 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.225e-05/0.1307, allocations: 33.7 kB / 365.7 MB, free: 5.922 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001281/0.1309, allocations: 148.3 kB / 365.9 MB, free: 5.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.824e-05/0.1309, allocations: 63.09 kB / 366 MB, free: 5.707 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.033e-05/0.131, allocations: 8 kB / 366 MB, free: 5.699 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001808/0.1311, allocations: 330.8 kB / 366.3 MB, free: 5.367 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002954/0.1315, allocations: 108.2 kB / 366.4 MB, free: 5.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002959/0.1318, allocations: 135 kB / 366.5 MB, free: 5.117 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003224/0.1321, allocations: 159.4 kB / 366.7 MB, free: 4.949 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.397e-06/0.1321, allocations: 3.938 kB / 366.7 MB, free: 4.945 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008556/0.133, allocations: 413.5 kB / 367.1 MB, free: 4.52 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.711e-05/0.1331, allocations: 67.39 kB / 367.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.969e-06/0.1331, allocations: 0 / 367.2 MB, free: 4.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004155/0.1335, allocations: 100.8 kB / 367.2 MB, free: 4.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002023/0.1337, allocations: 47.91 kB / 367.3 MB, free: 4.293 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002401/0.1361, allocations: 1.893 MB / 369.2 MB, free: 2.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004547/0.1366, allocations: 75.84 kB / 369.3 MB, free: 2.195 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.508e-05/0.1366, allocations: 8 kB / 369.3 MB, free: 2.188 MB / 302.1 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.0001799/0.1368, allocations: 144.2 kB / 369.4 MB, free: 2.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.092e-05/0.1369, allocations: 35.66 kB / 369.4 MB, free: 2.004 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.011e-05/0.1369, allocations: 21.88 kB / 369.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.863e-06/0.1369, allocations: 0 / 369.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.214e-06/0.1369, allocations: 0 / 369.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.051e-06/0.1369, allocations: 7.984 kB / 369.5 MB, free: 1.977 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003228/0.1373, allocations: 297.4 kB / 369.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.344e-06/0.1373, allocations: 0 / 369.8 MB, free: 1.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001633/0.1375, allocations: 31.97 kB / 369.8 MB, free: 1.605 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002502/0.1377, allocations: 112.7 kB / 369.9 MB, free: 1.492 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.012e-05/0.1378, allocations: 8.188 kB / 369.9 MB, free: 1.484 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2945/0.4322, allocations: 1.875 MB / 371.8 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/0.4323, allocations: 3.312 kB / 371.8 MB, free: 18.59 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.4336, allocations: 434.5 kB / 372.2 MB, free: 18.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001781/0.4338, allocations: 116.8 kB / 372.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.604e-05/0.4339, allocations: 11.59 kB / 372.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002661/0.4342, allocations: 31.41 kB / 372.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001857/0.4344, allocations: 25.09 kB / 372.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.74e-05/0.4344, allocations: 5.25 kB / 372.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000258/0.4347, allocations: 146.4 kB / 372.5 MB, free: 18.35 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4347, allocations: 0 / 372.5 MB, free: 18.35 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007597/0.4355, allocations: 91.91 kB / 372.6 MB, free: 18.35 MB / 302.1 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.00177/0.4372, allocations: 0.968 MB / 373.6 MB, free: 17.75 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001473/0.4387, allocations: 0.4998 MB / 374.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.4387, allocations: 0 / 374.1 MB, free: 17.51 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005884/0.4393, allocations: 249.2 kB / 374.3 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.4398, allocations: 49.39 kB / 374.4 MB, free: 17.39 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002048/0.4418, allocations: 1.043 MB / 375.4 MB, free: 16.69 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.4423, allocations: 0.7563 MB / 376.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000104/0.4424, allocations: 13.08 kB / 376.2 MB, free: 15.99 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.4426, allocations: 66.98 kB / 376.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4426, allocations: 4.625 kB / 376.3 MB, free: 15.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05078/0.4934, allocations: 6.141 MB / 382.4 MB, free: 15.27 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001762/0.4936, allocations: 225.7 kB / 382.6 MB, free: 15.03 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.986/2.479, allocations: 0 / 382.6 MB, free: 15.03 MB / 302.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/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)