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.001281/0.001281, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001247/0.001247, allocations: 195.7 kB / 16.26 MB, free: 6.621 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.164/1.164, allocations: 222.9 MB / 239.9 MB, free: 4.469 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001823/0.001824, allocations: 275 kB / 290.3 MB, free: 2.09 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.85/0.85, allocations: 169.2 MB / 0.4978 GB, free: 14.08 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001538/0.001538, allocations: 92.36 kB / 0.5948 GB, free: 28.23 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1347/0.1362, allocations: 86.98 MB / 0.6797 GB, free: 0.957 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002745/0.139, allocations: 1.682 MB / 0.6814 GB, free: 15.27 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007561/0.1398, allocations: 0.5398 MB / 0.6819 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.171e-05/0.1399, allocations: 8.812 kB / 0.6819 GB, free: 14.72 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001595/0.14, allocations: 11.92 kB / 0.6819 GB, free: 14.71 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001968/0.1402, allocations: 60.41 kB / 0.682 GB, free: 14.65 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001297/0.1404, allocations: 64.45 kB / 0.682 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.1406, allocations: 127.6 kB / 0.6822 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000141/0.1407, allocations: 63.12 kB / 0.6822 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1408, allocations: 59.72 kB / 0.6823 GB, free: 14.34 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.973e-05/0.1409, allocations: 59.75 kB / 0.6823 GB, free: 14.29 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.178e-05/0.1409, allocations: 8 kB / 0.6823 GB, free: 14.28 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.098e-05/0.141, allocations: 27.98 kB / 0.6824 GB, free: 14.25 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 6.864e-05/0.1411, allocations: 43.83 kB / 0.6824 GB, free: 14.21 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.531e-05/0.1411, allocations: 59.55 kB / 0.6825 GB, free: 14.15 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001613/0.1413, allocations: 143.5 kB / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.056e-06/0.1413, allocations: 0 / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of FrontEnd: time 9.92e-07/0.1413, allocations: 0 / 0.6826 GB, free: 14.01 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1413, allocations: 0 / 0.6826 GB, free: 14.01 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.0005408/0.1419, allocations: 466.6 kB / 0.6831 GB, free: 13.5 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.347e-05/0.1419, allocations: 8.031 kB / 0.6831 GB, free: 13.5 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.791e-05/0.142, allocations: 38.75 kB / 0.6831 GB, free: 13.45 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.954e-05/0.142, allocations: 16.75 kB / 0.6831 GB, free: 13.43 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002109/0.1422, allocations: 245.3 kB / 0.6833 GB, free: 13.16 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.167e-06/0.1422, allocations: 4.375 kB / 0.6834 GB, free: 13.15 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.297e-05/0.1423, allocations: 8.375 kB / 0.6834 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.1425, allocations: 109.8 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.532e-06/0.1425, allocations: 0 / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.253e-05/0.1426, allocations: 4 kB / 0.6835 GB, free: 13.03 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.1426, allocations: 4 kB / 0.6835 GB, free: 13.02 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002193/0.1428, allocations: 67.88 kB / 0.6835 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004964/0.1433, allocations: 376.5 kB / 0.6839 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001276/0.1434, allocations: 46.48 kB / 0.6839 GB, free: 12.48 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001013/0.1435, allocations: 32.89 kB / 0.684 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.346e-05/0.1436, allocations: 0 / 0.684 GB, free: 12.45 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002231/0.1438, allocations: 101.1 kB / 0.6841 GB, free: 12.33 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.1438, allocations: 0 / 0.6841 GB, free: 12.33 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003903/0.1442, allocations: 125.5 kB / 0.6842 GB, free: 12.2 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.365e-05/0.1442, allocations: 81.11 kB / 0.6843 GB, free: 12.11 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002136/0.1445, allocations: 252.9 kB / 0.6845 GB, free: 11.85 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.716e-05/0.1445, allocations: 29.7 kB / 0.6845 GB, free: 11.82 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.852e-05/0.1446, allocations: 132 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.421e-05/0.1446, allocations: 3.906 kB / 0.6847 GB, free: 11.68 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.435e-05/0.1446, allocations: 17.72 kB / 0.6847 GB, free: 11.66 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.03e-05/0.1447, allocations: 326.8 kB / 0.685 GB, free: 11.33 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1448, allocations: 27.97 kB / 0.685 GB, free: 11.3 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001082/0.1449, allocations: 47.39 kB / 0.6851 GB, free: 11.24 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001931/0.1452, allocations: 82.42 kB / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.523e-06/0.1452, allocations: 0 / 0.6851 GB, free: 11.15 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002575/0.1454, allocations: 101.5 kB / 0.6852 GB, free: 11.05 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.318e-05/0.1454, allocations: 7.984 kB / 0.6852 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.1455, allocations: 4 kB / 0.6853 GB, free: 11.04 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.177e-06/0.1455, allocations: 3.938 kB / 0.6853 GB, free: 11.03 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.807e-05/0.1456, allocations: 11.98 kB / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.248e-06/0.1456, allocations: 0 / 0.6853 GB, free: 11.02 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.467e-05/0.1457, allocations: 19.83 kB / 0.6853 GB, free: 11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.993e-06/0.1457, allocations: 0 / 0.6853 GB, free: 11 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.469e-05/0.1458, allocations: 133.9 kB / 0.6854 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.967e-05/0.1458, allocations: 19.75 kB / 0.6854 GB, free: 10.84 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.976e-05/0.1459, allocations: 17.19 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1459, allocations: 4 kB / 0.6855 GB, free: 10.82 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.49e-06/0.1459, allocations: 3.984 kB / 0.6855 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.214e-06/0.1459, allocations: 0 / 0.6855 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001377/0.146, allocations: 213.6 kB / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.146, allocations: 0 / 0.6857 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.687e-05/0.1461, allocations: 15.92 kB / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/0.1461, allocations: 0 / 0.6857 GB, free: 10.54 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.181e-05/0.1461, allocations: 11.94 kB / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.1461, allocations: 0 / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.1461, allocations: 0 / 0.6857 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002551/0.1464, allocations: 120.9 kB / 0.6858 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.557e-05/0.1465, allocations: 92.91 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.269e-05/0.1465, allocations: 3.938 kB / 0.6859 GB, free: 10.28 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.071e-05/0.1466, allocations: 11.98 kB / 0.6859 GB, free: 10.27 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.486e-05/0.1466, allocations: 4 kB / 0.6859 GB, free: 10.26 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.081e-05/0.1466, allocations: 11.92 kB / 0.6859 GB, free: 10.25 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001481/0.1468, allocations: 188.5 kB / 0.6861 GB, free: 10.07 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1468, allocations: 0 / 0.6861 GB, free: 10.07 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000204/0.147, allocations: 16 kB / 0.6861 GB, free: 10.05 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.000559/0.1476, allocations: 0.6809 MB / 0.6868 GB, free: 9.348 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002511/0.1478, allocations: 67.81 kB / 0.6868 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.1478, allocations: 0 / 0.6868 GB, free: 9.281 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001057/0.148, allocations: 31.95 kB / 0.6869 GB, free: 9.25 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002599/0.1482, allocations: 45.58 kB / 0.6869 GB, free: 9.211 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00181/0.15, allocations: 1.778 MB / 0.6887 GB, free: 7.34 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002237/0.1503, allocations: 0.7197 MB / 0.6894 GB, free: 6.594 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 5.871e-05/0.1503, allocations: 20.41 kB / 0.6894 GB, free: 6.574 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.194e-05/0.1504, allocations: 43.42 kB / 0.6894 GB, free: 6.531 MB / 494.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1504, allocations: 4 kB / 0.6894 GB, free: 6.527 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.271/1.422, allocations: 3.39 MB / 0.6927 GB, free: 3.289 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001986/1.422, allocations: 207.7 kB / 0.6929 GB, free: 3.039 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.32/3.742, allocations: 6.562 kB / 0.6929 GB, free: 3.035 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Utilities_IO_Files_Examples_JSONWriter.fmu > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)