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.001559/0.001565, 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.001035/0.001035, allocations: 194.1 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.282/1.282, allocations: 222.9 MB / 240.2 MB, free: 4.383 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001987/0.001987, allocations: 278.7 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.921/0.921, allocations: 169.3 MB / 0.4982 GB, free: 13.86 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001706/0.001706, allocations: 91.38 kB / 0.5953 GB, free: 28.02 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1351/0.1368, allocations: 86.98 MB / 0.6803 GB, free: 0.5781 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.00278/0.1397, allocations: 1.633 MB / 0.6819 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007878/0.1405, allocations: 0.5429 MB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.533e-05/0.1405, allocations: 1.719 kB / 0.6824 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001534/0.1407, allocations: 31.73 kB / 0.6824 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002061/0.1409, allocations: 63.61 kB / 0.6825 GB, free: 14.3 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001438/0.1411, allocations: 64.56 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001572/0.1412, allocations: 131.5 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001447/0.1414, allocations: 52.72 kB / 0.6827 GB, free: 14.06 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1415, allocations: 64.3 kB / 0.6828 GB, free: 14 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.873e-05/0.1416, allocations: 56.69 kB / 0.6829 GB, free: 13.95 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.781e-05/0.1416, allocations: 8 kB / 0.6829 GB, free: 13.94 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.291e-05/0.1417, allocations: 27.92 kB / 0.6829 GB, free: 13.91 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.035e-05/0.1418, allocations: 44.97 kB / 0.6829 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.803e-05/0.1419, allocations: 63.59 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001696/0.142, allocations: 135.5 kB / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.142, allocations: 0 / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.142, allocations: 4 kB / 0.6831 GB, free: 13.67 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.1421, allocations: 0 / 0.6831 GB, free: 13.67 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.0005426/0.1426, allocations: 470.5 kB / 0.6836 GB, free: 13.16 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.918e-05/0.1426, allocations: 12.03 kB / 0.6836 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.528e-05/0.1427, allocations: 34.75 kB / 0.6836 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.002e-05/0.1427, allocations: 20.75 kB / 0.6836 GB, free: 13.09 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002155/0.1429, allocations: 233.4 kB / 0.6839 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.053e-05/0.143, allocations: 12.38 kB / 0.6839 GB, free: 12.81 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.069e-05/0.143, allocations: 4.375 kB / 0.6839 GB, free: 12.8 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000252/0.1432, allocations: 109.7 kB / 0.684 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.663e-06/0.1433, allocations: 0 / 0.684 GB, free: 12.69 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.1433, allocations: 11.98 kB / 0.684 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.1433, allocations: 0 / 0.684 GB, free: 12.68 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.1435, allocations: 67.94 kB / 0.6841 GB, free: 12.61 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005095/0.144, allocations: 380.5 kB / 0.6844 GB, free: 12.19 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001338/0.1442, allocations: 42.48 kB / 0.6845 GB, free: 12.14 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001146/0.1443, allocations: 32.89 kB / 0.6845 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.381e-05/0.1443, allocations: 0 / 0.6845 GB, free: 12.11 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002369/0.1446, allocations: 97.03 kB / 0.6846 GB, free: 11.99 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1446, allocations: 0 / 0.6846 GB, free: 11.99 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.00042/0.145, allocations: 125.4 kB / 0.6847 GB, free: 11.86 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.2e-05/0.145, allocations: 77.11 kB / 0.6848 GB, free: 11.77 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002253/0.1453, allocations: 260.9 kB / 0.685 GB, free: 11.51 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.518e-05/0.1453, allocations: 25.7 kB / 0.6851 GB, free: 11.48 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.179e-05/0.1454, allocations: 124 kB / 0.6852 GB, free: 11.35 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.709e-05/0.1454, allocations: 11.89 kB / 0.6852 GB, free: 11.34 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.38e-05/0.1454, allocations: 17.72 kB / 0.6852 GB, free: 11.32 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001036/0.1455, allocations: 330.8 kB / 0.6855 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001124/0.1457, allocations: 19.97 kB / 0.6855 GB, free: 10.96 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.1458, allocations: 51.34 kB / 0.6856 GB, free: 10.9 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000203/0.146, allocations: 66.56 kB / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.146, allocations: 0 / 0.6856 GB, free: 10.83 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002721/0.1463, allocations: 109.3 kB / 0.6857 GB, free: 10.71 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.211e-05/0.1463, allocations: 8.094 kB / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.157e-06/0.1463, allocations: 0 / 0.6858 GB, free: 10.71 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.384e-05/0.1463, allocations: 7.922 kB / 0.6858 GB, free: 10.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001031/0.1464, allocations: 15.92 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.294e-06/0.1465, allocations: 4 kB / 0.6858 GB, free: 10.68 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.542e-05/0.1465, allocations: 15.83 kB / 0.6858 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.586e-06/0.1466, allocations: 4 kB / 0.6858 GB, free: 10.66 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 8.976e-05/0.1467, allocations: 125.8 kB / 0.6859 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.447e-05/0.1467, allocations: 19.81 kB / 0.6859 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.211e-05/0.1467, allocations: 21.19 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.1467, allocations: 4 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.015e-06/0.1468, allocations: 0 / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1468, allocations: 3.984 kB / 0.686 GB, free: 10.48 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001549/0.1469, allocations: 217.6 kB / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.21e-07/0.1469, allocations: 0 / 0.6862 GB, free: 10.21 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.742e-05/0.147, allocations: 11.98 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.147, allocations: 288 / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.176e-06/0.147, allocations: 7.875 kB / 0.6862 GB, free: 10.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.183e-06/0.147, allocations: 4 kB / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.02e-07/0.147, allocations: 0 / 0.6862 GB, free: 10.19 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002709/0.1473, allocations: 124.8 kB / 0.6863 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.1474, allocations: 92.91 kB / 0.6864 GB, free: 9.941 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.1475, allocations: 3.938 kB / 0.6864 GB, free: 9.938 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.498e-05/0.1476, allocations: 15.98 kB / 0.6864 GB, free: 9.922 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.326e-05/0.1476, allocations: 4 kB / 0.6864 GB, free: 9.918 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.815e-05/0.1476, allocations: 4 kB / 0.6864 GB, free: 9.914 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001548/0.1478, allocations: 188.5 kB / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1478, allocations: 0 / 0.6866 GB, free: 9.73 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002092/0.148, allocations: 24 kB / 0.6866 GB, free: 9.707 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.0006688/0.1487, allocations: 0.682 MB / 0.6873 GB, free: 9.008 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002758/0.149, allocations: 68 kB / 0.6874 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.134e-06/0.149, allocations: 0 / 0.6874 GB, free: 8.941 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001136/0.1491, allocations: 31.91 kB / 0.6874 GB, free: 8.91 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002764/0.1494, allocations: 47.52 kB / 0.6874 GB, free: 8.871 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001909/0.1513, allocations: 1.731 MB / 0.6891 GB, free: 7.047 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002652/0.1516, allocations: 0.7236 MB / 0.6898 GB, free: 6.297 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.808e-05/0.1516, allocations: 16.59 kB / 0.6899 GB, free: 6.281 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.977e-05/0.1517, allocations: 43.42 kB / 0.6899 GB, free: 6.238 MB / 494.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1517, allocations: 0 / 0.6899 GB, free: 6.238 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0183/0.17, allocations: 3.568 MB / 0.6934 GB, free: 2.77 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.926/7.096, allocations: 11.77 kB / 0.6934 GB, free: 2.77 MB / 494.1 MB (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)