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.001219/0.001219, allocations: 109.4 kB / 15.69 MB, free: 128 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.001422/0.001422, allocations: 188.4 kB / 16.62 MB, free: 6.613 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.248/1.248, allocations: 222.9 MB / 240.3 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 286.7 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8959/0.8959, allocations: 169.3 MB / 0.4983 GB, free: 13.82 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00165/0.00165, allocations: 96.09 kB / 0.5955 GB, free: 27.66 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1445/0.1461, allocations: 86.98 MB / 0.6804 GB, free: 468 kB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002796/0.149, allocations: 1.633 MB / 0.682 GB, free: 14.82 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008123/0.1498, allocations: 0.5422 MB / 0.6826 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.713e-05/0.1499, allocations: 4 kB / 0.6826 GB, free: 14.27 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001584/0.1501, allocations: 31.72 kB / 0.6826 GB, free: 14.24 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002291/0.1503, allocations: 71.61 kB / 0.6827 GB, free: 14.17 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001375/0.1505, allocations: 55.92 kB / 0.6827 GB, free: 14.11 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000183/0.1506, allocations: 131.5 kB / 0.6828 GB, free: 13.98 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001539/0.1508, allocations: 65.64 kB / 0.6829 GB, free: 13.92 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001008/0.1509, allocations: 51.78 kB / 0.683 GB, free: 13.87 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001075/0.151, allocations: 63.69 kB / 0.683 GB, free: 13.8 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.362e-05/0.1511, allocations: 11.94 kB / 0.683 GB, free: 13.79 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.929e-05/0.1511, allocations: 16 kB / 0.683 GB, free: 13.78 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.129e-05/0.1512, allocations: 51.83 kB / 0.6831 GB, free: 13.73 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.93e-05/0.1513, allocations: 59.61 kB / 0.6832 GB, free: 13.67 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001813/0.1515, allocations: 147.4 kB / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.567e-06/0.1515, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1515, allocations: 0 / 0.6833 GB, free: 13.52 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.368e-06/0.1515, allocations: 0 / 0.6833 GB, free: 13.52 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.0005474/0.152, allocations: 462.7 kB / 0.6837 GB, free: 13.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.7e-05/0.1521, allocations: 12.02 kB / 0.6837 GB, free: 13.01 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.561e-05/0.1521, allocations: 42.75 kB / 0.6838 GB, free: 12.96 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.134e-05/0.1522, allocations: 16.75 kB / 0.6838 GB, free: 12.95 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002954/0.1525, allocations: 253.3 kB / 0.684 GB, free: 12.66 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.048e-05/0.1525, allocations: 4.375 kB / 0.684 GB, free: 12.65 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.534e-05/0.1525, allocations: 8.375 kB / 0.6841 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002486/0.1528, allocations: 105.8 kB / 0.6842 GB, free: 12.54 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.593e-06/0.1528, allocations: 8 kB / 0.6842 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.168e-05/0.1528, allocations: 0 / 0.6842 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1528, allocations: 0 / 0.6842 GB, free: 12.53 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.153, allocations: 63.94 kB / 0.6842 GB, free: 12.46 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005278/0.1535, allocations: 376.5 kB / 0.6846 GB, free: 12.05 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001242/0.1537, allocations: 42.55 kB / 0.6846 GB, free: 12 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001042/0.1538, allocations: 40.81 kB / 0.6847 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.353e-05/0.1538, allocations: 0 / 0.6847 GB, free: 11.95 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001991/0.154, allocations: 97.08 kB / 0.6848 GB, free: 11.84 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.91e-07/0.154, allocations: 0 / 0.6848 GB, free: 11.84 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.000386/0.1544, allocations: 121.4 kB / 0.6849 GB, free: 11.71 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.392e-05/0.1545, allocations: 81.05 kB / 0.685 GB, free: 11.62 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002403/0.1547, allocations: 256.9 kB / 0.6852 GB, free: 11.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.1547, allocations: 25.7 kB / 0.6852 GB, free: 11.33 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.924e-05/0.1548, allocations: 132 kB / 0.6853 GB, free: 11.2 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.937e-05/0.1549, allocations: 11.91 kB / 0.6854 GB, free: 11.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.432e-05/0.1549, allocations: 13.72 kB / 0.6854 GB, free: 11.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001059/0.155, allocations: 326.8 kB / 0.6857 GB, free: 10.84 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.809e-05/0.1551, allocations: 23.97 kB / 0.6857 GB, free: 10.81 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000117/0.1552, allocations: 51.41 kB / 0.6858 GB, free: 10.75 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.1554, allocations: 70.45 kB / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.1554, allocations: 0 / 0.6858 GB, free: 10.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002518/0.1557, allocations: 105.4 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.375e-05/0.1557, allocations: 6.188 kB / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.681e-06/0.1557, allocations: 0 / 0.6859 GB, free: 10.56 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.303e-05/0.1557, allocations: 7.875 kB / 0.6859 GB, free: 10.55 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001033/0.1559, allocations: 19.92 kB / 0.686 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.721e-06/0.1559, allocations: 4 kB / 0.686 GB, free: 10.53 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.3e-05/0.156, allocations: 15.92 kB / 0.686 GB, free: 10.51 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.033e-06/0.156, allocations: 8 kB / 0.686 GB, free: 10.5 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.733e-05/0.1561, allocations: 121.8 kB / 0.6861 GB, free: 10.38 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.707e-05/0.1561, allocations: 19.81 kB / 0.6861 GB, free: 10.36 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.378e-05/0.1561, allocations: 25.17 kB / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.563e-06/0.1562, allocations: 0 / 0.6861 GB, free: 10.33 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.1562, allocations: 4 kB / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.1562, allocations: 0 / 0.6861 GB, free: 10.32 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001619/0.1563, allocations: 213.6 kB / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.02e-07/0.1563, allocations: 0 / 0.6863 GB, free: 10.07 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.754e-05/0.1564, allocations: 19.92 kB / 0.6864 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.573e-06/0.1564, allocations: 0 / 0.6864 GB, free: 10.05 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.1564, allocations: 3.938 kB / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.1565, allocations: 0 / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.91e-07/0.1565, allocations: 0 / 0.6864 GB, free: 10.04 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002609/0.1567, allocations: 124.9 kB / 0.6865 GB, free: 9.902 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.073e-05/0.1568, allocations: 88.92 kB / 0.6866 GB, free: 9.797 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.272e-05/0.1568, allocations: 7.938 kB / 0.6866 GB, free: 9.789 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.782e-05/0.1569, allocations: 11.98 kB / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.199e-05/0.1569, allocations: 0 / 0.6866 GB, free: 9.777 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.388e-05/0.157, allocations: 11.98 kB / 0.6866 GB, free: 9.766 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.1571, allocations: 184.5 kB / 0.6868 GB, free: 9.586 MB / 494.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1571, allocations: 0 / 0.6868 GB, free: 9.586 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.000209/0.1574, allocations: 20 kB / 0.6868 GB, free: 9.566 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.0006311/0.158, allocations: 0.7024 MB / 0.6875 GB, free: 8.844 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002626/0.1583, allocations: 59.83 kB / 0.6875 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.1583, allocations: 0 / 0.6875 GB, free: 8.785 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001001/0.1584, allocations: 23.97 kB / 0.6876 GB, free: 8.762 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.1587, allocations: 51.98 kB / 0.6876 GB, free: 8.719 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001926/0.1606, allocations: 1.744 MB / 0.6893 GB, free: 6.883 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002573/0.1609, allocations: 0.7197 MB / 0.69 GB, free: 6.137 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 6.403e-05/0.161, allocations: 16.55 kB / 0.69 GB, free: 6.121 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.657e-05/0.161, allocations: 39.42 kB / 0.6901 GB, free: 6.082 MB / 494.1 MB Notification: Performance of SimCode: time 3.31e-07/0.161, allocations: 0 / 0.6901 GB, free: 6.082 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0202/0.1813, allocations: 3.594 MB / 0.6936 GB, free: 2.609 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.263/7.444, allocations: 12.8 kB / 0.6936 GB, free: 2.602 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)