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: "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildingSystems_BuildingSystems_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.001254/0.001255, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001262/0.001262, allocations: 193.7 kB / 16.53 MB, free: 6.391 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.34/1.34, allocations: 222.9 MB / 240.2 MB, free: 4.262 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002407/0.002407, allocations: 291 kB / 290.7 MB, free: 1.863 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.008/1.008, allocations: 178.6 MB / 0.5073 GB, free: 4.605 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002683/0.002683, allocations: 104.6 kB / 0.6065 GB, free: 24.54 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1504/0.1531, allocations: 89.14 MB / 0.6936 GB, free: 4.266 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003029/0.1562, allocations: 1.644 MB / 0.6952 GB, free: 2.621 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009061/0.1571, allocations: 0.5431 MB / 0.6957 GB, free: 2.074 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.856e-05/0.1572, allocations: 4 kB / 0.6957 GB, free: 2.07 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001626/0.1574, allocations: 36.22 kB / 0.6958 GB, free: 2.035 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002171/0.1576, allocations: 57 kB / 0.6958 GB, free: 1.98 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001683/0.1578, allocations: 67.78 kB / 0.6959 GB, free: 1.914 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000184/0.158, allocations: 132.3 kB / 0.696 GB, free: 1.785 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.1581, allocations: 49.78 kB / 0.6961 GB, free: 1.738 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001253/0.1583, allocations: 59.77 kB / 0.6961 GB, free: 1.68 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.1584, allocations: 55.77 kB / 0.6962 GB, free: 1.625 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1584, allocations: 8 kB / 0.6962 GB, free: 1.617 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.151e-05/0.1585, allocations: 27.92 kB / 0.6962 GB, free: 1.59 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 9.081e-05/0.1586, allocations: 44.61 kB / 0.6962 GB, free: 1.547 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 6.603e-05/0.1587, allocations: 57.05 kB / 0.6963 GB, free: 1.492 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002032/0.1589, allocations: 143.4 kB / 0.6964 GB, free: 1.352 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.1589, allocations: 0 / 0.6964 GB, free: 1.352 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1589, allocations: 0 / 0.6964 GB, free: 1.352 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.829e-06/0.1589, allocations: 0.6562 kB / 0.6964 GB, free: 1.352 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.0006523/0.1596, allocations: 474.6 kB / 0.6969 GB, free: 0.8398 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.337e-05/0.1596, allocations: 15.97 kB / 0.6969 GB, free: 0.8242 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.727e-05/0.1596, allocations: 34.75 kB / 0.6969 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.239e-05/0.1597, allocations: 16.75 kB / 0.697 GB, free: 0.7656 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002657/0.16, allocations: 236.8 kB / 0.6972 GB, free: 0.4961 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.176e-05/0.16, allocations: 4.375 kB / 0.6972 GB, free: 0.4922 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.45e-05/0.16, allocations: 4.375 kB / 0.6972 GB, free: 500 kB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002807/0.1603, allocations: 115.2 kB / 0.6973 GB, free: 380 kB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.1603, allocations: 3.938 kB / 0.6973 GB, free: 376 kB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.369e-05/0.1603, allocations: 7.938 kB / 0.6973 GB, free: 368 kB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.981e-06/0.1603, allocations: 4 kB / 0.6973 GB, free: 364 kB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002407/0.1606, allocations: 59.94 kB / 0.6974 GB, free: 304 kB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006066/0.1612, allocations: 388.4 kB / 0.6977 GB, free: 15.87 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001448/0.1614, allocations: 34.55 kB / 0.6978 GB, free: 15.82 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001127/0.1615, allocations: 28.89 kB / 0.6978 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.424e-05/0.1615, allocations: 4 kB / 0.6978 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002719/0.1618, allocations: 101.1 kB / 0.6979 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 3.216e-06/0.1618, allocations: 0 / 0.6979 GB, free: 15.67 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004439/0.1622, allocations: 125.3 kB / 0.698 GB, free: 15.54 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.623e-05/0.1623, allocations: 77.11 kB / 0.6981 GB, free: 15.45 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002638/0.1626, allocations: 257 kB / 0.6983 GB, free: 15.19 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.741e-05/0.1626, allocations: 29.7 kB / 0.6984 GB, free: 15.15 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.685e-05/0.1627, allocations: 128 kB / 0.6985 GB, free: 15.02 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.017e-05/0.1627, allocations: 11.88 kB / 0.6985 GB, free: 15.01 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.934e-05/0.1628, allocations: 17.72 kB / 0.6985 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1629, allocations: 322.8 kB / 0.6988 GB, free: 14.66 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001175/0.1631, allocations: 31.97 kB / 0.6989 GB, free: 14.63 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001257/0.1632, allocations: 51.41 kB / 0.6989 GB, free: 14.57 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002187/0.1634, allocations: 70.5 kB / 0.699 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.493e-06/0.1634, allocations: 0 / 0.699 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000287/0.1637, allocations: 101.4 kB / 0.6991 GB, free: 14.39 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.1637, allocations: 8 kB / 0.6991 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.661e-06/0.1637, allocations: 3.984 kB / 0.6991 GB, free: 14.38 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.307e-05/0.1638, allocations: 3.938 kB / 0.6991 GB, free: 14.37 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.1639, allocations: 12.08 kB / 0.6991 GB, free: 14.36 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.1639, allocations: 7.938 kB / 0.6991 GB, free: 14.35 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.039e-05/0.164, allocations: 15.89 kB / 0.6991 GB, free: 14.34 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.943e-06/0.164, allocations: 0 / 0.6991 GB, free: 14.34 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 0.0001142/0.1641, allocations: 134.4 kB / 0.6992 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.064e-05/0.1642, allocations: 15.81 kB / 0.6993 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.286e-05/0.1642, allocations: 21.19 kB / 0.6993 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-06/0.1642, allocations: 0 / 0.6993 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.026e-06/0.1642, allocations: 0 / 0.6993 GB, free: 14.16 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.189e-06/0.1642, allocations: 7.984 kB / 0.6993 GB, free: 14.15 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001887/0.1644, allocations: 213.6 kB / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.31e-07/0.1644, allocations: 0 / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.001e-05/0.1645, allocations: 7.984 kB / 0.6995 GB, free: 13.89 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.1645, allocations: 7.938 kB / 0.6995 GB, free: 13.88 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.183e-05/0.1645, allocations: 7.938 kB / 0.6995 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.1645, allocations: 0 / 0.6995 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.71e-07/0.1645, allocations: 0 / 0.6995 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002973/0.1648, allocations: 128.8 kB / 0.6996 GB, free: 13.73 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.004e-05/0.1649, allocations: 92.91 kB / 0.6997 GB, free: 13.62 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.308e-05/0.1649, allocations: 3.938 kB / 0.6997 GB, free: 13.61 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.451e-05/0.165, allocations: 11.98 kB / 0.6997 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.042e-05/0.1651, allocations: 4 kB / 0.6997 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.929e-05/0.1651, allocations: 4 kB / 0.6998 GB, free: 13.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001825/0.1653, allocations: 188.5 kB / 0.6999 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.1653, allocations: 4 kB / 0.6999 GB, free: 13.41 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002176/0.1655, allocations: 23.91 kB / 0.7 GB, free: 13.39 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.0007119/0.1662, allocations: 0.6707 MB / 0.7006 GB, free: 12.69 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002755/0.1665, allocations: 63.81 kB / 0.7007 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.127e-06/0.1665, allocations: 4.188 kB / 0.7007 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.000115/0.1667, allocations: 31.97 kB / 0.7007 GB, free: 12.59 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002745/0.1669, allocations: 44.58 kB / 0.7008 GB, free: 12.56 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.1691, allocations: 1.742 MB / 0.7025 GB, free: 10.72 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003521/0.1695, allocations: 0.728 MB / 0.7032 GB, free: 9.965 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.161e-05/0.1695, allocations: 16.48 kB / 0.7032 GB, free: 9.945 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.01e-05/0.1696, allocations: 47.42 kB / 0.7032 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of SimCode: time 3.1e-07/0.1696, allocations: 0 / 0.7032 GB, free: 9.898 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02398/0.1936, allocations: 3.577 MB / 0.7067 GB, free: 6.43 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.607/7.801, allocations: 11.75 kB / 0.7067 GB, free: 6.418 MB / 0.4981 GB (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 & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)