Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.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.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000898/0.0008981, 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.0008851/0.0008852, 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.244/1.244, allocations: 223.2 MB / 239.9 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001657/0.001657, allocations: 263.1 kB / 291.2 MB, free: 1.906 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.7406/0.7406, allocations: 144.6 MB / 487 MB, free: 7.211 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003879/0.0003879, allocations: 16.31 kB / 0.5683 GB, free: 38.19 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1242/0.1246, allocations: 83.08 MB / 0.6494 GB, free: 3.656 MB / 446.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001631/0.1262, allocations: 1.323 MB / 0.6507 GB, free: 2.324 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006533/0.1269, allocations: 0.4941 MB / 0.6512 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.813e-05/0.127, allocations: 4 kB / 0.6512 GB, free: 1.824 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001214/0.1271, allocations: 23.84 kB / 0.6512 GB, free: 1.801 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001937/0.1273, allocations: 61.27 kB / 0.6513 GB, free: 1.742 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001109/0.1274, allocations: 51.92 kB / 0.6513 GB, free: 1.691 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001452/0.1276, allocations: 91.77 kB / 0.6514 GB, free: 1.602 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001156/0.1277, allocations: 40 kB / 0.6515 GB, free: 1.562 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.264e-05/0.1278, allocations: 36.44 kB / 0.6515 GB, free: 1.527 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.323e-05/0.1279, allocations: 47.7 kB / 0.6515 GB, free: 1.48 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 1.874e-05/0.1279, allocations: 4.531 kB / 0.6515 GB, free: 1.477 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.089e-05/0.1279, allocations: 18.16 kB / 0.6516 GB, free: 1.461 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 5.734e-05/0.128, allocations: 27.91 kB / 0.6516 GB, free: 1.434 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 3.953e-05/0.1281, allocations: 49.58 kB / 0.6516 GB, free: 1.379 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001161/0.1282, allocations: 95.8 kB / 0.6517 GB, free: 1.285 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.053e-06/0.1282, allocations: 0 / 0.6517 GB, free: 1.285 MB / 446.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1282, allocations: 7.938 kB / 0.6517 GB, free: 1.277 MB / 446.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1282, allocations: 0.5625 kB / 0.6517 GB, free: 1.277 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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004924/0.1287, allocations: 457.6 kB / 0.6522 GB, free: 0.7852 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.778e-05/0.1287, allocations: 12.03 kB / 0.6522 GB, free: 0.7734 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.718e-05/0.1288, allocations: 16.56 kB / 0.6522 GB, free: 0.7578 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002222/0.129, allocations: 231.5 kB / 0.6524 GB, free: 500 kB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.852e-05/0.129, allocations: 12.67 kB / 0.6524 GB, free: 488 kB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.497e-05/0.1291, allocations: 7.984 kB / 0.6524 GB, free: 480 kB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002482/0.1293, allocations: 116.2 kB / 0.6525 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.673e-06/0.1293, allocations: 0 / 0.6525 GB, free: 360 kB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.548e-05/0.1293, allocations: 8 kB / 0.6526 GB, free: 352 kB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.857e-06/0.1294, allocations: 4.719 kB / 0.6526 GB, free: 348 kB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002212/0.1296, allocations: 79.31 kB / 0.6526 GB, free: 272 kB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005226/0.1301, allocations: 391 kB / 0.653 GB, free: 15.84 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.1303, allocations: 52.8 kB / 0.6531 GB, free: 15.78 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.195e-05/0.1303, allocations: 0 / 0.6531 GB, free: 15.78 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.1305, allocations: 105.3 kB / 0.6532 GB, free: 15.66 MB / 462.1 MB Notification: Performance of pre-optimization done (n=3): time 9.62e-07/0.1305, allocations: 0 / 0.6532 GB, free: 15.66 MB / 462.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004033/0.1309, allocations: 141.5 kB / 0.6533 GB, free: 15.52 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.744e-05/0.131, allocations: 81.05 kB / 0.6534 GB, free: 15.42 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002217/0.1312, allocations: 253.9 kB / 0.6536 GB, free: 15.17 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 1.595e-05/0.1312, allocations: 25.7 kB / 0.6536 GB, free: 15.14 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.299e-05/0.1313, allocations: 132.7 kB / 0.6538 GB, free: 15.01 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.272e-05/0.1313, allocations: 3.906 kB / 0.6538 GB, free: 15 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.97e-06/0.1313, allocations: 5.094 kB / 0.6538 GB, free: 15 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 9.836e-05/0.1315, allocations: 322.8 kB / 0.6541 GB, free: 14.68 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.1316, allocations: 35.97 kB / 0.6541 GB, free: 14.64 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001229/0.1317, allocations: 59.41 kB / 0.6542 GB, free: 14.57 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001071/0.1318, allocations: 35.91 kB / 0.6542 GB, free: 14.54 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.1318, allocations: 0 / 0.6542 GB, free: 14.54 MB / 462.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002607/0.1321, allocations: 121.4 kB / 0.6543 GB, free: 14.41 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.135e-05/0.1321, allocations: 5.406 kB / 0.6543 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.697e-06/0.1321, allocations: 0 / 0.6543 GB, free: 14.41 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.194e-05/0.1321, allocations: 4 kB / 0.6543 GB, free: 14.4 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001044/0.1322, allocations: 16.08 kB / 0.6543 GB, free: 14.39 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.326e-06/0.1323, allocations: 11.89 kB / 0.6544 GB, free: 14.38 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.694e-05/0.1323, allocations: 19.83 kB / 0.6544 GB, free: 14.36 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.933e-06/0.1324, allocations: 4 kB / 0.6544 GB, free: 14.35 MB / 462.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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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.844e-05/0.1325, allocations: 125.8 kB / 0.6545 GB, free: 14.22 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.313e-05/0.1325, allocations: 19.81 kB / 0.6545 GB, free: 14.2 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.974e-05/0.1325, allocations: 21.23 kB / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.1325, allocations: 0 / 0.6545 GB, free: 14.18 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.085e-06/0.1325, allocations: 3.938 kB / 0.6545 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.1325, allocations: 4.234 kB / 0.6545 GB, free: 14.17 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000156/0.1327, allocations: 217.6 kB / 0.6548 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.32e-07/0.1327, allocations: 0 / 0.6548 GB, free: 13.91 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.816e-05/0.1328, allocations: 15.98 kB / 0.6548 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.1328, allocations: 3.984 kB / 0.6548 GB, free: 13.89 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.1328, allocations: 8 kB / 0.6548 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.1328, allocations: 0 / 0.6548 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1328, allocations: 0 / 0.6548 GB, free: 13.88 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002665/0.1331, allocations: 144.8 kB / 0.6549 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.87e-05/0.1332, allocations: 92.92 kB / 0.655 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.1332, allocations: 4 kB / 0.655 GB, free: 13.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-05/0.1333, allocations: 11.98 kB / 0.655 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.746e-05/0.1333, allocations: 7.984 kB / 0.655 GB, free: 13.59 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.824e-05/0.1334, allocations: 4 kB / 0.655 GB, free: 13.58 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0001526/0.1335, allocations: 192.5 kB / 0.6552 GB, free: 13.39 MB / 462.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1335, allocations: 0 / 0.6552 GB, free: 13.39 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.0002048/0.1337, allocations: 23.91 kB / 0.6552 GB, free: 13.37 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: 1 ($whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000167/0.1339, allocations: 126.7 kB / 0.6554 GB, free: 13.24 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.0002647/0.1342, allocations: 75.88 kB / 0.6554 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.1342, allocations: 0 / 0.6554 GB, free: 13.16 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.1343, allocations: 36.17 kB / 0.6555 GB, free: 13.13 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000202/0.1345, allocations: 40.33 kB / 0.6555 GB, free: 13.09 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004216/0.135, allocations: 312.1 kB / 0.6558 GB, free: 12.76 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002342/0.1352, allocations: 0.7238 MB / 0.6565 GB, free: 12.01 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 5.688e-05/0.1353, allocations: 20.47 kB / 0.6565 GB, free: 11.99 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.969e-05/0.1353, allocations: 15.44 kB / 0.6565 GB, free: 11.98 MB / 462.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1353, allocations: 0 / 0.6565 GB, free: 11.98 MB / 462.1 MB Notification: Performance of Templates: time 0.003705/0.139, allocations: 1.561 MB / 0.6581 GB, free: 10.45 MB / 462.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (rm -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.sim & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: