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.001688/0.001688, allocations: 104.4 kB / 16.4 MB, free: 6.469 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.001957/0.001957, allocations: 196 kB / 17.34 MB, free: 5.711 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.298/1.298, allocations: 222.9 MB / 241 MB, free: 15.06 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.7368/0.7368, allocations: 122.9 MB / 414.1 MB, free: 15.86 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 71.92 kB / 0.5679 GB, free: 28.88 MB / 446.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1184/0.1196, allocations: 77.93 MB / 0.644 GB, free: 9.582 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.002709/0.1223, allocations: 1.622 MB / 0.6456 GB, free: 7.949 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009006/0.1233, allocations: 0.5505 MB / 0.6462 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.925e-05/0.1234, allocations: 0 / 0.6462 GB, free: 7.395 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1236, allocations: 27.8 kB / 0.6462 GB, free: 7.367 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002557/0.1238, allocations: 63.67 kB / 0.6462 GB, free: 7.305 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001759/0.124, allocations: 67.84 kB / 0.6463 GB, free: 7.238 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.1242, allocations: 135.5 kB / 0.6464 GB, free: 7.105 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001402/0.1244, allocations: 45.47 kB / 0.6465 GB, free: 7.059 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001222/0.1245, allocations: 51.78 kB / 0.6465 GB, free: 7.008 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001138/0.1246, allocations: 63.69 kB / 0.6466 GB, free: 6.945 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1247, allocations: 8 kB / 0.6466 GB, free: 6.938 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.074e-05/0.1247, allocations: 24 kB / 0.6466 GB, free: 6.914 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.505e-05/0.1248, allocations: 47.83 kB / 0.6467 GB, free: 6.867 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.616e-05/0.1249, allocations: 59.55 kB / 0.6467 GB, free: 6.809 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002123/0.1251, allocations: 147.6 kB / 0.6469 GB, free: 6.664 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.566e-06/0.1251, allocations: 3.938 kB / 0.6469 GB, free: 6.66 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1251, allocations: 0 / 0.6469 GB, free: 6.66 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.811e-06/0.1252, allocations: 0 / 0.6469 GB, free: 6.66 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.0005917/0.1258, allocations: 478.4 kB / 0.6473 GB, free: 6.145 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1258, allocations: 12.62 kB / 0.6473 GB, free: 6.133 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.505e-05/0.1258, allocations: 38.75 kB / 0.6474 GB, free: 6.086 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.9e-05/0.1259, allocations: 16.84 kB / 0.6474 GB, free: 6.07 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002992/0.1262, allocations: 244.9 kB / 0.6476 GB, free: 5.789 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.006e-05/0.1262, allocations: 8.312 kB / 0.6476 GB, free: 5.781 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.527e-05/0.1262, allocations: 4.375 kB / 0.6476 GB, free: 5.777 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002784/0.1265, allocations: 120.3 kB / 0.6478 GB, free: 5.656 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.085e-05/0.1266, allocations: 3.984 kB / 0.6478 GB, free: 5.652 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.664e-05/0.1266, allocations: 11.94 kB / 0.6478 GB, free: 5.641 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.997e-06/0.1266, allocations: 0 / 0.6478 GB, free: 5.641 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002349/0.1268, allocations: 59.94 kB / 0.6478 GB, free: 5.582 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005803/0.1274, allocations: 392.5 kB / 0.6482 GB, free: 5.148 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001391/0.1276, allocations: 34.56 kB / 0.6482 GB, free: 5.105 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001163/0.1277, allocations: 32.89 kB / 0.6483 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.529e-05/0.1277, allocations: 0 / 0.6483 GB, free: 5.07 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.1279, allocations: 101 kB / 0.6484 GB, free: 4.953 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1279, allocations: 0 / 0.6484 GB, free: 4.953 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004505/0.1284, allocations: 125.4 kB / 0.6485 GB, free: 4.824 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.1285, allocations: 81.09 kB / 0.6486 GB, free: 4.727 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002367/0.1287, allocations: 249 kB / 0.6488 GB, free: 4.473 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.779e-05/0.1287, allocations: 29.7 kB / 0.6488 GB, free: 4.438 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.633e-05/0.1288, allocations: 132.1 kB / 0.649 GB, free: 4.305 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.944e-05/0.1288, allocations: 11.89 kB / 0.649 GB, free: 4.293 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.664e-05/0.1289, allocations: 9.719 kB / 0.649 GB, free: 4.277 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001017/0.129, allocations: 334.8 kB / 0.6493 GB, free: 3.941 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001155/0.1291, allocations: 19.98 kB / 0.6493 GB, free: 3.922 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001281/0.1292, allocations: 55.34 kB / 0.6494 GB, free: 3.855 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002221/0.1295, allocations: 66.52 kB / 0.6494 GB, free: 3.781 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1295, allocations: 0 / 0.6494 GB, free: 3.781 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002935/0.1298, allocations: 105.5 kB / 0.6495 GB, free: 3.672 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.627e-05/0.1298, allocations: 8 kB / 0.6495 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.2e-06/0.1298, allocations: 0 / 0.6495 GB, free: 3.664 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.382e-05/0.1298, allocations: 3.938 kB / 0.6495 GB, free: 3.66 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001131/0.13, allocations: 11.98 kB / 0.6496 GB, free: 3.648 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.28e-06/0.13, allocations: 3.938 kB / 0.6496 GB, free: 3.645 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.699e-05/0.1301, allocations: 20.03 kB / 0.6496 GB, free: 3.625 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.407e-06/0.1301, allocations: 4 kB / 0.6496 GB, free: 3.621 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.819e-05/0.1302, allocations: 126.7 kB / 0.6497 GB, free: 3.488 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.176e-05/0.1302, allocations: 15.91 kB / 0.6497 GB, free: 3.473 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.579e-05/0.1303, allocations: 25.17 kB / 0.6497 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.595e-06/0.1303, allocations: 0 / 0.6497 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.1303, allocations: 0 / 0.6497 GB, free: 3.445 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.726e-06/0.1303, allocations: 3.938 kB / 0.6497 GB, free: 3.441 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001675/0.1305, allocations: 217.6 kB / 0.6499 GB, free: 3.18 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.242e-06/0.1305, allocations: 4 kB / 0.65 GB, free: 3.176 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.391e-05/0.1306, allocations: 11.98 kB / 0.65 GB, free: 3.164 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.873e-06/0.1306, allocations: 3.938 kB / 0.65 GB, free: 3.16 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.346e-06/0.1306, allocations: 3.938 kB / 0.65 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.1306, allocations: 0 / 0.65 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.1306, allocations: 0 / 0.65 GB, free: 3.156 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002982/0.1309, allocations: 141.1 kB / 0.6501 GB, free: 3 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.263e-05/0.131, allocations: 89.02 kB / 0.6502 GB, free: 2.895 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.476e-05/0.131, allocations: 3.938 kB / 0.6502 GB, free: 2.891 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.743e-05/0.1311, allocations: 11.98 kB / 0.6502 GB, free: 2.879 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.8e-05/0.1311, allocations: 0 / 0.6502 GB, free: 2.879 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.561e-05/0.1312, allocations: 15.98 kB / 0.6502 GB, free: 2.863 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001669/0.1314, allocations: 184.5 kB / 0.6504 GB, free: 2.688 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.1314, allocations: 0 / 0.6504 GB, free: 2.688 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002303/0.1316, allocations: 31.92 kB / 0.6504 GB, free: 2.656 MB / 494.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 (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.0006639/0.1323, allocations: 0.6788 MB / 0.6511 GB, free: 1.953 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002845/0.1326, allocations: 59.83 kB / 0.6511 GB, free: 1.895 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 4.138e-06/0.1326, allocations: 3.984 kB / 0.6512 GB, free: 1.891 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001147/0.1327, allocations: 24.17 kB / 0.6512 GB, free: 1.867 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002992/0.133, allocations: 49.7 kB / 0.6512 GB, free: 1.824 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002064/0.1351, allocations: 1.751 MB / 0.6529 GB, free: 15.97 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002294/0.1353, allocations: 0.7197 MB / 0.6536 GB, free: 15.22 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 7.123e-05/0.1354, allocations: 16.55 kB / 0.6537 GB, free: 15.21 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.406e-05/0.1355, allocations: 43.41 kB / 0.6537 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of SimCode: time 3.71e-07/0.1355, allocations: 7.938 kB / 0.6537 GB, free: 15.16 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.1559, allocations: 3.596 MB / 0.6572 GB, free: 11.65 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.937/8.093, allocations: 17.34 kB / 0.6572 GB, free: 11.64 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 & python3 -m fmpy simulate --output-file IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.fmu > IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)