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.001208/0.001208, allocations: 103.1 kB / 16.35 MB, free: 5.824 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.001219/0.001219, allocations: 192.6 kB / 17.29 MB, free: 5.48 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.238/1.238, allocations: 222.9 MB / 241 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002073/0.002073, allocations: 296.2 kB / 291.4 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9346/0.9346, allocations: 169.2 MB / 0.4989 GB, free: 4.445 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001696/0.001696, allocations: 93.8 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1471/0.1488, allocations: 86.97 MB / 0.6816 GB, free: 7.449 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002635/0.1515, allocations: 1.633 MB / 0.6832 GB, free: 5.801 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007655/0.1522, allocations: 0.5424 MB / 0.6837 GB, free: 5.254 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.515e-05/0.1523, allocations: 7.938 kB / 0.6837 GB, free: 5.246 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001475/0.1525, allocations: 31.78 kB / 0.6838 GB, free: 5.215 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002261/0.1527, allocations: 59.67 kB / 0.6838 GB, free: 5.156 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001351/0.1528, allocations: 71.8 kB / 0.6839 GB, free: 5.086 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.000165/0.153, allocations: 123.6 kB / 0.684 GB, free: 4.965 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.1532, allocations: 53.44 kB / 0.6841 GB, free: 4.91 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.1533, allocations: 63.7 kB / 0.6841 GB, free: 4.848 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001012/0.1534, allocations: 59.75 kB / 0.6842 GB, free: 4.789 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 2.37e-05/0.1534, allocations: 8 kB / 0.6842 GB, free: 4.781 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.174e-05/0.1535, allocations: 24 kB / 0.6842 GB, free: 4.758 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.022e-05/0.1536, allocations: 47.83 kB / 0.6842 GB, free: 4.711 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 5.913e-05/0.1536, allocations: 55.61 kB / 0.6843 GB, free: 4.656 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.1538, allocations: 155.3 kB / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.516e-06/0.1538, allocations: 0 / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1538, allocations: 0 / 0.6844 GB, free: 4.504 MB / 494.1 MB Notification: Performance of Transformations before backend: time 4.438e-06/0.1538, allocations: 0 / 0.6844 GB, free: 4.504 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.000525/0.1544, allocations: 458.7 kB / 0.6849 GB, free: 4.008 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.884e-05/0.1544, allocations: 16.03 kB / 0.6849 GB, free: 3.992 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.852e-05/0.1545, allocations: 16.75 kB / 0.6849 GB, free: 3.977 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002543/0.1547, allocations: 252.7 kB / 0.6852 GB, free: 3.688 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.416e-06/0.1547, allocations: 384 / 0.6852 GB, free: 3.688 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.234e-05/0.1547, allocations: 4.375 kB / 0.6852 GB, free: 3.684 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002481/0.155, allocations: 117.9 kB / 0.6853 GB, free: 3.562 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.553e-06/0.155, allocations: 4 kB / 0.6853 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.137e-05/0.155, allocations: 0 / 0.6853 GB, free: 3.559 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.38e-06/0.155, allocations: 4 kB / 0.6853 GB, free: 3.555 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002012/0.1552, allocations: 67.88 kB / 0.6853 GB, free: 3.488 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005077/0.1558, allocations: 372.5 kB / 0.6857 GB, free: 3.074 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001208/0.1559, allocations: 46.48 kB / 0.6857 GB, free: 3.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.297e-05/0.156, allocations: 24.91 kB / 0.6858 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.446e-05/0.156, allocations: 4 kB / 0.6858 GB, free: 2.988 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001966/0.1562, allocations: 97.08 kB / 0.6859 GB, free: 2.875 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.072e-06/0.1562, allocations: 0 / 0.6859 GB, free: 2.875 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0003778/0.1566, allocations: 125.3 kB / 0.686 GB, free: 2.746 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.581e-05/0.1567, allocations: 81.11 kB / 0.6861 GB, free: 2.648 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.1569, allocations: 253 kB / 0.6863 GB, free: 2.398 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.534e-05/0.1569, allocations: 25.7 kB / 0.6863 GB, free: 2.367 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.116e-05/0.157, allocations: 132 kB / 0.6865 GB, free: 2.234 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.577e-05/0.157, allocations: 7.906 kB / 0.6865 GB, free: 2.227 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.539e-05/0.1571, allocations: 17.7 kB / 0.6865 GB, free: 2.203 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 9.597e-05/0.1572, allocations: 326.8 kB / 0.6868 GB, free: 1.875 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001004/0.1573, allocations: 27.97 kB / 0.6868 GB, free: 1.848 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001042/0.1574, allocations: 51.41 kB / 0.6869 GB, free: 1.785 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001841/0.1576, allocations: 62.47 kB / 0.6869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.1576, allocations: 0 / 0.6869 GB, free: 1.715 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002462/0.1578, allocations: 105.4 kB / 0.687 GB, free: 1.605 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.22e-05/0.1578, allocations: 8 kB / 0.687 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.1579, allocations: 0 / 0.687 GB, free: 1.598 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.097e-05/0.1579, allocations: 3.938 kB / 0.687 GB, free: 1.594 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.7e-05/0.158, allocations: 11.98 kB / 0.687 GB, free: 1.582 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.318e-06/0.158, allocations: 3.938 kB / 0.6871 GB, free: 1.578 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.667e-05/0.1581, allocations: 24.3 kB / 0.6871 GB, free: 1.555 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.738e-06/0.1581, allocations: 8 kB / 0.6871 GB, free: 1.547 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.899e-05/0.1582, allocations: 125.8 kB / 0.6872 GB, free: 1.414 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.864e-05/0.1582, allocations: 23.7 kB / 0.6872 GB, free: 1.391 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.427e-05/0.1583, allocations: 25.23 kB / 0.6872 GB, free: 1.363 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/0.1583, allocations: 3.938 kB / 0.6873 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.735e-06/0.1583, allocations: 0 / 0.6873 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.984e-06/0.1583, allocations: 0 / 0.6873 GB, free: 1.359 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001441/0.1584, allocations: 217.6 kB / 0.6875 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.71e-07/0.1584, allocations: 0 / 0.6875 GB, free: 1.098 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.469e-05/0.1585, allocations: 11.98 kB / 0.6875 GB, free: 1.086 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.945e-06/0.1585, allocations: 7.984 kB / 0.6875 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.923e-06/0.1585, allocations: 0 / 0.6875 GB, free: 1.078 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.444e-06/0.1585, allocations: 7.875 kB / 0.6875 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.11e-07/0.1585, allocations: 0 / 0.6875 GB, free: 1.07 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.1588, allocations: 120.9 kB / 0.6876 GB, free: 0.9336 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.354e-05/0.1589, allocations: 88.92 kB / 0.6877 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.503e-05/0.1589, allocations: 0 / 0.6877 GB, free: 0.8281 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.281e-05/0.159, allocations: 23.86 kB / 0.6877 GB, free: 0.8047 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.374e-05/0.159, allocations: 3.984 kB / 0.6877 GB, free: 0.8008 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.009e-05/0.159, allocations: 4 kB / 0.6877 GB, free: 0.7969 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001493/0.1592, allocations: 192.5 kB / 0.6879 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1592, allocations: 0 / 0.6879 GB, free: 0.6133 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002103/0.1594, allocations: 16.12 kB / 0.6879 GB, free: 0.5977 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.0001675/0.1596, allocations: 129.4 kB / 0.688 GB, free: 484 kB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0002475/0.1599, allocations: 55.95 kB / 0.6881 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1599, allocations: 0 / 0.6881 GB, free: 428 kB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.16, allocations: 31.91 kB / 0.6881 GB, free: 396 kB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002625/0.1602, allocations: 41.03 kB / 0.6882 GB, free: 356 kB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004361/0.1607, allocations: 272.1 kB / 0.6884 GB, free: 56 kB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2331/0.3938, allocations: 0.7179 MB / 0.6891 GB, free: 17.45 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0001137/0.394, allocations: 25.91 kB / 0.6891 GB, free: 17.45 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.579e-05/0.394, allocations: 19.44 kB / 0.6892 GB, free: 17.44 MB / 494.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3941, allocations: 0 / 0.6892 GB, free: 17.44 MB / 494.1 MB Notification: Performance of Templates: time 0.005051/0.3991, allocations: 1.769 MB / 0.6909 GB, free: 17.39 MB / 494.1 MB 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)