Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.0007288/0.0007287, allocations: 97.72 kB / 15.36 MB, free: 0.7344 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.004459/0.004459, allocations: 170.8 kB / 16.27 MB, free: 6.648 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.281/1.281, allocations: 205.4 MB / 222.4 MB, free: 5.566 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 1.607/1.607, allocations: 292.7 MB / 0.5502 GB, free: 14.46 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004802/0.0004802, allocations: 16.97 kB / 0.6743 GB, free: 25.87 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1932/0.1936, allocations: 116.3 MB / 0.7879 GB, free: 11.58 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001974/0.1957, allocations: 1.363 MB / 0.7892 GB, free: 10.2 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009587/0.1966, allocations: 0.5699 MB / 0.7898 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001003/0.1968, allocations: 4 kB / 0.7898 GB, free: 9.621 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.1969, allocations: 23.86 kB / 0.7898 GB, free: 9.598 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002372/0.1972, allocations: 59.73 kB / 0.7898 GB, free: 9.539 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001657/0.1974, allocations: 55.94 kB / 0.7899 GB, free: 9.484 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001678/0.1975, allocations: 127.5 kB / 0.79 GB, free: 9.359 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001411/0.1977, allocations: 45.45 kB / 0.7901 GB, free: 9.312 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001114/0.1978, allocations: 43.73 kB / 0.7901 GB, free: 9.27 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.718e-05/0.1979, allocations: 55.69 kB / 0.7902 GB, free: 9.215 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.073e-05/0.1979, allocations: 4 kB / 0.7902 GB, free: 9.211 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.566e-05/0.198, allocations: 16 kB / 0.7902 GB, free: 9.195 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 7.471e-05/0.1981, allocations: 39.89 kB / 0.7902 GB, free: 9.156 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.303e-05/0.1982, allocations: 77.25 kB / 0.7903 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001602/0.1983, allocations: 135.6 kB / 0.7904 GB, free: 8.941 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.1983, allocations: 3.938 kB / 0.7904 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.263e-06/0.1983, allocations: 4 kB / 0.7904 GB, free: 8.934 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 4.629e-06/0.1984, allocations: 0 / 0.7904 GB, free: 8.934 MB / 0.6075 GB 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.0005261/0.1989, allocations: 442.9 kB / 0.7908 GB, free: 8.453 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.187e-05/0.1989, allocations: 12.03 kB / 0.7909 GB, free: 8.441 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.677e-05/0.199, allocations: 20.66 kB / 0.7909 GB, free: 8.422 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002125/0.1992, allocations: 240.8 kB / 0.7911 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.1992, allocations: 4.375 kB / 0.7911 GB, free: 8.141 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.431e-05/0.1992, allocations: 4.375 kB / 0.7911 GB, free: 8.137 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002635/0.1995, allocations: 117.2 kB / 0.7912 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.823e-06/0.1995, allocations: 0 / 0.7912 GB, free: 8.02 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.706e-05/0.1995, allocations: 4 kB / 0.7912 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.177e-06/0.1995, allocations: 0 / 0.7912 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1998, allocations: 87.92 kB / 0.7913 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005281/0.2003, allocations: 392.4 kB / 0.7917 GB, free: 7.496 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001357/0.2005, allocations: 42.56 kB / 0.7917 GB, free: 7.445 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001092/0.2006, allocations: 40.89 kB / 0.7918 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.418e-05/0.2006, allocations: 0 / 0.7918 GB, free: 7.402 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002326/0.2009, allocations: 109 kB / 0.7919 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 9.22e-07/0.2009, allocations: 0 / 0.7919 GB, free: 7.277 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004169/0.2013, allocations: 145.4 kB / 0.792 GB, free: 7.129 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.925e-05/0.2013, allocations: 77.11 kB / 0.7921 GB, free: 7.035 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002315/0.2016, allocations: 256.9 kB / 0.7923 GB, free: 6.77 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.523e-05/0.2016, allocations: 29.64 kB / 0.7924 GB, free: 6.734 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 6.652e-05/0.2017, allocations: 132 kB / 0.7925 GB, free: 6.602 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.905e-05/0.2017, allocations: 15.81 kB / 0.7925 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.107e-05/0.2017, allocations: 9.719 kB / 0.7925 GB, free: 6.57 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 9.555e-05/0.2018, allocations: 330.8 kB / 0.7928 GB, free: 6.238 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001114/0.202, allocations: 23.98 kB / 0.7928 GB, free: 6.215 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.2021, allocations: 63.58 kB / 0.7929 GB, free: 6.141 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002178/0.2023, allocations: 90.48 kB / 0.793 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.2023, allocations: 0 / 0.793 GB, free: 6.043 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002693/0.2026, allocations: 117.4 kB / 0.7931 GB, free: 5.922 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.381e-05/0.2026, allocations: 8 kB / 0.7931 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.078e-06/0.2026, allocations: 0 / 0.7931 GB, free: 5.914 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2026, allocations: 3.938 kB / 0.7931 GB, free: 5.91 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001003/0.2027, allocations: 16.08 kB / 0.7931 GB, free: 5.895 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.2028, allocations: 4 kB / 0.7931 GB, free: 5.891 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.611e-05/0.2028, allocations: 19.92 kB / 0.7932 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.823e-06/0.2029, allocations: 0 / 0.7932 GB, free: 5.871 MB / 0.6075 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 9.188e-05/0.203, allocations: 132.7 kB / 0.7933 GB, free: 5.734 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.215e-05/0.203, allocations: 19.75 kB / 0.7933 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.203, allocations: 17.23 kB / 0.7933 GB, free: 5.699 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.875e-06/0.203, allocations: 7.938 kB / 0.7933 GB, free: 5.691 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.316e-06/0.203, allocations: 4 kB / 0.7933 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.794e-06/0.203, allocations: 0 / 0.7933 GB, free: 5.688 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001426/0.2032, allocations: 213.5 kB / 0.7935 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.32e-07/0.2032, allocations: 0 / 0.7935 GB, free: 5.43 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.015e-05/0.2033, allocations: 19.98 kB / 0.7935 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.2033, allocations: 0 / 0.7935 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.432e-06/0.2033, allocations: 0 / 0.7935 GB, free: 5.41 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.49e-06/0.2033, allocations: 11.88 kB / 0.7936 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.2033, allocations: 0 / 0.7936 GB, free: 5.398 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.2036, allocations: 140.8 kB / 0.7937 GB, free: 5.242 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 4.713e-05/0.2037, allocations: 96.92 kB / 0.7938 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.212e-05/0.2037, allocations: 0 / 0.7938 GB, free: 5.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.575e-05/0.2038, allocations: 23.92 kB / 0.7938 GB, free: 5.105 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.553e-05/0.2038, allocations: 3.984 kB / 0.7938 GB, free: 5.102 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.2039, allocations: 4 kB / 0.7938 GB, free: 5.098 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001453/0.204, allocations: 192.5 kB / 0.794 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.11e-07/0.204, allocations: 0 / 0.794 GB, free: 4.914 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002056/0.2042, allocations: 20 kB / 0.794 GB, free: 4.895 MB / 0.6075 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.0001773/0.2044, allocations: 120.5 kB / 0.7941 GB, free: 4.777 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002753/0.2047, allocations: 75.88 kB / 0.7942 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2047, allocations: 0 / 0.7942 GB, free: 4.703 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.2048, allocations: 32.17 kB / 0.7942 GB, free: 4.672 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002712/0.2051, allocations: 44.39 kB / 0.7943 GB, free: 4.629 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004504/0.2056, allocations: 338.2 kB / 0.7946 GB, free: 4.273 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002142/0.2058, allocations: 0.7274 MB / 0.7953 GB, free: 3.52 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 5.859e-05/0.2059, allocations: 20.53 kB / 0.7953 GB, free: 3.496 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.202e-05/0.2059, allocations: 11.44 kB / 0.7953 GB, free: 3.484 MB / 0.6075 GB Notification: Performance of SimCode: time 2.8e-07/0.2059, allocations: 7.938 kB / 0.7954 GB, free: 3.477 MB / 0.6075 GB Notification: Performance of Templates: time 0.003829/0.2097, allocations: 1.581 MB / 0.7969 GB, free: 1.914 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: (rm -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) Environment - environmentSimulation: