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.00131/0.00131, allocations: 108.5 kB / 16.41 MB, free: 6.516 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.001251/0.001251, allocations: 184 kB / 17.34 MB, free: 5.738 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.403/1.403, allocations: 222.9 MB / 241 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002536/0.002536, allocations: 289.6 kB / 291.5 MB, free: 14.45 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9985/0.9985, allocations: 169.3 MB / 0.499 GB, free: 4.441 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002737/0.002737, allocations: 96.2 kB / 0.6821 GB, free: 6.977 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3934/0.3962, allocations: 86.98 MB / 0.767 GB, free: 3.918 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002997/0.3992, allocations: 1.636 MB / 0.7686 GB, free: 2.27 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.0009672/0.4001, allocations: 0.5473 MB / 0.7692 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.565e-05/0.4002, allocations: 4 kB / 0.7692 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.0001639/0.4004, allocations: 27.73 kB / 0.7692 GB, free: 1.688 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.0002419/0.4006, allocations: 63.67 kB / 0.7693 GB, free: 1.625 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001615/0.4008, allocations: 67.84 kB / 0.7693 GB, free: 1.559 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0001965/0.401, allocations: 131.5 kB / 0.7695 GB, free: 1.43 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001508/0.4011, allocations: 45.47 kB / 0.7695 GB, free: 1.383 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001228/0.4012, allocations: 51.78 kB / 0.7695 GB, free: 1.332 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001133/0.4013, allocations: 63.69 kB / 0.7696 GB, free: 1.27 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 2.674e-05/0.4014, allocations: 8 kB / 0.7696 GB, free: 1.262 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 5.948e-05/0.4014, allocations: 23.94 kB / 0.7696 GB, free: 1.238 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 9.274e-05/0.4015, allocations: 47.81 kB / 0.7697 GB, free: 1.191 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 7.368e-05/0.4016, allocations: 59.55 kB / 0.7697 GB, free: 1.133 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.000211/0.4018, allocations: 145 kB / 0.7699 GB, free: 1 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.4018, allocations: 7.938 kB / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of FrontEnd: time 8.51e-07/0.4018, allocations: 0 / 0.7699 GB, free: 0.9922 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.578e-06/0.4018, allocations: 4 kB / 0.7699 GB, free: 0.9883 MB / 0.5294 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.0007084/0.4025, allocations: 474.4 kB / 0.7703 GB, free: 488 kB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.162e-05/0.4026, allocations: 8.031 kB / 0.7703 GB, free: 480 kB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.25e-05/0.4026, allocations: 16.84 kB / 0.7704 GB, free: 464 kB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003648/0.403, allocations: 237 kB / 0.7706 GB, free: 184 kB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.358e-05/0.403, allocations: 8.375 kB / 0.7706 GB, free: 176 kB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.018e-05/0.403, allocations: 8.375 kB / 0.7706 GB, free: 168 kB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002917/0.4033, allocations: 117 kB / 0.7707 GB, free: 48 kB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.226e-06/0.4033, allocations: 4 kB / 0.7707 GB, free: 44 kB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.4033, allocations: 4 kB / 0.7707 GB, free: 40 kB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.4033, allocations: 3.938 kB / 0.7707 GB, free: 36 kB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002744/0.4036, allocations: 59.94 kB / 0.7708 GB, free: 15.98 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006419/0.4043, allocations: 380.6 kB / 0.7711 GB, free: 15.55 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001556/0.4044, allocations: 38.55 kB / 0.7712 GB, free: 15.51 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001171/0.4045, allocations: 32.89 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 1.927e-05/0.4045, allocations: 4 kB / 0.7712 GB, free: 15.47 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002334/0.4048, allocations: 97.02 kB / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of pre-optimization done (n=3): time 1.042e-06/0.4048, allocations: 0 / 0.7713 GB, free: 15.36 MB / 0.545 GB Notification: Performance of matching and sorting (n=3): time 0.0004569/0.4052, allocations: 129.4 kB / 0.7714 GB, free: 15.22 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.493e-05/0.4053, allocations: 77.11 kB / 0.7715 GB, free: 15.13 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002898/0.4056, allocations: 256.9 kB / 0.7718 GB, free: 14.87 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 2.221e-05/0.4056, allocations: 25.7 kB / 0.7718 GB, free: 14.84 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001028/0.4057, allocations: 132.1 kB / 0.7719 GB, free: 14.71 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 1.957e-05/0.4057, allocations: 7.953 kB / 0.7719 GB, free: 14.7 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.107e-05/0.4058, allocations: 13.72 kB / 0.7719 GB, free: 14.68 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 0.0001777/0.4059, allocations: 330.8 kB / 0.7722 GB, free: 14.35 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001204/0.4061, allocations: 31.91 kB / 0.7723 GB, free: 14.32 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.4062, allocations: 47.41 kB / 0.7723 GB, free: 14.26 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002283/0.4064, allocations: 70.55 kB / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.4064, allocations: 0 / 0.7724 GB, free: 14.18 MB / 0.545 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002925/0.4067, allocations: 101.5 kB / 0.7725 GB, free: 14.07 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 1.6e-05/0.4067, allocations: 11.98 kB / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.048e-06/0.4067, allocations: 0 / 0.7725 GB, free: 14.06 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.4068, allocations: 11.97 kB / 0.7725 GB, free: 14.05 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.4069, allocations: 11.98 kB / 0.7725 GB, free: 14.04 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.606e-06/0.4069, allocations: 7.984 kB / 0.7725 GB, free: 14.03 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.134e-05/0.407, allocations: 15.88 kB / 0.7725 GB, free: 14.02 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.177e-06/0.407, allocations: 4 kB / 0.7725 GB, free: 14.01 MB / 0.545 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 0.0001218/0.4071, allocations: 130 kB / 0.7727 GB, free: 13.88 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.959e-05/0.4071, allocations: 15.91 kB / 0.7727 GB, free: 13.86 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.784e-05/0.4072, allocations: 21.23 kB / 0.7727 GB, free: 13.84 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.65e-05/0.4072, allocations: 7.938 kB / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.679e-06/0.4072, allocations: 0 / 0.7727 GB, free: 13.83 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.4072, allocations: 3.984 kB / 0.7727 GB, free: 13.82 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001961/0.4074, allocations: 217.5 kB / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.52e-07/0.4074, allocations: 0 / 0.7729 GB, free: 13.56 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.215e-05/0.4075, allocations: 11.98 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.553e-06/0.4075, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.893e-06/0.4075, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.979e-06/0.4075, allocations: 3.938 kB / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.4075, allocations: 0 / 0.7729 GB, free: 13.55 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003063/0.4078, allocations: 132.9 kB / 0.7731 GB, free: 13.4 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 6.324e-05/0.4079, allocations: 93 kB / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.935e-05/0.4079, allocations: 0 / 0.7732 GB, free: 13.29 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.793e-05/0.408, allocations: 15.92 kB / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.142e-05/0.408, allocations: 0 / 0.7732 GB, free: 13.27 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.672e-05/0.408, allocations: 12 kB / 0.7732 GB, free: 13.26 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.0001959/0.4082, allocations: 188.5 kB / 0.7734 GB, free: 13.08 MB / 0.545 GB Notification: Performance of sort global known variables: time 8e-08/0.4082, allocations: 0 / 0.7734 GB, free: 13.08 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.0002177/0.4084, allocations: 20 kB / 0.7734 GB, free: 13.06 MB / 0.545 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.0002363/0.4087, allocations: 120.4 kB / 0.7735 GB, free: 12.94 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.0002834/0.409, allocations: 55.88 kB / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.409, allocations: 0 / 0.7735 GB, free: 12.88 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.0001152/0.4091, allocations: 27.97 kB / 0.7736 GB, free: 12.86 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002936/0.4094, allocations: 49.8 kB / 0.7736 GB, free: 12.81 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005138/0.4099, allocations: 279.9 kB / 0.7739 GB, free: 12.51 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004558/0.4103, allocations: 0.7202 MB / 0.7746 GB, free: 11.76 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 6.857e-05/0.4104, allocations: 24.61 kB / 0.7746 GB, free: 11.74 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.476e-05/0.4105, allocations: 15.44 kB / 0.7746 GB, free: 11.73 MB / 0.545 GB Notification: Performance of SimCode: time 2.91e-07/0.4105, allocations: 4 kB / 0.7746 GB, free: 11.72 MB / 0.545 GB Notification: Performance of Templates: time 0.005145/0.4156, allocations: 1.78 MB / 0.7764 GB, free: 9.973 MB / 0.545 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 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)