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.0009287/0.0009287, allocations: 98.94 kB / 16.29 MB, free: 5.996 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.0008904/0.0008905, allocations: 179.5 kB / 17.22 MB, free: 5.621 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.201/1.201, allocations: 205.1 MB / 223.1 MB, free: 12.3 MB / 190.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.612/1.612, allocations: 292.3 MB / 0.5495 GB, free: 17.42 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.001267/0.001267, allocations: 71.03 kB / 0.6722 GB, free: 6.574 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1918/0.193, allocations: 114.6 MB / 0.7841 GB, free: 3.898 MB / 0.6544 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002912/0.196, allocations: 1.629 MB / 0.7857 GB, free: 2.25 MB / 0.6544 GB Notification: Performance of NFInst.instExpressions: time 0.0009498/0.197, allocations: 0.5932 MB / 0.7862 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/0.1971, allocations: 0 / 0.7862 GB, free: 1.648 MB / 0.6544 GB Notification: Performance of NFTyping.typeComponents: time 0.0001732/0.1973, allocations: 27.8 kB / 0.7863 GB, free: 1.621 MB / 0.6544 GB Notification: Performance of NFTyping.typeBindings: time 0.000262/0.1976, allocations: 59.67 kB / 0.7863 GB, free: 1.562 MB / 0.6544 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001666/0.1977, allocations: 71.84 kB / 0.7864 GB, free: 1.492 MB / 0.6544 GB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.1979, allocations: 135.5 kB / 0.7865 GB, free: 1.359 MB / 0.6544 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001524/0.1981, allocations: 45.47 kB / 0.7866 GB, free: 1.309 MB / 0.6544 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001219/0.1982, allocations: 59.7 kB / 0.7866 GB, free: 1.25 MB / 0.6544 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001128/0.1983, allocations: 63.7 kB / 0.7867 GB, free: 1.188 MB / 0.6544 GB Notification: Performance of NFPackage.collectConstants: time 2.864e-05/0.1984, allocations: 8 kB / 0.7867 GB, free: 1.18 MB / 0.6544 GB Notification: Performance of NFFlatten.collectFunctions: time 6.135e-05/0.1984, allocations: 23.98 kB / 0.7867 GB, free: 1.156 MB / 0.6544 GB Notification: Performance of NFScalarize.scalarize: time 9.537e-05/0.1985, allocations: 47.83 kB / 0.7868 GB, free: 1.109 MB / 0.6544 GB Notification: Performance of NFVerifyModel.verify: time 6.661e-05/0.1986, allocations: 59.55 kB / 0.7868 GB, free: 1.051 MB / 0.6544 GB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.1988, allocations: 143.7 kB / 0.787 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.1988, allocations: 0 / 0.787 GB, free: 0.9102 MB / 0.6544 GB Notification: Performance of FrontEnd: time 1.342e-06/0.1988, allocations: 4 kB / 0.787 GB, free: 0.9062 MB / 0.6544 GB Notification: Performance of Transformations before backend: time 6.151e-06/0.1989, allocations: 0 / 0.787 GB, free: 0.9062 MB / 0.6544 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.0005753/0.1994, allocations: 466.5 kB / 0.7874 GB, free: 412 kB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 3.369e-05/0.1995, allocations: 16.03 kB / 0.7874 GB, free: 396 kB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.229e-05/0.1995, allocations: 16.75 kB / 0.7874 GB, free: 380 kB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002193/0.1998, allocations: 232.9 kB / 0.7877 GB, free: 108 kB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.009e-05/0.1998, allocations: 4.375 kB / 0.7877 GB, free: 104 kB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.1998, allocations: 4.375 kB / 0.7877 GB, free: 100 kB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.301/0.5008, allocations: 113.2 kB / 0.7878 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.842e-05/0.5008, allocations: 1.031 kB / 0.7878 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.417e-05/0.5009, allocations: 0 / 0.7878 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.5009, allocations: 0.7188 kB / 0.7878 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.5011, allocations: 63.75 kB / 0.7878 GB, free: 48.81 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00052/0.5017, allocations: 382.2 kB / 0.7882 GB, free: 48.55 MB / 0.6544 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001109/0.5018, allocations: 37.8 kB / 0.7882 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt resolveLoops (simulation): time 8.43e-05/0.5019, allocations: 31.41 kB / 0.7883 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt evalFunc (simulation): time 1.74e-05/0.5019, allocations: 2.125 kB / 0.7883 GB, free: 48.52 MB / 0.6544 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002592/0.5022, allocations: 103 kB / 0.7884 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of pre-optimization done (n=3): time 1.252e-06/0.5022, allocations: 3.719 kB / 0.7884 GB, free: 48.45 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3): time 0.0003506/0.5025, allocations: 124.7 kB / 0.7885 GB, free: 48.42 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.387e-05/0.5026, allocations: 80.7 kB / 0.7886 GB, free: 48.32 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001707/0.5027, allocations: 252.1 kB / 0.7888 GB, free: 48.23 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 1.066e-05/0.5028, allocations: 28.89 kB / 0.7888 GB, free: 48.2 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 4.785e-05/0.5028, allocations: 134.7 kB / 0.789 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 1.479e-05/0.5028, allocations: 6.75 kB / 0.789 GB, free: 48.11 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.268e-05/0.5029, allocations: 19.83 kB / 0.789 GB, free: 48.09 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 4.673e-05/0.5029, allocations: 326.1 kB / 0.7893 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.227e-05/0.503, allocations: 23.58 kB / 0.7893 GB, free: 47.78 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.581e-05/0.5031, allocations: 50.28 kB / 0.7894 GB, free: 47.75 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001571/0.5033, allocations: 69.41 kB / 0.7894 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.553e-06/0.5033, allocations: 0 / 0.7894 GB, free: 47.72 MB / 0.6544 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002021/0.5035, allocations: 108.4 kB / 0.7895 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.5035, allocations: 9.188 kB / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.208e-06/0.5035, allocations: 0 / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.267e-05/0.5035, allocations: 0 / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.596e-05/0.5036, allocations: 13.14 kB / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.65e-06/0.5036, allocations: 4.406 kB / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.482e-05/0.5037, allocations: 17.7 kB / 0.7896 GB, free: 47.68 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.376e-06/0.5037, allocations: 4.281 kB / 0.7896 GB, free: 47.68 MB / 0.6544 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 6.376e-05/0.5038, allocations: 128.7 kB / 0.7897 GB, free: 47.57 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.192e-05/0.5038, allocations: 19.75 kB / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.715e-05/0.5039, allocations: 15.62 kB / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.034e-06/0.5039, allocations: 2.812 kB / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.317e-06/0.5039, allocations: 0.5 kB / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.344e-06/0.5039, allocations: 0 / 0.7897 GB, free: 47.55 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001007/0.504, allocations: 224.6 kB / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.62e-07/0.504, allocations: 0 / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.86e-05/0.5041, allocations: 19.42 kB / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.5041, allocations: 3.938 kB / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.993e-06/0.5041, allocations: 0 / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.5041, allocations: 1.031 kB / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.01e-07/0.5041, allocations: 0.875 kB / 0.79 GB, free: 47.36 MB / 0.6544 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002114/0.5043, allocations: 120.8 kB / 0.7901 GB, free: 47.29 MB / 0.6544 GB Notification: Performance of postOpt removeConstants (simulation): time 2.563e-05/0.5044, allocations: 95.39 kB / 0.7902 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.944e-05/0.5044, allocations: 3.125 kB / 0.7902 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.878e-05/0.5045, allocations: 10.2 kB / 0.7902 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.126e-05/0.5045, allocations: 9.766 kB / 0.7902 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.954e-05/0.5045, allocations: 5.234 kB / 0.7902 GB, free: 47.18 MB / 0.6544 GB Notification: Performance of sorting global known variables: time 0.0001204/0.5047, allocations: 192.3 kB / 0.7904 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of sort global known variables: time 1.5e-07/0.5047, allocations: 1.312 kB / 0.7904 GB, free: 47.1 MB / 0.6544 GB Notification: Performance of remove unused functions: time 0.0001994/0.5049, allocations: 16.62 kB / 0.7904 GB, free: 47.1 MB / 0.6544 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.0001886/0.5051, allocations: 121 kB / 0.7905 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created initialization part: time 0.000237/0.5053, allocations: 56.22 kB / 0.7906 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created event and clocks part: time 2.886e-06/0.5053, allocations: 1.219 kB / 0.7906 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created simulation system equations: time 9.158e-05/0.5054, allocations: 28.05 kB / 0.7906 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002532/0.5057, allocations: 43.25 kB / 0.7907 GB, free: 47.02 MB / 0.6544 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003896/0.5061, allocations: 279.8 kB / 0.7909 GB, free: 46.86 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001177/0.5062, allocations: 0.7291 MB / 0.7916 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 5.492e-05/0.5063, allocations: 23.59 kB / 0.7917 GB, free: 46.16 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.95e-05/0.5063, allocations: 12.69 kB / 0.7917 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of SimCode: time 2.4e-07/0.5063, allocations: 0 / 0.7917 GB, free: 46.15 MB / 0.6544 GB Notification: Performance of Templates: time 0.00385/0.5102, allocations: 1.76 MB / 0.7934 GB, free: 46.05 MB / 0.6544 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (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 -s cvode -lv LOG_STATS > Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)