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.004978/0.004978, allocations: 102.7 kB / 15.78 MB, free: 5.977 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.001271/0.001271, allocations: 195.5 kB / 16.73 MB, free: 5.852 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.359/1.359, allocations: 225.6 MB / 243.1 MB, free: 3.766 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002315/0.002315, allocations: 279.2 kB / 296.3 MB, free: 4.348 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.009/1.009, allocations: 180.9 MB / 0.5176 GB, free: 4.656 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002576/0.002576, allocations: 95.86 kB / 0.7148 GB, free: 11.09 MB / 0.4981 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.504/0.5066, allocations: 94.15 MB / 0.8067 GB, free: 7.102 MB / 0.5762 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.00252/0.5091, allocations: 1.659 MB / 0.8084 GB, free: 6.039 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.0007501/0.5099, allocations: 0.5463 MB / 0.8089 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.598e-05/0.5099, allocations: 2.312 kB / 0.8089 GB, free: 5.66 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.5101, allocations: 33.5 kB / 0.8089 GB, free: 5.637 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.0002243/0.5103, allocations: 55.27 kB / 0.809 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001257/0.5104, allocations: 75.27 kB / 0.8091 GB, free: 5.566 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.0001644/0.5106, allocations: 130 kB / 0.8092 GB, free: 5.512 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001392/0.5107, allocations: 36.39 kB / 0.8092 GB, free: 5.492 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000103/0.5108, allocations: 56.66 kB / 0.8093 GB, free: 5.469 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 9.572e-05/0.5109, allocations: 62.16 kB / 0.8093 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 2.474e-05/0.511, allocations: 7.719 kB / 0.8093 GB, free: 5.438 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 6.176e-05/0.511, allocations: 27.56 kB / 0.8094 GB, free: 5.43 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 8.347e-05/0.5111, allocations: 50.44 kB / 0.8094 GB, free: 5.402 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.5112, allocations: 58.59 kB / 0.8095 GB, free: 5.363 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.0001909/0.5113, allocations: 147.1 kB / 0.8096 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.5113, allocations: 1.062 kB / 0.8096 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of FrontEnd: time 1.342e-06/0.5113, allocations: 0 / 0.8096 GB, free: 5.301 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 5.18e-06/0.5114, allocations: 0 / 0.8096 GB, free: 5.301 MB / 0.5762 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.0005081/0.5119, allocations: 470.8 kB / 0.8101 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 3.126e-05/0.5119, allocations: 9.875 kB / 0.8101 GB, free: 4.867 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.292e-05/0.5119, allocations: 29.12 kB / 0.8101 GB, free: 4.852 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000227/0.5122, allocations: 241.7 kB / 0.8103 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.131e-05/0.5122, allocations: 3.188 kB / 0.8103 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.334e-05/0.5122, allocations: 3.469 kB / 0.8103 GB, free: 4.613 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002621/0.5125, allocations: 125.5 kB / 0.8104 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.215e-06/0.5125, allocations: 0 / 0.8104 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.383e-05/0.5125, allocations: 5.312 kB / 0.8104 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.36e-06/0.5125, allocations: 5.438 kB / 0.8105 GB, free: 4.543 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.5127, allocations: 62.83 kB / 0.8105 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004756/0.5132, allocations: 375.8 kB / 0.8109 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001257/0.5133, allocations: 42.83 kB / 0.8109 GB, free: 4.188 MB / 0.5762 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001017/0.5134, allocations: 29.17 kB / 0.8109 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt evalFunc (simulation): time 1.134e-05/0.5134, allocations: 0 / 0.8109 GB, free: 4.176 MB / 0.5762 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001856/0.5136, allocations: 98.97 kB / 0.811 GB, free: 4.102 MB / 0.5762 GB Notification: Performance of pre-optimization done (n=3): time 9.42e-07/0.5136, allocations: 4 kB / 0.811 GB, free: 4.098 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3): time 0.0004037/0.514, allocations: 124 kB / 0.8112 GB, free: 4.043 MB / 0.5762 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.514, allocations: 86.39 kB / 0.8112 GB, free: 3.941 MB / 0.5762 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002115/0.5142, allocations: 248 kB / 0.8115 GB, free: 3.801 MB / 0.5762 GB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.5143, allocations: 27.55 kB / 0.8115 GB, free: 3.77 MB / 0.5762 GB Notification: Performance of collectInitialEqns (initialization): time 5.114e-05/0.5143, allocations: 130.6 kB / 0.8116 GB, free: 3.652 MB / 0.5762 GB Notification: Performance of collectInitialBindings (initialization): time 1.603e-05/0.5143, allocations: 13.3 kB / 0.8116 GB, free: 3.641 MB / 0.5762 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.049e-05/0.5144, allocations: 16.48 kB / 0.8117 GB, free: 3.625 MB / 0.5762 GB Notification: Performance of setup shared object (initialization): time 4.828e-05/0.5144, allocations: 333.9 kB / 0.812 GB, free: 3.301 MB / 0.5762 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001065/0.5145, allocations: 28.08 kB / 0.812 GB, free: 3.293 MB / 0.5762 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001068/0.5146, allocations: 45.28 kB / 0.812 GB, free: 3.258 MB / 0.5762 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001948/0.5148, allocations: 66.06 kB / 0.8121 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.754e-06/0.5148, allocations: 0 / 0.8121 GB, free: 3.227 MB / 0.5762 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002509/0.5151, allocations: 107.8 kB / 0.8122 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.5151, allocations: 6.312 kB / 0.8122 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.348e-06/0.5151, allocations: 1.062 kB / 0.8122 GB, free: 3.172 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.646e-05/0.5151, allocations: 8.938 kB / 0.8122 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001038/0.5152, allocations: 12.28 kB / 0.8122 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.14e-06/0.5152, allocations: 0 / 0.8122 GB, free: 3.164 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.557e-05/0.5153, allocations: 18.47 kB / 0.8123 GB, free: 3.156 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.745e-06/0.5153, allocations: 2.719 kB / 0.8123 GB, free: 3.156 MB / 0.5762 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.867e-05/0.5154, allocations: 130.6 kB / 0.8124 GB, free: 3.031 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.79e-05/0.5154, allocations: 19.28 kB / 0.8124 GB, free: 3.023 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.2e-05/0.5154, allocations: 19.25 kB / 0.8124 GB, free: 3.008 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.5154, allocations: 8.781 kB / 0.8124 GB, free: 3 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.449e-06/0.5154, allocations: 1.922 kB / 0.8124 GB, free: 3 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.194e-06/0.5154, allocations: 0 / 0.8124 GB, free: 3 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001229/0.5156, allocations: 212.5 kB / 0.8126 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.382e-06/0.5156, allocations: 0.5156 kB / 0.8126 GB, free: 2.793 MB / 0.5762 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.89e-05/0.5156, allocations: 18.12 kB / 0.8126 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.5156, allocations: 0.6562 kB / 0.8126 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.793e-06/0.5157, allocations: 0 / 0.8126 GB, free: 2.789 MB / 0.5762 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.5157, allocations: 3.938 kB / 0.8127 GB, free: 2.785 MB / 0.5762 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.064e-06/0.5157, allocations: 4.609 kB / 0.8127 GB, free: 2.781 MB / 0.5762 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000252/0.5159, allocations: 127.7 kB / 0.8128 GB, free: 2.695 MB / 0.5762 GB Notification: Performance of postOpt removeConstants (simulation): time 2.506e-05/0.5159, allocations: 93.55 kB / 0.8129 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.516, allocations: 3.234 kB / 0.8129 GB, free: 2.59 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.215e-05/0.516, allocations: 19.09 kB / 0.8129 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.584e-05/0.5161, allocations: 1.734 kB / 0.8129 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.946e-05/0.5161, allocations: 8.328 kB / 0.8129 GB, free: 2.582 MB / 0.5762 GB Notification: Performance of sorting global known variables: time 0.0001319/0.5162, allocations: 188.9 kB / 0.8131 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of sort global known variables: time 7e-08/0.5162, allocations: 0 / 0.8131 GB, free: 2.473 MB / 0.5762 GB Notification: Performance of remove unused functions: time 0.0002047/0.5164, allocations: 19.2 kB / 0.8131 GB, free: 2.473 MB / 0.5762 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.00018/0.5166, allocations: 126.1 kB / 0.8132 GB, free: 2.367 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.0002692/0.5169, allocations: 62.22 kB / 0.8133 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 1.894e-06/0.5169, allocations: 0 / 0.8133 GB, free: 2.352 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.0001058/0.517, allocations: 27.47 kB / 0.8133 GB, free: 2.348 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002716/0.5173, allocations: 43.05 kB / 0.8133 GB, free: 2.34 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004145/0.5177, allocations: 279.2 kB / 0.8136 GB, free: 2.152 MB / 0.5762 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001348/0.5178, allocations: 0.7272 MB / 0.8143 GB, free: 1.445 MB / 0.5762 GB Notification: Performance of simCode: alias equations: time 6.232e-05/0.5179, allocations: 22.12 kB / 0.8143 GB, free: 1.441 MB / 0.5762 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.235e-05/0.5179, allocations: 15.77 kB / 0.8144 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of SimCode: time 3.5e-07/0.5179, allocations: 0 / 0.8144 GB, free: 1.434 MB / 0.5762 GB Notification: Performance of Templates: time 0.004745/0.5226, allocations: 1.794 MB / 0.8161 GB, free: 1.227 MB / 0.5762 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)