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.0014/0.0014, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001788/0.001788, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.465/1.465, allocations: 227.4 MB / 246.4 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001463/0.001463, allocations: 60.41 kB / 306.6 MB, free: 0.8672 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1088/0.1103, allocations: 50.54 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.004105/0.1145, allocations: 2.662 MB / 359.8 MB, free: 11.65 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.1159, allocations: 0.6778 MB / 360.4 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002297/0.1161, allocations: 4 kB / 360.4 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001783/0.1164, allocations: 35.7 kB / 360.5 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000218/0.1166, allocations: 63.52 kB / 360.5 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003187/0.1169, allocations: 79.86 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004586/0.1174, allocations: 358.8 kB / 361 MB, free: 10.44 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002038/0.1176, allocations: 97.12 kB / 361.1 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002041/0.1178, allocations: 139.5 kB / 361.2 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002142/0.118, allocations: 151.4 kB / 361.3 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-05/0.1181, allocations: 35.94 kB / 361.4 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.699e-05/0.1182, allocations: 28 kB / 361.4 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.368e-05/0.1182, allocations: 55.83 kB / 361.5 MB, free: 9.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001723/0.1184, allocations: 151.3 kB / 361.6 MB, free: 9.793 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003478/0.1188, allocations: 323 kB / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.349e-06/0.1188, allocations: 0 / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.824e-06/0.1188, allocations: 0 / 361.9 MB, free: 9.477 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.27e-05/0.1188, allocations: 0 / 361.9 MB, free: 9.477 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.001136/0.12, allocations: 0.6388 MB / 362.6 MB, free: 8.777 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.082e-05/0.12, allocations: 11.97 kB / 362.6 MB, free: 8.766 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.595e-05/0.1201, allocations: 54.73 kB / 362.6 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.805e-05/0.1202, allocations: 36.56 kB / 362.7 MB, free: 8.668 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002997/0.1205, allocations: 251.6 kB / 362.9 MB, free: 8.383 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.361e-05/0.1206, allocations: 98.09 kB / 363 MB, free: 8.266 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.198e-05/0.1207, allocations: 24.38 kB / 363 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005297/0.1212, allocations: 257.8 kB / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.003e-05/0.1212, allocations: 0 / 363.3 MB, free: 7.977 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.767e-05/0.1212, allocations: 8 kB / 363.3 MB, free: 7.969 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.1213, allocations: 7.938 kB / 363.3 MB, free: 7.961 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005363/0.1218, allocations: 201.6 kB / 363.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001365/0.1232, allocations: 0.8671 MB / 364.4 MB, free: 6.832 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005286/0.1237, allocations: 202.7 kB / 364.6 MB, free: 6.625 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003506/0.1241, allocations: 132.7 kB / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.294e-05/0.1241, allocations: 0 / 364.7 MB, free: 6.492 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005107/0.1246, allocations: 178.8 kB / 364.9 MB, free: 6.297 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.144e-06/0.1247, allocations: 3.938 kB / 364.9 MB, free: 6.293 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001599/0.1263, allocations: 498.3 kB / 365.3 MB, free: 5.781 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.531e-05/0.1264, allocations: 114.7 kB / 365.5 MB, free: 5.645 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000214/0.1266, allocations: 206.8 kB / 365.7 MB, free: 5.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.892e-05/0.1266, allocations: 37.7 kB / 365.7 MB, free: 5.387 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001057/0.1268, allocations: 156.1 kB / 365.9 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.067e-05/0.1268, allocations: 55.17 kB / 365.9 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001061/0.1269, allocations: 57.92 kB / 366 MB, free: 5.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001065/0.1271, allocations: 330.8 kB / 366.3 MB, free: 4.777 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002782/0.1273, allocations: 96.17 kB / 366.4 MB, free: 4.684 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002993/0.1276, allocations: 143.8 kB / 366.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000482/0.1281, allocations: 240.7 kB / 366.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.568e-06/0.1281, allocations: 4 kB / 366.8 MB, free: 4.273 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008133/0.129, allocations: 408 kB / 367.2 MB, free: 3.855 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.852e-05/0.129, allocations: 63.41 kB / 367.2 MB, free: 3.781 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.195e-06/0.1291, allocations: 3.984 kB / 367.2 MB, free: 3.777 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003505/0.1294, allocations: 104.9 kB / 367.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001948/0.1296, allocations: 39.89 kB / 367.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002414/0.132, allocations: 2.072 MB / 369.4 MB, free: 1.422 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004982/0.1326, allocations: 71.72 kB / 369.5 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.1326, allocations: 12 kB / 369.5 MB, free: 1.34 MB / 302.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.0001861/0.1328, allocations: 146.8 kB / 369.7 MB, free: 1.188 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.297e-05/0.1329, allocations: 23.66 kB / 369.7 MB, free: 1.164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.211e-05/0.1329, allocations: 29.86 kB / 369.7 MB, free: 1.141 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.1329, allocations: 4 kB / 369.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.21e-06/0.1329, allocations: 0 / 369.7 MB, free: 1.137 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.133, allocations: 3.938 kB / 369.7 MB, free: 1.133 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005846/0.1335, allocations: 451.1 kB / 370.2 MB, free: 0.6328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.505e-06/0.1336, allocations: 3.938 kB / 370.2 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001642/0.1337, allocations: 27.97 kB / 370.2 MB, free: 0.6016 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002774/0.134, allocations: 104.8 kB / 370.3 MB, free: 0.4961 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.515e-05/0.1341, allocations: 8 kB / 370.3 MB, free: 500 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1773/0.3113, allocations: 2.053 MB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.437e-06/0.3114, allocations: 1.484 kB / 372.4 MB, free: 19 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008885/0.3123, allocations: 413.5 kB / 372.8 MB, free: 18.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.432e-05/0.3124, allocations: 112.7 kB / 372.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.847e-05/0.3124, allocations: 3.672 kB / 372.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002176/0.3126, allocations: 29.09 kB / 372.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.3127, allocations: 28.69 kB / 372.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.971e-05/0.3128, allocations: 5.359 kB / 372.9 MB, free: 18.83 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001283/0.3129, allocations: 152 kB / 373.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.3129, allocations: 0.9062 kB / 373.1 MB, free: 18.75 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004607/0.3134, allocations: 88.42 kB / 373.2 MB, free: 18.75 MB / 302.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.001061/0.3144, allocations: 0.9501 MB / 374.1 MB, free: 18.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000913/0.3154, allocations: 0.4917 MB / 374.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.3154, allocations: 0 / 374.6 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004113/0.3158, allocations: 249.8 kB / 374.9 MB, free: 17.74 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003595/0.3162, allocations: 59.75 kB / 374.9 MB, free: 17.72 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00371/0.3199, allocations: 2.795 MB / 377.7 MB, free: 15.87 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001665/0.3201, allocations: 0.748 MB / 378.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001019/0.3202, allocations: 19.28 kB / 378.5 MB, free: 15.16 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.855e-05/0.3203, allocations: 66.39 kB / 378.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3203, allocations: 0 / 378.5 MB, free: 15.11 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02293/0.3432, allocations: 6.746 MB / 385.3 MB, free: 13.9 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001353/0.3434, allocations: 247.7 kB / 385.5 MB, free: 13.64 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.232/2.575, allocations: 0 / 385.5 MB, free: 13.64 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/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)