Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") translateModel(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008149/0.0008148, allocations: 95.86 kB / 15.05 MB, free: 1.113 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0007869/0.0007869, allocations: 181.3 kB / 15.95 MB, free: 220 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.137/1.137, allocations: 223.2 MB / 239.9 MB, free: 5.238 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001634/0.001634, allocations: 270.8 kB / 291.3 MB, free: 1.797 MB / 238.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:5:3-5:34:writable] Warning: Got element f_alp that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_lay but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:6:3-6:35:writable] Warning: Got element f_lay that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_loss but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:7:3-7:37:writable] Warning: Got element f_loss that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Elements in the package.mo-file need to be in the same relative order as the package.order file. Got element named f_pv but it was already added because it was not the next element in the list at that time. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:8:3-8:33:writable] Warning: Got element f_pv that was not referenced in the package.order file. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Buildings/Airvolumes/Parameter/package.mo:2:1-34:14:writable] Warning: f_pv was referenced in the package.order file, but was not found in package.mo, f_pv/package.mo or f_pv.mo. Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.704/0.704, allocations: 144.6 MB / 487 MB, free: 7.219 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003732/0.0003733, allocations: 16.42 kB / 0.5683 GB, free: 38.16 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.1131, allocations: 83.08 MB / 0.6494 GB, free: 3.637 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder): time 0.003977/0.1171, allocations: 3.847 MB / 0.6532 GB, free: 15.78 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008222/0.118, allocations: 0.7014 MB / 0.6539 GB, free: 15.08 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.062e-05/0.1181, allocations: 4.531 kB / 0.6539 GB, free: 15.07 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001228/0.1182, allocations: 18.17 kB / 0.6539 GB, free: 15.06 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 5.22e-05/0.1182, allocations: 35.92 kB / 0.6539 GB, free: 15.02 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003984/0.1187, allocations: 146.2 kB / 0.6541 GB, free: 14.88 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.000124/0.1188, allocations: 103.8 kB / 0.6542 GB, free: 14.78 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.875e-05/0.1189, allocations: 18.38 kB / 0.6542 GB, free: 14.77 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001459/0.119, allocations: 67.81 kB / 0.6543 GB, free: 14.7 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.526e-05/0.1191, allocations: 72.45 kB / 0.6543 GB, free: 14.63 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 1.676e-05/0.1191, allocations: 7.938 kB / 0.6543 GB, free: 14.62 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002605/0.1194, allocations: 129.3 kB / 0.6545 GB, free: 14.5 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 2.725e-05/0.1195, allocations: 27.89 kB / 0.6545 GB, free: 14.47 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 3.23e-05/0.1195, allocations: 41.64 kB / 0.6545 GB, free: 14.42 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002608/0.1198, allocations: 157.4 kB / 0.6547 GB, free: 14.27 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.964e-06/0.1198, allocations: 0 / 0.6547 GB, free: 14.27 MB / 462.1 MB Notification: Performance of FrontEnd: time 9.42e-07/0.1198, allocations: 0 / 0.6547 GB, free: 14.27 MB / 462.1 MB Notification: Performance of Transformations before backend: time 3.687e-06/0.1198, allocations: 0 / 0.6547 GB, free: 14.27 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 17 * Number of variables: 17 Notification: Performance of Generate backend data structure: time 0.0007289/0.1205, allocations: 469.6 kB / 0.6551 GB, free: 13.77 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.763e-05/0.1206, allocations: 11.97 kB / 0.6551 GB, free: 13.76 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.23e-05/0.1206, allocations: 21.45 kB / 0.6552 GB, free: 13.74 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001462/0.1208, allocations: 182.8 kB / 0.6553 GB, free: 13.52 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.403e-05/0.1208, allocations: 8 kB / 0.6553 GB, free: 13.51 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.086e-05/0.1208, allocations: 12 kB / 0.6553 GB, free: 13.5 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002931/0.1211, allocations: 132.1 kB / 0.6555 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.552e-06/0.1211, allocations: 0 / 0.6555 GB, free: 13.37 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.839e-05/0.1211, allocations: 6.219 kB / 0.6555 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1211, allocations: 0 / 0.6555 GB, free: 13.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003941/0.1215, allocations: 158.9 kB / 0.6556 GB, free: 13.21 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000855/0.1224, allocations: 476.7 kB / 0.6561 GB, free: 12.7 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002655/0.1227, allocations: 136.1 kB / 0.6562 GB, free: 12.56 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001152/0.1238, allocations: 0.9687 MB / 0.6572 GB, free: 11.45 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.03e-05/0.1239, allocations: 30.56 kB / 0.6572 GB, free: 11.41 MB / 462.1 MB Notification: Performance of pre-optimization done (n=12): time 1.293e-06/0.1239, allocations: 0 / 0.6572 GB, free: 11.41 MB / 462.1 MB Notification: Performance of matching and sorting (n=12): time 0.0006216/0.1245, allocations: 241.4 kB / 0.6574 GB, free: 11.17 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.09e-05/0.1246, allocations: 59.34 kB / 0.6575 GB, free: 11.1 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.1247, allocations: 160.9 kB / 0.6576 GB, free: 10.93 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.979e-05/0.1247, allocations: 29.7 kB / 0.6577 GB, free: 10.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.834e-05/0.1248, allocations: 112.3 kB / 0.6578 GB, free: 10.79 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.75e-05/0.1248, allocations: 35.45 kB / 0.6578 GB, free: 10.75 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.213e-05/0.1248, allocations: 8 kB / 0.6578 GB, free: 10.74 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.022e-05/0.1249, allocations: 318.8 kB / 0.6581 GB, free: 10.42 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002099/0.1251, allocations: 91.94 kB / 0.6582 GB, free: 10.33 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002224/0.1254, allocations: 120.6 kB / 0.6583 GB, free: 10.2 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002089/0.1256, allocations: 95.95 kB / 0.6584 GB, free: 10.11 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.973e-06/0.1256, allocations: 0 / 0.6584 GB, free: 10.11 MB / 462.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0005107/0.1261, allocations: 271.3 kB / 0.6587 GB, free: 9.84 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.143e-05/0.1261, allocations: 4 kB / 0.6587 GB, free: 9.836 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.1261, allocations: 4 kB / 0.6587 GB, free: 9.832 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.011e-05/0.1262, allocations: 3.984 kB / 0.6587 GB, free: 9.828 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.1264, allocations: 55.97 kB / 0.6587 GB, free: 9.773 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.1264, allocations: 8.031 kB / 0.6587 GB, free: 9.766 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000146/0.1266, allocations: 35.77 kB / 0.6588 GB, free: 9.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.265e-05/0.1266, allocations: 11.98 kB / 0.6588 GB, free: 9.719 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.332e-05/0.1267, allocations: 121.8 kB / 0.6589 GB, free: 9.59 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.336e-05/0.1267, allocations: 27.7 kB / 0.6589 GB, free: 9.562 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004342/0.1272, allocations: 195.4 kB / 0.6591 GB, free: 9.371 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.1272, allocations: 4 kB / 0.6591 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.1272, allocations: 0 / 0.6591 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.776e-06/0.1272, allocations: 0 / 0.6591 GB, free: 9.367 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000185/0.1274, allocations: 217.5 kB / 0.6593 GB, free: 9.105 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.92e-07/0.1274, allocations: 0 / 0.6593 GB, free: 9.105 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001469/0.1275, allocations: 35.97 kB / 0.6594 GB, free: 9.07 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.667e-06/0.1276, allocations: 3.953 kB / 0.6594 GB, free: 9.066 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.086e-05/0.1276, allocations: 8 kB / 0.6594 GB, free: 9.059 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.372e-06/0.1276, allocations: 4 kB / 0.6594 GB, free: 9.055 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.284e-06/0.1276, allocations: 3.984 kB / 0.6594 GB, free: 9.051 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004144/0.128, allocations: 279.3 kB / 0.6596 GB, free: 8.762 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.229e-05/0.1281, allocations: 104.8 kB / 0.6597 GB, free: 8.641 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.175e-05/0.1281, allocations: 3.953 kB / 0.6597 GB, free: 8.637 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001335/0.1282, allocations: 19.98 kB / 0.6598 GB, free: 8.617 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.981e-05/0.1283, allocations: 15.97 kB / 0.6598 GB, free: 8.602 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.634e-06/0.1283, allocations: 4 kB / 0.6598 GB, free: 8.598 MB / 462.1 MB Notification: Performance of sorting global known variables: time 6.545e-05/0.1284, allocations: 118.1 kB / 0.6599 GB, free: 8.484 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1284, allocations: 0 / 0.6599 GB, free: 8.484 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002881/0.1287, allocations: 56.12 kB / 0.6599 GB, free: 8.43 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001994/0.1289, allocations: 155.1 kB / 0.6601 GB, free: 8.266 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004417/0.1293, allocations: 199.8 kB / 0.6603 GB, free: 8.07 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.402e-06/0.1293, allocations: 0 / 0.6603 GB, free: 8.07 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001807/0.1295, allocations: 76.08 kB / 0.6604 GB, free: 7.996 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002115/0.1297, allocations: 21.8 kB / 0.6604 GB, free: 7.977 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003961/0.1301, allocations: 361.6 kB / 0.6607 GB, free: 7.594 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001976/0.1303, allocations: 0.7126 MB / 0.6614 GB, free: 6.855 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 8.629e-05/0.1304, allocations: 13.08 kB / 0.6614 GB, free: 6.84 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.079e-05/0.1305, allocations: 23.38 kB / 0.6615 GB, free: 6.816 MB / 462.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1305, allocations: 0 / 0.6615 GB, free: 6.816 MB / 462.1 MB Notification: Performance of Templates: time 0.004451/0.1349, allocations: 2.473 MB / 0.6639 GB, free: 4.375 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.sim & ./BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.HeatExchangers.BaseClasses.Examples.HANaturalCylinder.pipe 2>&1) Environment - environmentSimulation: