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: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001709/0.001709, 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.002023/0.002023, allocations: 194.6 kB / 16.14 MB, free: 6.637 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.501/1.501, allocations: 222.9 MB / 239.8 MB, free: 4.504 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002555/0.002555, allocations: 279 kB / 290.2 MB, free: 2.121 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.087/1.087, allocations: 178.6 MB / 0.5068 GB, free: 4.781 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002716/0.002716, allocations: 98.47 kB / 0.6057 GB, free: 25.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.153/0.1558, allocations: 89.14 MB / 0.6928 GB, free: 4.836 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.003282/0.1591, allocations: 1.711 MB / 0.6945 GB, free: 3.125 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009198/0.16, allocations: 0.5392 MB / 0.695 GB, free: 2.582 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.368e-05/0.1601, allocations: 4.656 kB / 0.695 GB, free: 2.578 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001587/0.1603, allocations: 23.84 kB / 0.695 GB, free: 2.555 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002176/0.1605, allocations: 55.8 kB / 0.6951 GB, free: 2.504 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001376/0.1607, allocations: 63.86 kB / 0.6951 GB, free: 2.441 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001667/0.1608, allocations: 124.2 kB / 0.6952 GB, free: 2.32 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001559/0.161, allocations: 52.2 kB / 0.6953 GB, free: 2.27 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001058/0.1611, allocations: 50.5 kB / 0.6953 GB, free: 2.223 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000105/0.1612, allocations: 59.69 kB / 0.6954 GB, free: 2.164 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.588e-05/0.1613, allocations: 4 kB / 0.6954 GB, free: 2.16 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.972e-05/0.1613, allocations: 23.98 kB / 0.6954 GB, free: 2.137 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.994e-05/0.1614, allocations: 43.83 kB / 0.6955 GB, free: 2.094 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.896e-05/0.1615, allocations: 51.61 kB / 0.6955 GB, free: 2.043 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001886/0.1617, allocations: 143.7 kB / 0.6956 GB, free: 1.902 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.625e-06/0.1617, allocations: 1.5 kB / 0.6956 GB, free: 1.902 MB / 494.1 MB Notification: Performance of FrontEnd: time 7.52e-07/0.1617, allocations: 0 / 0.6956 GB, free: 1.902 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.098e-06/0.1617, allocations: 0 / 0.6956 GB, free: 1.902 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.0006658/0.1624, allocations: 470.6 kB / 0.6961 GB, free: 1.395 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.103e-05/0.1624, allocations: 8.031 kB / 0.6961 GB, free: 1.387 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.809e-05/0.1625, allocations: 20.75 kB / 0.6961 GB, free: 1.367 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002693/0.1628, allocations: 232.9 kB / 0.6963 GB, free: 1.102 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.895e-06/0.1628, allocations: 8.312 kB / 0.6964 GB, free: 1.094 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.58e-05/0.1628, allocations: 4.375 kB / 0.6964 GB, free: 1.09 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002773/0.1631, allocations: 113.9 kB / 0.6965 GB, free: 0.9727 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.184e-06/0.1631, allocations: 4 kB / 0.6965 GB, free: 0.9688 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.1631, allocations: 4 kB / 0.6965 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.827e-06/0.1631, allocations: 0 / 0.6965 GB, free: 0.9648 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.1634, allocations: 63.94 kB / 0.6965 GB, free: 0.9023 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006145/0.164, allocations: 384.4 kB / 0.6969 GB, free: 488 kB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000141/0.1641, allocations: 42.48 kB / 0.6969 GB, free: 436 kB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001194/0.1643, allocations: 28.91 kB / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.471e-05/0.1643, allocations: 0 / 0.697 GB, free: 404 kB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002626/0.1646, allocations: 101 kB / 0.6971 GB, free: 284 kB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.1646, allocations: 0 / 0.6971 GB, free: 284 kB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004371/0.165, allocations: 129.3 kB / 0.6972 GB, free: 148 kB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.372e-05/0.1651, allocations: 77.11 kB / 0.6973 GB, free: 52 kB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.1654, allocations: 253 kB / 0.6975 GB, free: 15.79 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.1654, allocations: 29.7 kB / 0.6975 GB, free: 15.76 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001011/0.1655, allocations: 128 kB / 0.6977 GB, free: 15.63 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.921e-05/0.1655, allocations: 11.91 kB / 0.6977 GB, free: 15.62 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.93e-05/0.1656, allocations: 17.7 kB / 0.6977 GB, free: 15.59 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1657, allocations: 326.8 kB / 0.698 GB, free: 15.27 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001229/0.1659, allocations: 23.97 kB / 0.698 GB, free: 15.24 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001279/0.166, allocations: 55.34 kB / 0.6981 GB, free: 15.18 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000215/0.1662, allocations: 62.53 kB / 0.6981 GB, free: 15.11 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.783e-06/0.1662, allocations: 4.031 kB / 0.6981 GB, free: 15.1 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003141/0.1665, allocations: 101.4 kB / 0.6982 GB, free: 15 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.24e-05/0.1666, allocations: 4 kB / 0.6982 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.408e-06/0.1666, allocations: 0 / 0.6982 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.246e-05/0.1666, allocations: 3.938 kB / 0.6982 GB, free: 14.99 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001138/0.1667, allocations: 23.92 kB / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.975e-06/0.1667, allocations: 4.094 kB / 0.6983 GB, free: 14.96 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.786e-05/0.1668, allocations: 15.89 kB / 0.6983 GB, free: 14.95 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.408e-06/0.1668, allocations: 4 kB / 0.6983 GB, free: 14.94 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.0001108/0.167, allocations: 125.8 kB / 0.6984 GB, free: 14.81 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.017e-05/0.167, allocations: 15.81 kB / 0.6984 GB, free: 14.79 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.352e-05/0.167, allocations: 25.23 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.167, allocations: 3.938 kB / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.1671, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.663e-06/0.1671, allocations: 0 / 0.6984 GB, free: 14.77 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001926/0.1673, allocations: 221.6 kB / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1673, allocations: 0 / 0.6987 GB, free: 14.5 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.463e-05/0.1674, allocations: 11.98 kB / 0.6987 GB, free: 14.49 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.531e-06/0.1674, allocations: 7.922 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.783e-06/0.1674, allocations: 3.938 kB / 0.6987 GB, free: 14.48 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.055e-06/0.1674, allocations: 3.938 kB / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.41e-07/0.1674, allocations: 0 / 0.6987 GB, free: 14.47 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000303/0.1677, allocations: 124.8 kB / 0.6988 GB, free: 14.33 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.669e-05/0.1678, allocations: 88.92 kB / 0.6989 GB, free: 14.23 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.345e-05/0.1678, allocations: 4 kB / 0.6989 GB, free: 14.22 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.051e-05/0.1679, allocations: 15.92 kB / 0.6989 GB, free: 14.21 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.262e-05/0.168, allocations: 3.984 kB / 0.6989 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.03e-05/0.168, allocations: 4 kB / 0.6989 GB, free: 14.2 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001938/0.1682, allocations: 192.5 kB / 0.6991 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1682, allocations: 4 kB / 0.6991 GB, free: 14.01 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002187/0.1684, allocations: 24.03 kB / 0.6991 GB, free: 13.99 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.0002307/0.1687, allocations: 115.1 kB / 0.6992 GB, free: 13.87 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002975/0.169, allocations: 59.89 kB / 0.6993 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.169, allocations: 3.984 kB / 0.6993 GB, free: 13.81 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001191/0.1691, allocations: 27.97 kB / 0.6993 GB, free: 13.78 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003147/0.1694, allocations: 40.39 kB / 0.6994 GB, free: 13.74 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005361/0.17, allocations: 322 kB / 0.6997 GB, free: 13.4 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003366/0.1703, allocations: 0.7206 MB / 0.7004 GB, free: 12.66 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.748e-05/0.1704, allocations: 24.47 kB / 0.7004 GB, free: 12.63 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.7e-05/0.1704, allocations: 11.44 kB / 0.7004 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of SimCode: time 2.4e-07/0.1704, allocations: 0 / 0.7004 GB, free: 12.62 MB / 0.4981 GB Notification: Performance of Templates: time 0.004816/0.1753, allocations: 1.629 MB / 0.702 GB, free: 11.03 MB / 0.4981 GB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile (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 & ./BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)