Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-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: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 111.3 kB / 16.41 MB, free: 6.488 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.001164/0.001164, allocations: 189.2 kB / 17.34 MB, free: 5.762 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.376/1.376, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.823/0.823, allocations: 125.3 MB / 416.5 MB, free: 13.52 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001823/0.001823, allocations: 70.98 kB / 0.5716 GB, free: 27.75 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1134/0.1152, allocations: 78.56 MB / 0.6483 GB, free: 5.652 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002723/0.118, allocations: 1.637 MB / 0.6499 GB, free: 4 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008638/0.1189, allocations: 0.5392 MB / 0.6505 GB, free: 3.457 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.336e-05/0.119, allocations: 4 kB / 0.6505 GB, free: 3.453 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001564/0.1191, allocations: 39.7 kB / 0.6505 GB, free: 3.414 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002284/0.1194, allocations: 65.42 kB / 0.6506 GB, free: 3.352 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001466/0.1195, allocations: 63.92 kB / 0.6506 GB, free: 3.289 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001839/0.1197, allocations: 131.5 kB / 0.6507 GB, free: 3.16 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1199, allocations: 49.45 kB / 0.6508 GB, free: 3.109 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001088/0.12, allocations: 55.83 kB / 0.6508 GB, free: 3.055 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001079/0.1201, allocations: 63.69 kB / 0.6509 GB, free: 2.992 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 3.048e-05/0.1201, allocations: 8 kB / 0.6509 GB, free: 2.984 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.698e-05/0.1202, allocations: 23.94 kB / 0.6509 GB, free: 2.961 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.691e-05/0.1203, allocations: 51.83 kB / 0.651 GB, free: 2.91 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.225e-05/0.1204, allocations: 55.61 kB / 0.651 GB, free: 2.855 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001988/0.1206, allocations: 147.5 kB / 0.6512 GB, free: 2.711 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.1206, allocations: 0 / 0.6512 GB, free: 2.711 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.1206, allocations: 3.938 kB / 0.6512 GB, free: 2.707 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.147e-06/0.1206, allocations: 0 / 0.6512 GB, free: 2.707 MB / 494.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.00058/0.1212, allocations: 472.4 kB / 0.6516 GB, free: 2.199 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.255e-05/0.1212, allocations: 12.03 kB / 0.6516 GB, free: 2.188 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.813e-05/0.1213, allocations: 38.73 kB / 0.6517 GB, free: 2.141 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.146e-05/0.1213, allocations: 16.84 kB / 0.6517 GB, free: 2.125 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002854/0.1216, allocations: 244.9 kB / 0.6519 GB, free: 1.844 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.697e-06/0.1216, allocations: 12.38 kB / 0.6519 GB, free: 1.832 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.361e-05/0.1216, allocations: 8.312 kB / 0.652 GB, free: 1.824 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002672/0.1219, allocations: 117.8 kB / 0.6521 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.582e-06/0.1219, allocations: 0 / 0.6521 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.1219, allocations: 0 / 0.6521 GB, free: 1.703 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.81e-06/0.1219, allocations: 4 kB / 0.6521 GB, free: 1.699 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002311/0.1222, allocations: 59.94 kB / 0.6521 GB, free: 1.641 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005483/0.1227, allocations: 388.5 kB / 0.6525 GB, free: 1.211 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001266/0.1229, allocations: 42.55 kB / 0.6525 GB, free: 1.16 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001069/0.123, allocations: 28.83 kB / 0.6526 GB, free: 1.129 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.231e-05/0.123, allocations: 4 kB / 0.6526 GB, free: 1.125 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002131/0.1232, allocations: 101.1 kB / 0.6527 GB, free: 1.008 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.71e-07/0.1232, allocations: 0 / 0.6527 GB, free: 1.008 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004109/0.1237, allocations: 125.4 kB / 0.6528 GB, free: 0.8789 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.226e-05/0.1237, allocations: 81.05 kB / 0.6529 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002456/0.124, allocations: 257 kB / 0.6531 GB, free: 0.5195 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.993e-05/0.124, allocations: 29.7 kB / 0.6531 GB, free: 496 kB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.112e-05/0.1241, allocations: 128.1 kB / 0.6533 GB, free: 364 kB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.609e-05/0.1241, allocations: 7.891 kB / 0.6533 GB, free: 356 kB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.808e-05/0.1241, allocations: 17.72 kB / 0.6533 GB, free: 332 kB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001341/0.1243, allocations: 326.8 kB / 0.6536 GB, free: 16 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001076/0.1244, allocations: 23.97 kB / 0.6536 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001236/0.1245, allocations: 51.41 kB / 0.6537 GB, free: 15.91 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002158/0.1248, allocations: 74.48 kB / 0.6537 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1248, allocations: 0 / 0.6537 GB, free: 15.83 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002733/0.125, allocations: 97.5 kB / 0.6538 GB, free: 15.73 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.323e-05/0.1251, allocations: 7.984 kB / 0.6538 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.096e-06/0.1251, allocations: 0 / 0.6538 GB, free: 15.72 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.426e-05/0.1251, allocations: 12.03 kB / 0.6539 GB, free: 15.71 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.871e-05/0.1252, allocations: 11.98 kB / 0.6539 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.087e-06/0.1252, allocations: 0 / 0.6539 GB, free: 15.7 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.048e-05/0.1253, allocations: 15.94 kB / 0.6539 GB, free: 15.68 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.174e-06/0.1253, allocations: 0 / 0.6539 GB, free: 15.68 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.932e-05/0.1254, allocations: 129.8 kB / 0.654 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.1255, allocations: 19.91 kB / 0.654 GB, free: 15.52 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.131e-05/0.1255, allocations: 25.12 kB / 0.654 GB, free: 15.5 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.1255, allocations: 8 kB / 0.6541 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1255, allocations: 3.984 kB / 0.6541 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.254e-06/0.1255, allocations: 0 / 0.6541 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001702/0.1257, allocations: 209.6 kB / 0.6543 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.1257, allocations: 0 / 0.6543 GB, free: 15.23 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.968e-05/0.1258, allocations: 11.98 kB / 0.6543 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1258, allocations: 3.938 kB / 0.6543 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.456e-06/0.1258, allocations: 3.938 kB / 0.6543 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.096e-06/0.1258, allocations: 7.984 kB / 0.6543 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1258, allocations: 0 / 0.6543 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002852/0.1261, allocations: 124.9 kB / 0.6544 GB, free: 15.07 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.692e-05/0.1262, allocations: 93 kB / 0.6545 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.101e-05/0.1262, allocations: 3.938 kB / 0.6545 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.883e-05/0.1263, allocations: 11.98 kB / 0.6545 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.406e-05/0.1263, allocations: 4.328 kB / 0.6545 GB, free: 14.94 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.189e-05/0.1264, allocations: 11.98 kB / 0.6545 GB, free: 14.93 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001672/0.1265, allocations: 184.5 kB / 0.6547 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.1265, allocations: 0 / 0.6547 GB, free: 14.75 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002108/0.1268, allocations: 23.94 kB / 0.6547 GB, free: 14.72 MB / 0.4981 GB 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0006454/0.1274, allocations: 0.6903 MB / 0.6554 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002601/0.1277, allocations: 56 kB / 0.6554 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1277, allocations: 4.062 kB / 0.6555 GB, free: 13.95 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001138/0.1278, allocations: 31.91 kB / 0.6555 GB, free: 13.92 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002603/0.1281, allocations: 40.81 kB / 0.6555 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002018/0.1301, allocations: 1.747 MB / 0.6572 GB, free: 12.04 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002982/0.1304, allocations: 0.7196 MB / 0.6579 GB, free: 11.29 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 5.771e-05/0.1305, allocations: 16.55 kB / 0.6579 GB, free: 11.27 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.967e-05/0.1305, allocations: 47.42 kB / 0.658 GB, free: 11.23 MB / 0.4981 GB Notification: Performance of SimCode: time 2.7e-07/0.1306, allocations: 3.938 kB / 0.658 GB, free: 11.22 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3283/0.4588, allocations: 3.6 MB / 0.6615 GB, free: 7.711 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.169/8.628, allocations: 14.34 kB / 0.6615 GB, free: 7.703 MB / 0.4981 GB (rm -f IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)