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 3.2.3+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/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo", uses=false) Using package NcDataReader2 with version 2.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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.7288/0.7288, allocations: 140.1 MB / 156 MB, free: 5.152 MB / 122.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009826/0.0009826, allocations: 181.7 kB / 188.5 MB, free: 15.81 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.382/1.382, allocations: 205.4 MB / 426.3 MB, free: 8.445 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007711/0.0007705, allocations: 98.28 kB / 0.4945 GB, free: 8.383 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.0/package.mo): time 0.001631/0.001631, allocations: 275.8 kB / 0.5729 GB, free: 66.2 MB / 410.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007303/0.0007303, allocations: 16 kB / 0.662 GB, free: 6.789 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3401/0.3409, allocations: 79.31 MB / 0.7395 GB, free: 46.32 MB / 458.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1335/0.4745, allocations: 109.2 MB / 0.8461 GB, free: 1.016 MB / 0.5105 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002544/0.4748, allocations: 79.95 kB / 0.8462 GB, free: 0.9375 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 0.009441/0.4842, allocations: 3.292 MB / 0.8494 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of FrontEnd: time 2.725e-06/0.4843, allocations: 0 / 0.8494 GB, free: 13.64 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 1.731e-05/0.4843, allocations: 4 kB / 0.8494 GB, free: 13.64 MB / 0.5261 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.0005732/0.4849, allocations: 462.8 kB / 0.8498 GB, free: 13.14 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.636e-05/0.4849, allocations: 8.031 kB / 0.8498 GB, free: 13.13 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.867e-05/0.485, allocations: 20.66 kB / 0.8498 GB, free: 13.11 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002687/0.4853, allocations: 236.9 kB / 0.8501 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.049e-05/0.4853, allocations: 384 / 0.8501 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.877e-05/0.4853, allocations: 8.375 kB / 0.8501 GB, free: 12.83 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002636/0.4856, allocations: 106.2 kB / 0.8502 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.002e-05/0.4856, allocations: 4.172 kB / 0.8502 GB, free: 12.71 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.4857, allocations: 15.88 kB / 0.8502 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.4857, allocations: 0 / 0.8502 GB, free: 12.7 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002153/0.4859, allocations: 79.88 kB / 0.8503 GB, free: 12.62 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006023/0.4865, allocations: 400.4 kB / 0.8507 GB, free: 12.18 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.4866, allocations: 42.55 kB / 0.8507 GB, free: 12.13 MB / 0.5261 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001035/0.4868, allocations: 40.84 kB / 0.8507 GB, free: 12.09 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.831e-05/0.4868, allocations: 3.984 kB / 0.8507 GB, free: 12.08 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002249/0.487, allocations: 110.2 kB / 0.8508 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=3): time 1.212e-06/0.487, allocations: 0 / 0.8508 GB, free: 11.96 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3): time 0.0004135/0.4874, allocations: 145.4 kB / 0.851 GB, free: 11.81 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.722e-05/0.4875, allocations: 81.05 kB / 0.8511 GB, free: 11.71 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002383/0.4877, allocations: 252.9 kB / 0.8513 GB, free: 11.46 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 2.064e-05/0.4878, allocations: 25.7 kB / 0.8513 GB, free: 11.43 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 7.283e-05/0.4879, allocations: 120.1 kB / 0.8514 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 1.847e-05/0.4879, allocations: 7.906 kB / 0.8514 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.168e-06/0.4879, allocations: 0 / 0.8514 GB, free: 11.3 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 0.0001321/0.488, allocations: 334.8 kB / 0.8518 GB, free: 10.96 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001051/0.4881, allocations: 31.97 kB / 0.8518 GB, free: 10.93 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001108/0.4883, allocations: 59.58 kB / 0.8519 GB, free: 10.86 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.4885, allocations: 82.5 kB / 0.8519 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.843e-06/0.4885, allocations: 0 / 0.8519 GB, free: 10.77 MB / 0.5261 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000273/0.4888, allocations: 125.3 kB / 0.852 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.538e-05/0.4888, allocations: 4 kB / 0.8521 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.4888, allocations: 0 / 0.8521 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.4888, allocations: 0 / 0.8521 GB, free: 10.64 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001078/0.4889, allocations: 15.98 kB / 0.8521 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.226e-05/0.4889, allocations: 3.938 kB / 0.8521 GB, free: 10.62 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.87e-05/0.4891, allocations: 27.98 kB / 0.8521 GB, free: 10.59 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.4891, allocations: 4 kB / 0.8521 GB, free: 10.59 MB / 0.5261 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001094/0.4892, allocations: 125.8 kB / 0.8522 GB, free: 10.45 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.532e-05/0.4892, allocations: 15.81 kB / 0.8522 GB, free: 10.44 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.233e-05/0.4893, allocations: 25.23 kB / 0.8523 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.823e-06/0.4893, allocations: 0 / 0.8523 GB, free: 10.41 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.701e-06/0.4893, allocations: 3.938 kB / 0.8523 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.615e-06/0.4893, allocations: 0 / 0.8523 GB, free: 10.4 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000169/0.4895, allocations: 221.6 kB / 0.8525 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.4895, allocations: 0 / 0.8525 GB, free: 10.14 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.896e-05/0.4896, allocations: 11.98 kB / 0.8525 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.164e-06/0.4896, allocations: 4 kB / 0.8525 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.097e-06/0.4896, allocations: 0 / 0.8525 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.303e-06/0.4896, allocations: 3.938 kB / 0.8525 GB, free: 10.12 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.4896, allocations: 3.938 kB / 0.8525 GB, free: 10.11 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002745/0.4899, allocations: 140.7 kB / 0.8526 GB, free: 9.957 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 6.269e-05/0.49, allocations: 100.9 kB / 0.8527 GB, free: 9.84 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.066e-05/0.49, allocations: 3.938 kB / 0.8527 GB, free: 9.836 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.967e-05/0.4901, allocations: 15.98 kB / 0.8527 GB, free: 9.82 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.068e-05/0.4901, allocations: 15.92 kB / 0.8528 GB, free: 9.805 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.315e-05/0.4902, allocations: 4 kB / 0.8528 GB, free: 9.801 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 0.0001853/0.4904, allocations: 180.5 kB / 0.8529 GB, free: 9.629 MB / 0.5261 GB Notification: Performance of sort global known variables: time 1.6e-07/0.4904, allocations: 0 / 0.8529 GB, free: 9.629 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0002187/0.4906, allocations: 32.06 kB / 0.853 GB, free: 9.598 MB / 0.5261 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 (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.4908, allocations: 119 kB / 0.8531 GB, free: 9.48 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.000271/0.4911, allocations: 67.95 kB / 0.8531 GB, free: 9.414 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.4911, allocations: 4 kB / 0.8532 GB, free: 9.41 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0001101/0.4912, allocations: 35.91 kB / 0.8532 GB, free: 9.375 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002867/0.4915, allocations: 36.59 kB / 0.8532 GB, free: 9.34 MB / 0.5261 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005595/0.4921, allocations: 316.2 kB / 0.8535 GB, free: 8.996 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003354/0.4924, allocations: 0.7277 MB / 0.8542 GB, free: 8.242 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.119e-05/0.4925, allocations: 16.48 kB / 0.8542 GB, free: 8.227 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.969e-05/0.4926, allocations: 15.44 kB / 0.8543 GB, free: 8.211 MB / 0.5261 GB Notification: Performance of SimCode: time 2.41e-07/0.4926, allocations: 4 kB / 0.8543 GB, free: 8.207 MB / 0.5261 GB Notification: Performance of Templates: time 0.004571/0.4972, allocations: 1.618 MB / 0.8558 GB, free: 6.602 MB / 0.5261 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)