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.001069/0.001072, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001131/0.001131, allocations: 197.3 kB / 16.14 MB, free: 6.66 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.215/1.215, allocations: 222.9 MB / 239.8 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002019/0.002019, allocations: 293.9 kB / 290.2 MB, free: 2.172 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8709/0.8709, allocations: 169.2 MB / 0.4977 GB, free: 14.09 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001543/0.001543, allocations: 93.55 kB / 0.5946 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1325/0.134, allocations: 86.98 MB / 0.6795 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002583/0.1367, allocations: 1.691 MB / 0.6812 GB, free: 15.36 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0006943/0.1374, allocations: 0.5417 MB / 0.6817 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.085e-05/0.1374, allocations: 0 / 0.6817 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001466/0.1376, allocations: 19.88 kB / 0.6817 GB, free: 14.79 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001929/0.1378, allocations: 60.23 kB / 0.6818 GB, free: 14.73 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001252/0.1379, allocations: 59.88 kB / 0.6819 GB, free: 14.67 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001369/0.1381, allocations: 127.5 kB / 0.682 GB, free: 14.55 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001309/0.1382, allocations: 53.66 kB / 0.682 GB, free: 14.49 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.453e-05/0.1383, allocations: 51.78 kB / 0.6821 GB, free: 14.44 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.874e-05/0.1384, allocations: 59.75 kB / 0.6821 GB, free: 14.38 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.581e-05/0.1384, allocations: 11.94 kB / 0.6822 GB, free: 14.37 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.951e-05/0.1385, allocations: 16 kB / 0.6822 GB, free: 14.36 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 7.438e-05/0.1386, allocations: 43.83 kB / 0.6822 GB, free: 14.31 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.481e-05/0.1386, allocations: 55.61 kB / 0.6823 GB, free: 14.26 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000152/0.1388, allocations: 135.5 kB / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.1388, allocations: 0 / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of FrontEnd: time 6.61e-07/0.1388, allocations: 0 / 0.6824 GB, free: 14.12 MB / 494.1 MB Notification: Performance of Transformations before backend: time 3.216e-06/0.1388, allocations: 0 / 0.6824 GB, free: 14.12 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.000521/0.1393, allocations: 474.6 kB / 0.6828 GB, free: 13.61 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.051e-05/0.1394, allocations: 8.031 kB / 0.6829 GB, free: 13.61 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.904e-05/0.1394, allocations: 42.73 kB / 0.6829 GB, free: 13.55 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.205e-05/0.1395, allocations: 16.75 kB / 0.6829 GB, free: 13.54 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002012/0.1397, allocations: 237.4 kB / 0.6831 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.019e-05/0.1397, allocations: 12.38 kB / 0.6831 GB, free: 13.26 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.175e-05/0.1397, allocations: 4.375 kB / 0.6832 GB, free: 13.25 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.14, allocations: 110.8 kB / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.831e-06/0.14, allocations: 4 kB / 0.6833 GB, free: 13.14 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.36e-05/0.14, allocations: 7.984 kB / 0.6833 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.847e-06/0.14, allocations: 0 / 0.6833 GB, free: 13.13 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002157/0.1402, allocations: 63.94 kB / 0.6833 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004875/0.1407, allocations: 388.4 kB / 0.6837 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001219/0.1409, allocations: 38.55 kB / 0.6837 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.526e-05/0.141, allocations: 24.91 kB / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.025e-05/0.141, allocations: 0 / 0.6838 GB, free: 12.56 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002156/0.1412, allocations: 105 kB / 0.6839 GB, free: 12.44 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.52e-07/0.1412, allocations: 0 / 0.6839 GB, free: 12.44 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003836/0.1416, allocations: 125.3 kB / 0.684 GB, free: 12.31 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.699e-05/0.1416, allocations: 81.11 kB / 0.6841 GB, free: 12.21 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002073/0.1419, allocations: 253 kB / 0.6843 GB, free: 11.96 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.1419, allocations: 33.69 kB / 0.6843 GB, free: 11.92 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.492e-05/0.142, allocations: 128 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.495e-05/0.142, allocations: 3.906 kB / 0.6845 GB, free: 11.79 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.142, allocations: 17.72 kB / 0.6845 GB, free: 11.77 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 8.816e-05/0.1421, allocations: 326.8 kB / 0.6848 GB, free: 11.44 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.1422, allocations: 27.97 kB / 0.6848 GB, free: 11.41 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00011/0.1423, allocations: 55.52 kB / 0.6849 GB, free: 11.34 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001858/0.1425, allocations: 66.56 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.1425, allocations: 4 kB / 0.6849 GB, free: 11.27 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002467/0.1428, allocations: 101.4 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.059e-05/0.1428, allocations: 4 kB / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.527e-06/0.1428, allocations: 0 / 0.685 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.35e-05/0.1428, allocations: 7.938 kB / 0.685 GB, free: 11.15 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.828e-05/0.1429, allocations: 20.02 kB / 0.6851 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.178e-06/0.143, allocations: 0 / 0.6851 GB, free: 11.13 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.238e-05/0.143, allocations: 19.83 kB / 0.6851 GB, free: 11.11 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.374e-06/0.1431, allocations: 0 / 0.6851 GB, free: 11.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 8.232e-05/0.1431, allocations: 129.8 kB / 0.6852 GB, free: 10.97 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.949e-05/0.1432, allocations: 15.81 kB / 0.6852 GB, free: 10.96 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.071e-05/0.1432, allocations: 21.17 kB / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.212e-06/0.1432, allocations: 0 / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.785e-06/0.1432, allocations: 4 kB / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.1432, allocations: 0 / 0.6852 GB, free: 10.93 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001416/0.1434, allocations: 213.6 kB / 0.6854 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.01e-07/0.1434, allocations: 0 / 0.6854 GB, free: 10.67 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.166e-05/0.1435, allocations: 11.98 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1435, allocations: 3.938 kB / 0.6855 GB, free: 10.66 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.446e-05/0.1435, allocations: 11.92 kB / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.353e-06/0.1435, allocations: 0 / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.1435, allocations: 0 / 0.6855 GB, free: 10.64 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003547/0.1439, allocations: 124.8 kB / 0.6856 GB, free: 10.5 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.034e-05/0.1439, allocations: 92.92 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.925e-05/0.144, allocations: 7.938 kB / 0.6857 GB, free: 10.39 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000103/0.1441, allocations: 7.984 kB / 0.6857 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.195e-05/0.1441, allocations: 11.98 kB / 0.6857 GB, free: 10.37 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.314e-05/0.1442, allocations: 4 kB / 0.6857 GB, free: 10.36 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0002061/0.1444, allocations: 192.5 kB / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.1444, allocations: 0 / 0.6859 GB, free: 10.18 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.1447, allocations: 16 kB / 0.6859 GB, free: 10.16 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.0007737/0.1455, allocations: 0.6869 MB / 0.6866 GB, free: 9.449 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003251/0.1458, allocations: 59.88 kB / 0.6866 GB, free: 9.391 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1459, allocations: 4.188 kB / 0.6866 GB, free: 9.387 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001465/0.146, allocations: 28.16 kB / 0.6867 GB, free: 9.359 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003782/0.1464, allocations: 44.42 kB / 0.6867 GB, free: 9.316 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002565/0.149, allocations: 1.772 MB / 0.6884 GB, free: 7.453 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005267/0.1495, allocations: 0.7121 MB / 0.6891 GB, free: 6.715 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 8.967e-05/0.1496, allocations: 24.47 kB / 0.6892 GB, free: 6.691 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.006e-05/0.1497, allocations: 47.36 kB / 0.6892 GB, free: 6.645 MB / 494.1 MB Notification: Performance of SimCode: time 2.61e-07/0.1497, allocations: 0 / 0.6892 GB, free: 6.645 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.835/1.985, allocations: 3.311 MB / 0.6924 GB, free: 3.469 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002129/1.985, allocations: 220.1 kB / 0.6926 GB, free: 3.207 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.098/4.083, allocations: 0 / 0.6926 GB, free: 3.207 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)