Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 9.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo) Running command: translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_master_Buildings.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.0.0-master/package.mo): time 4.777/4.777, allocations: 0.5623 GB / 0.5769 GB, free: 3.309 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002445/0.002445, allocations: 356.4 kB / 0.644 GB, free: 185.6 MB / 474.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.292/4.292, allocations: 410.7 MB / 1.112 GB, free: 6.02 MB / 0.6042 GB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001787/0.001787, allocations: 188.3 kB / 1.225 GB, free: 6.152 MB / 0.7136 GB Notification: Performance of FrontEnd - loaded program: time 0.0004998/0.0005, allocations: 16 kB / 1.348 GB, free: 8.281 MB / 0.8386 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5913/0.5919, allocations: 115.3 MB / 1.461 GB, free: 284.4 MB / 0.8542 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002629/0.5946, allocations: 1.336 MB / 1.462 GB, free: 283 MB / 0.8542 GB Notification: Performance of NFInst.instExpressions: time 0.001291/0.5959, allocations: 0.5519 MB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001128/0.596, allocations: 0 / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeComponents: time 0.0001981/0.5963, allocations: 19.8 kB / 1.463 GB, free: 282.5 MB / 0.8542 GB Notification: Performance of NFTyping.typeBindings: time 0.0003571/0.5967, allocations: 60.66 kB / 1.463 GB, free: 282.4 MB / 0.8542 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002501/0.5969, allocations: 53.11 kB / 1.463 GB, free: 282.3 MB / 0.8542 GB Notification: Performance of NFFlatten.flatten: time 0.0002228/0.5972, allocations: 111.6 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001813/0.5974, allocations: 38.48 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001582/0.5976, allocations: 44.38 kB / 1.463 GB, free: 282.2 MB / 0.8542 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001354/0.5977, allocations: 47.77 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFPackage.collectConstants: time 3.476e-05/0.5978, allocations: 5.812 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFFlatten.collectFunctions: time 7.897e-05/0.5979, allocations: 15.92 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFScalarize.scalarize: time 0.000101/0.598, allocations: 35.84 kB / 1.463 GB, free: 282.1 MB / 0.8542 GB Notification: Performance of NFVerifyModel.verify: time 4.383e-05/0.5981, allocations: 45.64 kB / 1.463 GB, free: 282 MB / 0.8542 GB Notification: Performance of NFConvertDAE.convert: time 0.0002009/0.5983, allocations: 98.95 kB / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of FrontEnd - DAE generated: time 4.692e-06/0.5983, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of FrontEnd: time 1.895e-06/0.5983, allocations: 0 / 1.463 GB, free: 281.9 MB / 0.8542 GB Notification: Performance of Transformations before backend: time 1.338e-05/0.5984, allocations: 1.062 kB / 1.463 GB, free: 281.9 MB / 0.8542 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.000526/0.5989, allocations: 453 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.5989, allocations: 11.62 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.151e-05/0.599, allocations: 23.72 kB / 1.464 GB, free: 281.4 MB / 0.8542 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002197/0.5992, allocations: 232.8 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.341e-05/0.5993, allocations: 4 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.5993, allocations: 8 kB / 1.464 GB, free: 281.1 MB / 0.8542 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004521/0.5998, allocations: 118.1 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.451e-05/0.5998, allocations: 0 / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.688e-05/0.5998, allocations: 0.8125 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.439e-06/0.5999, allocations: 4 kB / 1.464 GB, free: 281 MB / 0.8542 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004817/0.6004, allocations: 79.38 kB / 1.464 GB, free: 280.9 MB / 0.8542 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009296/0.6013, allocations: 391.3 kB / 1.464 GB, free: 280.5 MB / 0.8542 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.6016, allocations: 52.75 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.6018, allocations: 38.64 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt evalFunc (simulation): time 1.907e-05/0.6018, allocations: 1.625 kB / 1.464 GB, free: 280.4 MB / 0.8542 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003523/0.6022, allocations: 115 kB / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of pre-optimization done (n=3): time 3.543e-06/0.6022, allocations: 0 / 1.465 GB, free: 280.3 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3): time 0.0008482/0.6031, allocations: 142.4 kB / 1.465 GB, free: 280.1 MB / 0.8542 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.425e-05/0.6032, allocations: 83.86 kB / 1.465 GB, free: 280 MB / 0.8542 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004371/0.6036, allocations: 249 kB / 1.465 GB, free: 279.8 MB / 0.8542 GB Notification: Performance of collectPreVariables (initialization): time 2.558e-05/0.6037, allocations: 29.64 kB / 1.465 GB, free: 279.7 MB / 0.8542 GB Notification: Performance of collectInitialEqns (initialization): time 9.361e-05/0.6038, allocations: 128 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of collectInitialBindings (initialization): time 2.717e-05/0.6038, allocations: 7.906 kB / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.286e-06/0.6038, allocations: 0 / 1.465 GB, free: 279.6 MB / 0.8542 GB Notification: Performance of setup shared object (initialization): time 8.354e-05/0.604, allocations: 332.5 kB / 1.466 GB, free: 279.3 MB / 0.8542 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002551/0.6042, allocations: 28.84 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002676/0.6045, allocations: 62 kB / 1.466 GB, free: 279.2 MB / 0.8542 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002627/0.6048, allocations: 30.3 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.79e-06/0.6048, allocations: 2.031 kB / 1.466 GB, free: 279.1 MB / 0.8542 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006219/0.6055, allocations: 123.5 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.6055, allocations: 6.969 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.8e-06/0.6055, allocations: 0 / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.904e-05/0.6056, allocations: 4 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002021/0.6058, allocations: 11.98 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.85e-06/0.6058, allocations: 4 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002049/0.606, allocations: 16.98 kB / 1.466 GB, free: 279 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.862e-05/0.6061, allocations: 4 kB / 1.466 GB, free: 279 MB / 0.8542 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.0001545/0.6063, allocations: 129.4 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.899e-05/0.6063, allocations: 27.61 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.619e-05/0.6064, allocations: 21.23 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.746e-06/0.6064, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.187e-06/0.6065, allocations: 1.906 kB / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.256e-06/0.6065, allocations: 0 / 1.466 GB, free: 278.8 MB / 0.8542 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002488/0.6067, allocations: 225.6 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.17e-06/0.6068, allocations: 0 / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001635/0.6069, allocations: 17.45 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.882e-06/0.607, allocations: 3.953 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.433e-05/0.607, allocations: 0 / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.61e-06/0.607, allocations: 0.9375 kB / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.69e-06/0.607, allocations: 0 / 1.466 GB, free: 278.5 MB / 0.8542 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005993/0.6076, allocations: 133.1 kB / 1.466 GB, free: 278.4 MB / 0.8542 GB Notification: Performance of postOpt removeConstants (simulation): time 8.101e-05/0.6077, allocations: 97.98 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.574e-05/0.6078, allocations: 8.703 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001508/0.608, allocations: 13.23 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.093e-05/0.608, allocations: 7.984 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.927e-05/0.6081, allocations: 13.16 kB / 1.466 GB, free: 278.2 MB / 0.8542 GB Notification: Performance of sorting global known variables: time 0.000181/0.6083, allocations: 188.5 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of sort global known variables: time 6.9e-07/0.6083, allocations: 3.938 kB / 1.467 GB, free: 278 MB / 0.8542 GB Notification: Performance of remove unused functions: time 0.0003056/0.6086, allocations: 22.12 kB / 1.467 GB, free: 278 MB / 0.8542 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.0002207/0.6088, allocations: 112 kB / 1.467 GB, free: 277.9 MB / 0.8542 GB Notification: Performance of simCode: created initialization part: time 0.000456/0.6093, allocations: 70.94 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: created event and clocks part: time 5.014e-06/0.6093, allocations: 1.375 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: created simulation system equations: time 0.000245/0.6096, allocations: 42.53 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005865/0.6102, allocations: 42.53 kB / 1.467 GB, free: 277.8 MB / 0.8542 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00083/0.6111, allocations: 314.2 kB / 1.467 GB, free: 277.4 MB / 0.8542 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002227/0.6113, allocations: 0.7255 MB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of simCode: alias equations: time 0.0001322/0.6115, allocations: 13.91 kB / 1.468 GB, free: 276.7 MB / 0.8542 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.628e-05/0.6116, allocations: 20.36 kB / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of SimCode: time 2.063e-06/0.6116, allocations: 0 / 1.468 GB, free: 276.6 MB / 0.8542 GB Notification: Performance of Templates: time 0.008118/0.6197, allocations: 1.561 MB / 1.469 GB, free: 275.2 MB / 0.8542 GB