Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_3.0.0_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_3.0.0_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.001263/0.001263, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001446/0.001446, allocations: 186.6 kB / 16.25 MB, free: 6.578 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.384/1.384, allocations: 222.9 MB / 239.9 MB, free: 4.539 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.823/2.823, allocations: 472.6 MB / 0.7448 GB, free: 4.922 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 65.09 kB / 0.9115 GB, free: 33.46 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3454/0.3467, allocations: 159.9 MB / 1.068 GB, free: 10.81 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003308/0.35, allocations: 1.698 MB / 1.069 GB, free: 9.098 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.001006/0.351, allocations: 0.5533 MB / 1.07 GB, free: 8.539 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.3512, allocations: 4 kB / 1.07 GB, free: 8.535 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0002166/0.3514, allocations: 23.84 kB / 1.07 GB, free: 8.512 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002824/0.3517, allocations: 51.77 kB / 1.07 GB, free: 8.461 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001943/0.3519, allocations: 51.94 kB / 1.07 GB, free: 8.41 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0002218/0.3522, allocations: 139.5 kB / 1.07 GB, free: 8.273 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001799/0.3523, allocations: 53.45 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001534/0.3525, allocations: 55.77 kB / 1.07 GB, free: 8.164 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001238/0.3526, allocations: 63.64 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.278e-05/0.3527, allocations: 11.94 kB / 1.07 GB, free: 8.09 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.684e-05/0.3528, allocations: 24 kB / 1.07 GB, free: 8.066 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.268e-05/0.3529, allocations: 43.89 kB / 1.07 GB, free: 8.023 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 7.208e-05/0.3529, allocations: 59.55 kB / 1.07 GB, free: 7.965 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.3532, allocations: 143.7 kB / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.458e-06/0.3532, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.222e-06/0.3532, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 8.105e-06/0.3532, allocations: 0 / 1.071 GB, free: 7.824 MB / 0.8262 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.0006961/0.3539, allocations: 470.6 kB / 1.071 GB, free: 7.316 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/0.3539, allocations: 8.031 kB / 1.071 GB, free: 7.309 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.478e-05/0.354, allocations: 24.75 kB / 1.071 GB, free: 7.285 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.3543, allocations: 228.9 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.3543, allocations: 8.375 kB / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.341e-05/0.3543, allocations: 384 / 1.071 GB, free: 7.016 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002906/0.3546, allocations: 113.9 kB / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.068e-05/0.3546, allocations: 0 / 1.071 GB, free: 6.898 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.871e-05/0.3547, allocations: 11.94 kB / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.939e-06/0.3547, allocations: 0 / 1.071 GB, free: 6.887 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002252/0.3549, allocations: 67.94 kB / 1.071 GB, free: 6.82 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006198/0.3555, allocations: 384.4 kB / 1.072 GB, free: 6.395 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001308/0.3557, allocations: 30.56 kB / 1.072 GB, free: 6.355 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001153/0.3558, allocations: 36.89 kB / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.916e-05/0.3558, allocations: 0 / 1.072 GB, free: 6.316 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002728/0.3561, allocations: 101 kB / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.392e-06/0.3561, allocations: 0 / 1.072 GB, free: 6.199 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004473/0.3566, allocations: 121.4 kB / 1.072 GB, free: 6.074 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.119e-05/0.3566, allocations: 81.09 kB / 1.072 GB, free: 5.977 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002571/0.3569, allocations: 253 kB / 1.072 GB, free: 5.719 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.878e-05/0.3569, allocations: 25.7 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 9.51e-05/0.357, allocations: 135.9 kB / 1.073 GB, free: 5.551 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.895e-05/0.357, allocations: 7.906 kB / 1.073 GB, free: 5.543 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.091e-05/0.3571, allocations: 21.72 kB / 1.073 GB, free: 5.516 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001198/0.3572, allocations: 330.8 kB / 1.073 GB, free: 5.184 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001189/0.3573, allocations: 15.98 kB / 1.073 GB, free: 5.168 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001243/0.3575, allocations: 51.53 kB / 1.073 GB, free: 5.105 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002108/0.3577, allocations: 70.55 kB / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.773e-06/0.3577, allocations: 0 / 1.073 GB, free: 5.027 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002869/0.358, allocations: 109.4 kB / 1.073 GB, free: 4.914 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.684e-05/0.358, allocations: 4 kB / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.08e-06/0.358, allocations: 0 / 1.073 GB, free: 4.91 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3581, allocations: 4.031 kB / 1.073 GB, free: 4.906 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001187/0.3582, allocations: 23.84 kB / 1.073 GB, free: 4.883 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.3582, allocations: 4 kB / 1.073 GB, free: 4.879 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.727e-05/0.3583, allocations: 11.89 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3583, allocations: 4 kB / 1.073 GB, free: 4.863 MB / 0.8262 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.0001147/0.3584, allocations: 135.6 kB / 1.073 GB, free: 4.723 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.211e-05/0.3585, allocations: 15.81 kB / 1.073 GB, free: 4.707 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.137e-05/0.3585, allocations: 21.23 kB / 1.073 GB, free: 4.688 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.356e-06/0.3585, allocations: 3.938 kB / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.3585, allocations: 0 / 1.073 GB, free: 4.684 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.3585, allocations: 3.938 kB / 1.073 GB, free: 4.68 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001776/0.3587, allocations: 213.6 kB / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3587, allocations: 0 / 1.074 GB, free: 4.422 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.436e-05/0.3588, allocations: 15.98 kB / 1.074 GB, free: 4.406 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.867e-06/0.3588, allocations: 4 kB / 1.074 GB, free: 4.402 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.3588, allocations: 4 kB / 1.074 GB, free: 4.398 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.3589, allocations: 3.938 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.3589, allocations: 0 / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002799/0.3591, allocations: 124.8 kB / 1.074 GB, free: 4.254 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.859e-05/0.3592, allocations: 92.86 kB / 1.074 GB, free: 4.145 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.383e-05/0.3592, allocations: 4 kB / 1.074 GB, free: 4.141 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.849e-05/0.3593, allocations: 15.92 kB / 1.074 GB, free: 4.125 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.244e-05/0.3594, allocations: 4 kB / 1.074 GB, free: 4.121 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.69e-05/0.3594, allocations: 7.984 kB / 1.074 GB, free: 4.113 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.0001756/0.3596, allocations: 184.5 kB / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of sort global known variables: time 2.71e-07/0.3596, allocations: 0 / 1.074 GB, free: 3.93 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002292/0.3598, allocations: 27.98 kB / 1.074 GB, free: 3.902 MB / 0.8262 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.0002231/0.3601, allocations: 110.6 kB / 1.074 GB, free: 3.793 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002989/0.3604, allocations: 59.88 kB / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3604, allocations: 0 / 1.074 GB, free: 3.734 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001157/0.3605, allocations: 32.16 kB / 1.074 GB, free: 3.703 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002993/0.3608, allocations: 46.98 kB / 1.074 GB, free: 3.66 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006097/0.3614, allocations: 324.1 kB / 1.075 GB, free: 3.316 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000338/0.3618, allocations: 0.7237 MB / 1.075 GB, free: 2.566 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 7.168e-05/0.3619, allocations: 16.55 kB / 1.075 GB, free: 2.551 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.141e-05/0.3619, allocations: 19.44 kB / 1.075 GB, free: 2.531 MB / 0.8262 GB Notification: Performance of SimCode: time 2.5e-07/0.3619, allocations: 3.938 kB / 1.075 GB, free: 2.527 MB / 0.8262 GB Notification: Performance of Templates: time 0.00517/0.3671, allocations: 1.66 MB / 1.077 GB, free: 0.8945 MB / 0.8262 GB make -j1 -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_3.0.0_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)