Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.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.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") translateModel(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008364/0.0008364, allocations: 99.86 kB / 15.05 MB, free: 1.105 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.0008326/0.0008327, allocations: 177.3 kB / 15.94 MB, free: 228 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.162/1.162, allocations: 223.2 MB / 239.9 MB, free: 5.434 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001664/0.001664, allocations: 271 kB / 291.2 MB, free: 1.996 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.7205/0.7205, allocations: 144.6 MB / 487 MB, free: 7.188 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.000365, allocations: 14 kB / 0.5683 GB, free: 38.37 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1261/0.1265, allocations: 83.08 MB / 0.6494 GB, free: 3.652 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Controls.Continuous.Examples.NumberOfRequests): time 0.001308/0.1278, allocations: 1.175 MB / 0.6506 GB, free: 2.469 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0005511/0.1284, allocations: 428.8 kB / 0.651 GB, free: 2.047 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.603e-05/0.1284, allocations: 4 kB / 0.651 GB, free: 2.043 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 6.127e-05/0.1285, allocations: 4.484 kB / 0.651 GB, free: 2.039 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 4.302e-05/0.1285, allocations: 16.41 kB / 0.651 GB, free: 2.023 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001483/0.1287, allocations: 26.19 kB / 0.651 GB, free: 2 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 8.113e-05/0.1288, allocations: 55.92 kB / 0.6511 GB, free: 1.945 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.16e-05/0.1289, allocations: 4.75 kB / 0.6511 GB, free: 1.941 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.388e-05/0.129, allocations: 44.42 kB / 0.6511 GB, free: 1.898 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.133e-05/0.129, allocations: 35.89 kB / 0.6512 GB, free: 1.863 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.993e-05/0.1291, allocations: 5.5 kB / 0.6512 GB, free: 1.859 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.354e-05/0.1291, allocations: 4 kB / 0.6512 GB, free: 1.855 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 2.874e-05/0.1291, allocations: 19.91 kB / 0.6512 GB, free: 1.836 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.601e-05/0.1292, allocations: 33.7 kB / 0.6512 GB, free: 1.797 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 7.4e-05/0.1292, allocations: 52.56 kB / 0.6513 GB, free: 1.746 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.076e-06/0.1292, allocations: 0 / 0.6513 GB, free: 1.746 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1293, allocations: 4.688 kB / 0.6513 GB, free: 1.742 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.591e-06/0.1293, allocations: 0 / 0.6513 GB, free: 1.742 MB / 446.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0005316/0.1298, allocations: 445.9 kB / 0.6517 GB, free: 1.25 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.822e-05/0.1298, allocations: 12.03 kB / 0.6517 GB, free: 1.238 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.473e-05/0.1299, allocations: 7.906 kB / 0.6517 GB, free: 1.23 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001435/0.13, allocations: 183 kB / 0.6519 GB, free: 1.012 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.703e-05/0.13, allocations: 16.66 kB / 0.6519 GB, free: 0.9961 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/0.1301, allocations: 5.156 kB / 0.6519 GB, free: 0.9922 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002749/0.1304, allocations: 126.8 kB / 0.652 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.292e-06/0.1304, allocations: 0 / 0.652 GB, free: 0.8633 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.293e-05/0.1304, allocations: 4.531 kB / 0.652 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1304, allocations: 0.7188 kB / 0.652 GB, free: 0.8594 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002768/0.1307, allocations: 106.3 kB / 0.6521 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004535/0.1311, allocations: 340 kB / 0.6525 GB, free: 388 kB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002855/0.1314, allocations: 117.6 kB / 0.6526 GB, free: 264 kB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.888e-06/0.1315, allocations: 0 / 0.6526 GB, free: 264 kB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002889/0.1318, allocations: 138.1 kB / 0.6527 GB, free: 116 kB / 446.1 MB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.1318, allocations: 3.469 kB / 0.6527 GB, free: 116 kB / 446.1 MB Notification: Performance of matching and sorting (n=6): time 0.0006375/0.1324, allocations: 292.9 kB / 0.653 GB, free: 15.82 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.418e-05/0.1325, allocations: 81.11 kB / 0.6531 GB, free: 15.72 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.76e-05/0.1325, allocations: 136.7 kB / 0.6532 GB, free: 15.58 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 2.168e-05/0.1326, allocations: 29.7 kB / 0.6532 GB, free: 15.54 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.878e-05/0.1326, allocations: 100 kB / 0.6533 GB, free: 15.44 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.813e-05/0.1327, allocations: 16.91 kB / 0.6533 GB, free: 15.43 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.854e-06/0.1327, allocations: 0 / 0.6533 GB, free: 15.43 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 8.165e-05/0.1328, allocations: 330.8 kB / 0.6536 GB, free: 15.09 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.1329, allocations: 71.95 kB / 0.6537 GB, free: 15.02 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001604/0.1331, allocations: 71.89 kB / 0.6538 GB, free: 14.95 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001715/0.1333, allocations: 119.4 kB / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.573e-06/0.1333, allocations: 0 / 0.6539 GB, free: 14.82 MB / 462.1 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0004347/0.1337, allocations: 269 kB / 0.6542 GB, free: 14.54 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.144e-05/0.1338, allocations: 71.39 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.521e-06/0.1338, allocations: 4.062 kB / 0.6542 GB, free: 14.46 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.035e-05/0.1338, allocations: 3.938 kB / 0.6542 GB, free: 14.45 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000106/0.1339, allocations: 15.98 kB / 0.6542 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.962e-06/0.1339, allocations: 0 / 0.6542 GB, free: 14.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001455/0.1341, allocations: 39.84 kB / 0.6543 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.633e-05/0.1341, allocations: 8 kB / 0.6543 GB, free: 14.39 MB / 462.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,numReq.y,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 6 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.896e-05/0.1342, allocations: 155.5 kB / 0.6544 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.669e-05/0.1342, allocations: 7.906 kB / 0.6544 GB, free: 14.21 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.349e-05/0.1343, allocations: 12.38 kB / 0.6545 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.313e-06/0.1343, allocations: 0 / 0.6545 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.935e-06/0.1343, allocations: 4 kB / 0.6545 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.174e-06/0.1343, allocations: 0 / 0.6545 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001189/0.1344, allocations: 197.6 kB / 0.6547 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.72e-07/0.1344, allocations: 0 / 0.6547 GB, free: 13.96 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.068e-05/0.1345, allocations: 15.98 kB / 0.6547 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1345, allocations: 0 / 0.6547 GB, free: 13.94 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.443e-05/0.1345, allocations: 8.078 kB / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.092e-06/0.1345, allocations: 3.938 kB / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.1345, allocations: 160 / 0.6547 GB, free: 13.93 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004365/0.135, allocations: 266.5 kB / 0.6549 GB, free: 13.64 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.146e-05/0.135, allocations: 81.02 kB / 0.655 GB, free: 13.55 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.411e-05/0.1351, allocations: 12 kB / 0.655 GB, free: 13.54 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001366/0.1352, allocations: 27.97 kB / 0.655 GB, free: 13.51 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.977e-05/0.1353, allocations: 31.95 kB / 0.6551 GB, free: 13.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.025e-05/0.1353, allocations: 4 kB / 0.6551 GB, free: 13.47 MB / 462.1 MB Notification: Performance of sorting global known variables: time 5.158e-05/0.1354, allocations: 99.27 kB / 0.6552 GB, free: 13.38 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.1354, allocations: 0 / 0.6552 GB, free: 13.38 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0001921/0.1356, allocations: 32 kB / 0.6552 GB, free: 13.34 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: 4 ($whenCondition1,numReq.y,pulse.T_start,pulse.count) * Number of discrete states: 2 (pulse.count,numReq.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 2 * 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 8.855e-05/0.1357, allocations: 105.2 kB / 0.6553 GB, free: 13.23 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0004476/0.1361, allocations: 282.6 kB / 0.6556 GB, free: 12.93 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 3.086e-06/0.1361, allocations: 4 kB / 0.6556 GB, free: 12.93 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000219/0.1364, allocations: 139.4 kB / 0.6557 GB, free: 12.78 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001396/0.1365, allocations: 15.98 kB / 0.6557 GB, free: 12.77 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004088/0.1369, allocations: 249.2 kB / 0.656 GB, free: 12.49 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001891/0.1371, allocations: 0.6887 MB / 0.6566 GB, free: 11.77 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 4.688e-05/0.1372, allocations: 20.16 kB / 0.6567 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.699e-05/0.1372, allocations: 7.438 kB / 0.6567 GB, free: 11.75 MB / 462.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1372, allocations: 0 / 0.6567 GB, free: 11.75 MB / 462.1 MB Notification: Performance of Templates: time 0.003195/0.1404, allocations: 1.532 MB / 0.6582 GB, free: 10.23 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; mkfifo BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe >> ../files/BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.sim & ./BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Controls.Continuous.Examples.NumberOfRequests.pipe 2>&1) Environment - environmentSimulation: