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/BuildingSystems 2.0.0-master/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/ModelicaServices 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) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/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) 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 BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/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/BuildingSystems 2.0.0-master/package.mo): time 0.7988/0.7988, allocations: 141.8 MB / 149.3 MB, free: 9.203 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00107/0.00107, allocations: 180.9 kB / 182.2 MB, free: 9.453 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 221.5 MB / 436.4 MB, free: 13.3 MB / 330.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009425/0.0009425, allocations: 88.09 kB / 0.5074 GB, free: 10.14 MB / 410.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001745/0.001745, allocations: 270.1 kB / 0.5889 GB, free: 54.67 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 1.471e-05/1.465e-05, allocations: 4 kB / 0.6765 GB, free: 12.83 MB / 458.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3603/0.3604, allocations: 82.77 MB / 0.7574 GB, free: 32.03 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1313/0.4917, allocations: 109.8 MB / 0.8646 GB, free: 2.035 MB / 0.5261 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002055/0.492, allocations: 83.83 kB / 0.8647 GB, free: 1.957 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 0.00959/0.5016, allocations: 3.313 MB / 0.868 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of FrontEnd: time 1.282e-06/0.5016, allocations: 0 / 0.868 GB, free: 14.64 MB / 0.5417 GB Notification: Performance of Transformations before backend: time 2.432e-05/0.5016, allocations: 4 kB / 0.868 GB, free: 14.64 MB / 0.5417 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.0004933/0.5021, allocations: 430.1 kB / 0.8684 GB, free: 14.18 MB / 0.5417 GB Notification: Performance of prepare preOptimizeDAE: time 4.535e-05/0.5022, allocations: 8.031 kB / 0.8684 GB, free: 14.17 MB / 0.5417 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.703e-05/0.5022, allocations: 15.81 kB / 0.8684 GB, free: 14.15 MB / 0.5417 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002802/0.5025, allocations: 235.6 kB / 0.8686 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.111e-05/0.5025, allocations: 3.953 kB / 0.8686 GB, free: 13.88 MB / 0.5417 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.252e-05/0.5025, allocations: 4 kB / 0.8686 GB, free: 13.87 MB / 0.5417 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.532e-05/0.5026, allocations: 28 kB / 0.8687 GB, free: 13.84 MB / 0.5417 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001482/0.5028, allocations: 81.66 kB / 0.8687 GB, free: 13.76 MB / 0.5417 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.233e-06/0.5028, allocations: 3.938 kB / 0.8687 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.705e-05/0.5028, allocations: 0 / 0.8687 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.6e-06/0.5029, allocations: 4 kB / 0.8687 GB, free: 13.75 MB / 0.5417 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005482/0.5034, allocations: 361 kB / 0.8691 GB, free: 13.36 MB / 0.5417 GB Notification: Performance of preOpt comSubExp (simulation): time 5.291e-05/0.5035, allocations: 30.5 kB / 0.8691 GB, free: 13.32 MB / 0.5417 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.751e-05/0.5035, allocations: 12.92 kB / 0.8691 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt evalFunc (simulation): time 1.626e-05/0.5035, allocations: 8 kB / 0.8691 GB, free: 13.3 MB / 0.5417 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001277/0.5037, allocations: 73.11 kB / 0.8692 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of pre-optimization done (n=3): time 1.393e-06/0.5037, allocations: 0 / 0.8692 GB, free: 13.21 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3): time 0.0001513/0.5038, allocations: 69.44 kB / 0.8693 GB, free: 13.13 MB / 0.5417 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.827e-05/0.5039, allocations: 77.11 kB / 0.8693 GB, free: 13.04 MB / 0.5417 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001929/0.5041, allocations: 194.1 kB / 0.8695 GB, free: 12.84 MB / 0.5417 GB Notification: Performance of collectPreVariables (initialization): time 1.736e-05/0.5041, allocations: 29.64 kB / 0.8696 GB, free: 12.8 MB / 0.5417 GB Notification: Performance of collectInitialEqns (initialization): time 7.364e-05/0.5042, allocations: 136 kB / 0.8697 GB, free: 12.67 MB / 0.5417 GB Notification: Performance of collectInitialBindings (initialization): time 1.835e-05/0.5042, allocations: 11.81 kB / 0.8697 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.329e-06/0.5042, allocations: 0 / 0.8697 GB, free: 12.66 MB / 0.5417 GB Notification: Performance of setup shared object (initialization): time 9.565e-05/0.5043, allocations: 326.8 kB / 0.87 GB, free: 12.33 MB / 0.5417 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.481e-05/0.5044, allocations: 4 kB / 0.87 GB, free: 12.32 MB / 0.5417 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.614e-05/0.5044, allocations: 31.42 kB / 0.87 GB, free: 12.28 MB / 0.5417 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.975e-05/0.5044, allocations: 17.22 kB / 0.8701 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.5044, allocations: 0 / 0.8701 GB, free: 12.27 MB / 0.5417 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001009/0.5046, allocations: 61.53 kB / 0.8701 GB, free: 12.2 MB / 0.5417 GB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.5046, allocations: 8 kB / 0.8701 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.819e-06/0.5046, allocations: 0 / 0.8701 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.071e-05/0.5046, allocations: 0 / 0.8701 GB, free: 12.19 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.5047, allocations: 20.08 kB / 0.8701 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.769e-06/0.5047, allocations: 0 / 0.8701 GB, free: 12.17 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001018/0.5048, allocations: 23.84 kB / 0.8702 GB, free: 12.15 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.5049, allocations: 0 / 0.8702 GB, free: 12.15 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.957e-05/0.5049, allocations: 112.9 kB / 0.8703 GB, free: 12.03 MB / 0.5417 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.332e-05/0.505, allocations: 15.81 kB / 0.8703 GB, free: 12.02 MB / 0.5417 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.63e-05/0.505, allocations: 17.55 kB / 0.8703 GB, free: 12 MB / 0.5417 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.793e-06/0.505, allocations: 7.938 kB / 0.8703 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.505, allocations: 0 / 0.8703 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.505, allocations: 0 / 0.8703 GB, free: 11.99 MB / 0.5417 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001466/0.5052, allocations: 194 kB / 0.8705 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.5052, allocations: 0 / 0.8705 GB, free: 11.76 MB / 0.5417 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.122e-05/0.5053, allocations: 19.98 kB / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.124e-06/0.5053, allocations: 0 / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.983e-06/0.5053, allocations: 0 / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.467e-06/0.5053, allocations: 3.984 kB / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.084e-06/0.5053, allocations: 0 / 0.8705 GB, free: 11.74 MB / 0.5417 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001174/0.5055, allocations: 92.89 kB / 0.8706 GB, free: 11.63 MB / 0.5417 GB Notification: Performance of postOpt removeConstants (simulation): time 6.363e-05/0.5055, allocations: 100.9 kB / 0.8707 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.5056, allocations: 0 / 0.8707 GB, free: 11.51 MB / 0.5417 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.509e-05/0.5057, allocations: 19.92 kB / 0.8707 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.887e-05/0.5057, allocations: 0 / 0.8707 GB, free: 11.49 MB / 0.5417 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.472e-05/0.5058, allocations: 7.984 kB / 0.8707 GB, free: 11.48 MB / 0.5417 GB Notification: Performance of sorting global known variables: time 0.0001292/0.5059, allocations: 160.7 kB / 0.8709 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5059, allocations: 0 / 0.8709 GB, free: 11.33 MB / 0.5417 GB Notification: Performance of remove unused functions: time 0.0002252/0.5061, allocations: 20 kB / 0.8709 GB, free: 11.31 MB / 0.5417 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 () * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002234/0.5064, allocations: 127.7 kB / 0.871 GB, free: 11.18 MB / 0.5417 GB Notification: Performance of simCode: created initialization part: time 9.528e-05/0.5065, allocations: 20 kB / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.5065, allocations: 0 / 0.871 GB, free: 11.16 MB / 0.5417 GB Notification: Performance of simCode: created simulation system equations: time 3.429e-05/0.5065, allocations: 16.17 kB / 0.8711 GB, free: 11.14 MB / 0.5417 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002477/0.5068, allocations: 37.48 kB / 0.8711 GB, free: 11.1 MB / 0.5417 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000374/0.5072, allocations: 184.7 kB / 0.8713 GB, free: 10.9 MB / 0.5417 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002679/0.5074, allocations: 0.7276 MB / 0.872 GB, free: 10.15 MB / 0.5417 GB Notification: Performance of simCode: alias equations: time 7.113e-05/0.5075, allocations: 20.59 kB / 0.872 GB, free: 10.13 MB / 0.5417 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.218e-05/0.5076, allocations: 15.42 kB / 0.872 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of SimCode: time 3.51e-07/0.5076, allocations: 0 / 0.872 GB, free: 10.11 MB / 0.5417 GB Notification: Performance of Templates: time 0.004054/0.5116, allocations: 1.468 MB / 0.8734 GB, free: 8.664 MB / 0.5417 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)