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.00109/0.00109, allocations: 103.9 kB / 17.63 MB, free: 5.523 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001098/0.001098, allocations: 206.4 kB / 18.58 MB, free: 4.582 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.323/1.323, allocations: 227.4 MB / 246.8 MB, free: 10.64 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001383/0.001384, allocations: 63.75 kB / 307.1 MB, free: 0.5469 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1151/0.1165, allocations: 50.53 MB / 357.6 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.DemoPowerSupplyWithBuffer): time 0.00422/0.1208, allocations: 2.615 MB / 360.2 MB, free: 11.38 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001405/0.1222, allocations: 0.674 MB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002165/0.1225, allocations: 4 kB / 360.9 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001803/0.1227, allocations: 47.52 kB / 360.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002464/0.1229, allocations: 75.33 kB / 361 MB, free: 10.58 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003323/0.1233, allocations: 87.88 kB / 361.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004444/0.1237, allocations: 374.7 kB / 361.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001978/0.124, allocations: 93.12 kB / 361.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00022/0.1242, allocations: 139.5 kB / 361.7 MB, free: 9.898 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.1244, allocations: 147.4 kB / 361.8 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.594e-05/0.1245, allocations: 35.94 kB / 361.9 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.098e-05/0.1246, allocations: 32 kB / 361.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.588e-05/0.1247, allocations: 55.77 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001748/0.1248, allocations: 147.3 kB / 362.1 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004205/0.1253, allocations: 319 kB / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.1253, allocations: 0 / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1253, allocations: 0 / 362.4 MB, free: 9.176 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.279e-05/0.1253, allocations: 0 / 362.4 MB, free: 9.176 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.001391/0.1267, allocations: 0.6427 MB / 363 MB, free: 8.473 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.004e-05/0.1268, allocations: 8.031 kB / 363.1 MB, free: 8.465 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.324e-05/0.1269, allocations: 54.73 kB / 363.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001013/0.127, allocations: 36.56 kB / 363.1 MB, free: 8.367 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003573/0.1273, allocations: 259.6 kB / 363.4 MB, free: 8.074 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001116/0.1274, allocations: 102.1 kB / 363.5 MB, free: 7.953 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.267e-05/0.1275, allocations: 20.38 kB / 363.5 MB, free: 7.934 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005439/0.1281, allocations: 253.8 kB / 363.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.285e-05/0.1281, allocations: 0 / 363.8 MB, free: 7.672 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.964e-05/0.1281, allocations: 15.94 kB / 363.8 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.1281, allocations: 4 kB / 363.8 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005043/0.1286, allocations: 205.6 kB / 364 MB, free: 7.453 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001261/0.1299, allocations: 0.8671 MB / 364.9 MB, free: 6.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005079/0.1304, allocations: 202.7 kB / 365.1 MB, free: 6.312 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003324/0.1308, allocations: 128.7 kB / 365.2 MB, free: 6.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.528e-05/0.1308, allocations: 4 kB / 365.2 MB, free: 6.18 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004804/0.1313, allocations: 176.8 kB / 365.4 MB, free: 5.988 MB / 302.1 MB Notification: Performance of pre-optimization done (n=21): time 2.815e-06/0.1313, allocations: 0 / 365.4 MB, free: 5.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=21): time 0.001556/0.1329, allocations: 0.494 MB / 365.8 MB, free: 5.469 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.133, allocations: 110.8 kB / 366 MB, free: 5.336 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.1332, allocations: 206.8 kB / 366.2 MB, free: 5.121 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.392e-05/0.1332, allocations: 33.7 kB / 366.2 MB, free: 5.082 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.975e-05/0.1333, allocations: 152.1 kB / 366.3 MB, free: 4.926 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.566e-05/0.1334, allocations: 63.16 kB / 366.4 MB, free: 4.863 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001104/0.1335, allocations: 53.94 kB / 366.5 MB, free: 4.805 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001116/0.1336, allocations: 334.8 kB / 366.8 MB, free: 4.469 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002747/0.1339, allocations: 92.19 kB / 366.9 MB, free: 4.379 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002951/0.1342, allocations: 139.8 kB / 367 MB, free: 4.23 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005301/0.1347, allocations: 243.1 kB / 367.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.936e-06/0.1348, allocations: 0 / 367.2 MB, free: 3.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00082/0.1356, allocations: 411.3 kB / 367.6 MB, free: 3.551 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.42e-05/0.1356, allocations: 63.34 kB / 367.7 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.1357, allocations: 4.062 kB / 367.7 MB, free: 3.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003722/0.136, allocations: 112.8 kB / 367.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001877/0.1362, allocations: 31.98 kB / 367.9 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002469/0.1387, allocations: 2.068 MB / 369.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004625/0.1392, allocations: 75.78 kB / 370 MB, free: 1.047 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.069e-05/0.1392, allocations: 12 kB / 370 MB, free: 1.035 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.000153/0.1394, allocations: 141.8 kB / 370.1 MB, free: 0.8906 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.401e-05/0.1394, allocations: 27.59 kB / 370.2 MB, free: 0.8633 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.787e-05/0.1395, allocations: 37.84 kB / 370.2 MB, free: 0.832 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1395, allocations: 4 kB / 370.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.1395, allocations: 0 / 370.2 MB, free: 0.8281 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.168e-06/0.1395, allocations: 3.938 kB / 370.2 MB, free: 0.8242 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004442/0.14, allocations: 451.1 kB / 370.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.906e-06/0.14, allocations: 0 / 370.7 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000156/0.1402, allocations: 23.98 kB / 370.7 MB, free: 308 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002471/0.1404, allocations: 104.8 kB / 370.8 MB, free: 200 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.173e-05/0.1405, allocations: 11.98 kB / 370.8 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1663/0.3068, allocations: 2.06 MB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.826e-06/0.3068, allocations: 0.7031 kB / 372.9 MB, free: 18.86 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008598/0.3077, allocations: 405.2 kB / 373.3 MB, free: 18.78 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.162e-05/0.3078, allocations: 114.6 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.581e-05/0.3078, allocations: 6.375 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002151/0.3081, allocations: 24.17 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001034/0.3082, allocations: 30.48 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.3082, allocations: 5.812 kB / 373.4 MB, free: 18.68 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000117/0.3083, allocations: 143.9 kB / 373.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.3083, allocations: 1.562 kB / 373.6 MB, free: 18.61 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004461/0.3088, allocations: 91 kB / 373.7 MB, free: 18.61 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.001008/0.3098, allocations: 0.9501 MB / 374.6 MB, free: 18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009019/0.3107, allocations: 494 kB / 375.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.477e-06/0.3107, allocations: 1.25 kB / 375.1 MB, free: 17.71 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004245/0.3112, allocations: 252.7 kB / 375.3 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003469/0.3115, allocations: 54.53 kB / 375.4 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003578/0.3151, allocations: 2.72 MB / 378.1 MB, free: 15.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.3153, allocations: 0.7497 MB / 378.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.54e-05/0.3154, allocations: 18.48 kB / 378.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.912e-05/0.3155, allocations: 67.33 kB / 378.9 MB, free: 15 MB / 302.1 MB Notification: Performance of SimCode: time 4.8e-07/0.3155, allocations: 4 kB / 378.9 MB, free: 15 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06319/0.3787, allocations: 7.007 MB / 386 MB, free: 13.55 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/15.75, allocations: 10.3 kB / 386 MB, free: 13.55 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)