Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_1.6_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_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_1.6_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.00151/0.00151, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001527/0.001527, allocations: 191.6 kB / 16.13 MB, free: 6.664 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.349/1.349, allocations: 222.9 MB / 239.8 MB, free: 4.598 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.77/2.77, allocations: 472.6 MB / 0.7447 GB, free: 4.898 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 61.8 kB / 0.9113 GB, free: 33.55 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3638/0.365, allocations: 159.9 MB / 1.068 GB, free: 10.93 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003129/0.3682, allocations: 1.702 MB / 1.069 GB, free: 9.211 MB / 0.8262 GB Notification: Performance of NFInst.instExpressions: time 0.000861/0.3691, allocations: 0.5493 MB / 1.07 GB, free: 8.656 MB / 0.8262 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.809e-05/0.3692, allocations: 3.938 kB / 1.07 GB, free: 8.652 MB / 0.8262 GB Notification: Performance of NFTyping.typeComponents: time 0.0001851/0.3694, allocations: 19.92 kB / 1.07 GB, free: 8.633 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.0002299/0.3696, allocations: 63.62 kB / 1.07 GB, free: 8.57 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001384/0.3698, allocations: 63.88 kB / 1.07 GB, free: 8.508 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.0001702/0.37, allocations: 119.6 kB / 1.07 GB, free: 8.391 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.3701, allocations: 45.45 kB / 1.07 GB, free: 8.344 MB / 0.8262 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001333/0.3703, allocations: 51.72 kB / 1.07 GB, free: 8.293 MB / 0.8262 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001146/0.3704, allocations: 63.75 kB / 1.07 GB, free: 8.23 MB / 0.8262 GB Notification: Performance of NFPackage.collectConstants: time 3.387e-05/0.3704, allocations: 11.94 kB / 1.07 GB, free: 8.219 MB / 0.8262 GB Notification: Performance of NFFlatten.collectFunctions: time 6.048e-05/0.3705, allocations: 20 kB / 1.07 GB, free: 8.199 MB / 0.8262 GB Notification: Performance of NFScalarize.scalarize: time 9.107e-05/0.3706, allocations: 39.89 kB / 1.07 GB, free: 8.16 MB / 0.8262 GB Notification: Performance of NFVerifyModel.verify: time 6.418e-05/0.3707, allocations: 59.48 kB / 1.07 GB, free: 8.102 MB / 0.8262 GB Notification: Performance of NFConvertDAE.convert: time 0.0001954/0.3709, allocations: 143.7 kB / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.3709, allocations: 0 / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.232e-06/0.3709, allocations: 0 / 1.07 GB, free: 7.961 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 4.358e-06/0.3709, allocations: 0 / 1.07 GB, free: 7.961 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.000626/0.3715, allocations: 462.7 kB / 1.071 GB, free: 7.461 MB / 0.8262 GB Notification: Performance of prepare preOptimizeDAE: time 3.898e-05/0.3716, allocations: 12.02 kB / 1.071 GB, free: 7.449 MB / 0.8262 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.265e-05/0.3716, allocations: 16.75 kB / 1.071 GB, free: 7.434 MB / 0.8262 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000252/0.3719, allocations: 228.8 kB / 1.071 GB, free: 7.172 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.3719, allocations: 12.36 kB / 1.071 GB, free: 7.16 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.577e-05/0.3719, allocations: 8.359 kB / 1.071 GB, free: 7.152 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003089/0.3723, allocations: 117.3 kB / 1.071 GB, free: 7.035 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.596e-06/0.3723, allocations: 4 kB / 1.071 GB, free: 7.031 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.49e-05/0.3723, allocations: 3.938 kB / 1.071 GB, free: 7.027 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.825e-06/0.3723, allocations: 4 kB / 1.071 GB, free: 7.023 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000239/0.3726, allocations: 63.88 kB / 1.071 GB, free: 6.961 MB / 0.8262 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006181/0.3732, allocations: 380.5 kB / 1.072 GB, free: 6.539 MB / 0.8262 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.3733, allocations: 46.48 kB / 1.072 GB, free: 6.484 MB / 0.8262 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001062/0.3734, allocations: 24.89 kB / 1.072 GB, free: 6.457 MB / 0.8262 GB Notification: Performance of preOpt evalFunc (simulation): time 1.516e-05/0.3735, allocations: 4 kB / 1.072 GB, free: 6.453 MB / 0.8262 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002791/0.3738, allocations: 101.1 kB / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of pre-optimization done (n=3): time 1.102e-06/0.3738, allocations: 0 / 1.072 GB, free: 6.336 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3): time 0.0004415/0.3742, allocations: 117.3 kB / 1.072 GB, free: 6.215 MB / 0.8262 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.23e-05/0.3743, allocations: 81.11 kB / 1.072 GB, free: 6.117 MB / 0.8262 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002548/0.3745, allocations: 257 kB / 1.072 GB, free: 5.855 MB / 0.8262 GB Notification: Performance of collectPreVariables (initialization): time 1.879e-05/0.3746, allocations: 29.7 kB / 1.072 GB, free: 5.82 MB / 0.8262 GB Notification: Performance of collectInitialEqns (initialization): time 7.43e-05/0.3747, allocations: 132 kB / 1.072 GB, free: 5.688 MB / 0.8262 GB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.3747, allocations: 3.906 kB / 1.072 GB, free: 5.684 MB / 0.8262 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.769e-05/0.3747, allocations: 17.72 kB / 1.072 GB, free: 5.66 MB / 0.8262 GB Notification: Performance of setup shared object (initialization): time 0.0001269/0.3749, allocations: 330.8 kB / 1.073 GB, free: 5.328 MB / 0.8262 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001142/0.375, allocations: 19.98 kB / 1.073 GB, free: 5.309 MB / 0.8262 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001221/0.3751, allocations: 51.41 kB / 1.073 GB, free: 5.246 MB / 0.8262 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002175/0.3753, allocations: 74.39 kB / 1.073 GB, free: 5.164 MB / 0.8262 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.3754, allocations: 4.031 kB / 1.073 GB, free: 5.16 MB / 0.8262 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002757/0.3756, allocations: 101.4 kB / 1.073 GB, free: 5.055 MB / 0.8262 GB Notification: Performance of prepare postOptimizeDAE: time 1.532e-05/0.3757, allocations: 4 kB / 1.073 GB, free: 5.051 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.3757, allocations: 4 kB / 1.073 GB, free: 5.047 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.353e-05/0.3757, allocations: 3.938 kB / 1.073 GB, free: 5.043 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000114/0.3758, allocations: 11.98 kB / 1.073 GB, free: 5.031 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.462e-06/0.3758, allocations: 8.094 kB / 1.073 GB, free: 5.023 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.046e-05/0.3759, allocations: 15.89 kB / 1.073 GB, free: 5.008 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.04e-05/0.3759, allocations: 4 kB / 1.073 GB, free: 5.004 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.0001171/0.3761, allocations: 129.8 kB / 1.073 GB, free: 4.867 MB / 0.8262 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.938e-05/0.3761, allocations: 15.81 kB / 1.073 GB, free: 4.852 MB / 0.8262 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.766e-05/0.3761, allocations: 21.23 kB / 1.073 GB, free: 4.832 MB / 0.8262 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.379e-06/0.3761, allocations: 12.16 kB / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3762, allocations: 0 / 1.073 GB, free: 4.82 MB / 0.8262 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.3762, allocations: 3.938 kB / 1.073 GB, free: 4.816 MB / 0.8262 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001725/0.3763, allocations: 213.6 kB / 1.073 GB, free: 4.559 MB / 0.8262 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.765e-06/0.3763, allocations: 3.984 kB / 1.073 GB, free: 4.555 MB / 0.8262 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.581e-05/0.3764, allocations: 11.98 kB / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.522e-06/0.3764, allocations: 0 / 1.073 GB, free: 4.543 MB / 0.8262 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.3765, allocations: 4 kB / 1.073 GB, free: 4.539 MB / 0.8262 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3765, allocations: 3.938 kB / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3765, allocations: 0 / 1.073 GB, free: 4.535 MB / 0.8262 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003016/0.3768, allocations: 124.9 kB / 1.074 GB, free: 4.395 MB / 0.8262 GB Notification: Performance of postOpt removeConstants (simulation): time 5.182e-05/0.3768, allocations: 92.86 kB / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.32e-05/0.3769, allocations: 0 / 1.074 GB, free: 4.285 MB / 0.8262 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.893e-05/0.377, allocations: 15.92 kB / 1.074 GB, free: 4.27 MB / 0.8262 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.377, allocations: 4 kB / 1.074 GB, free: 4.266 MB / 0.8262 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.422e-05/0.3771, allocations: 7.984 kB / 1.074 GB, free: 4.258 MB / 0.8262 GB Notification: Performance of sorting global known variables: time 0.000175/0.3772, allocations: 188.4 kB / 1.074 GB, free: 4.07 MB / 0.8262 GB Notification: Performance of sort global known variables: time 1.9e-07/0.3773, allocations: 4 kB / 1.074 GB, free: 4.066 MB / 0.8262 GB Notification: Performance of remove unused functions: time 0.0002269/0.3775, allocations: 23.98 kB / 1.074 GB, free: 4.043 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.0002445/0.3777, allocations: 116.4 kB / 1.074 GB, free: 3.926 MB / 0.8262 GB Notification: Performance of simCode: created initialization part: time 0.0002794/0.378, allocations: 59.94 kB / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.378, allocations: 0 / 1.074 GB, free: 3.867 MB / 0.8262 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.3782, allocations: 31.91 kB / 1.074 GB, free: 3.836 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003146/0.3785, allocations: 33.72 kB / 1.074 GB, free: 3.805 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005374/0.379, allocations: 322 kB / 1.074 GB, free: 3.461 MB / 0.8262 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000277/0.3793, allocations: 0.7238 MB / 1.075 GB, free: 2.711 MB / 0.8262 GB Notification: Performance of simCode: alias equations: time 6.951e-05/0.3794, allocations: 16.53 kB / 1.075 GB, free: 2.695 MB / 0.8262 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.764e-05/0.3794, allocations: 15.44 kB / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of SimCode: time 3.8e-07/0.3794, allocations: 0 / 1.075 GB, free: 2.68 MB / 0.8262 GB Notification: Performance of Templates: time 0.004645/0.3841, allocations: 1.615 MB / 1.077 GB, free: 1.09 MB / 0.8262 GB make -j1 -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile (rm -f Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & ./Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_1.6_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1)