Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IBPSA_master_IBPSA.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 IBPSA with version 3.0.0 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/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) Running command: translateModel(IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="IBPSA_master_IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0024/0.0024, allocations: 356.8 kB / 15.94 MB, free: 6.207 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 3.0.0-master/package.mo): time 1.473/1.473, allocations: 165.8 MB / 182.5 MB, free: 5.445 MB / 138.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.712/3.712, allocations: 410.8 MB / 0.5995 GB, free: 15.21 MB / 298.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001741/0.00174, allocations: 201.4 kB / 0.6662 GB, free: 6.938 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004527/0.0004529, allocations: 12 kB / 0.7423 GB, free: 8.977 MB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.404/0.4045, allocations: 67.44 MB / 0.8081 GB, free: 28.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.003224/0.4078, allocations: 1.313 MB / 0.8094 GB, free: 27.48 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001816/0.4097, allocations: 0.544 MB / 0.81 GB, free: 26.93 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001331/0.4098, allocations: 4 kB / 0.81 GB, free: 26.92 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002484/0.4101, allocations: 23.8 kB / 0.81 GB, free: 26.9 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004537/0.4106, allocations: 61.48 kB / 0.81 GB, free: 26.84 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002816/0.4109, allocations: 47.94 kB / 0.8101 GB, free: 26.79 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000292/0.4112, allocations: 115.5 kB / 0.8102 GB, free: 26.68 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002291/0.4115, allocations: 41.41 kB / 0.8102 GB, free: 26.63 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001854/0.4117, allocations: 39.8 kB / 0.8103 GB, free: 26.59 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001677/0.4119, allocations: 51.75 kB / 0.8103 GB, free: 26.54 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 4.248e-05/0.412, allocations: 4 kB / 0.8103 GB, free: 26.54 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.784e-05/0.4121, allocations: 15.94 kB / 0.8103 GB, free: 26.52 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001234/0.4122, allocations: 31.89 kB / 0.8104 GB, free: 26.49 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.675e-05/0.4123, allocations: 49.58 kB / 0.8104 GB, free: 26.44 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002726/0.4126, allocations: 97.92 kB / 0.8105 GB, free: 26.34 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.478e-06/0.4126, allocations: 0 / 0.8105 GB, free: 26.34 MB / 378.7 MB Notification: Performance of FrontEnd: time 5.801e-06/0.4127, allocations: 7.938 kB / 0.8105 GB, free: 26.34 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.919e-06/0.4127, allocations: 0 / 0.8105 GB, free: 26.34 MB / 378.7 MB 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.0009443/0.4137, allocations: 438.7 kB / 0.8109 GB, free: 25.86 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.926e-05/0.4137, allocations: 12.03 kB / 0.811 GB, free: 25.85 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001059/0.4139, allocations: 23.7 kB / 0.811 GB, free: 25.82 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004575/0.4143, allocations: 235.5 kB / 0.8112 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.4144, allocations: 4 kB / 0.8112 GB, free: 25.55 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.745e-05/0.4145, allocations: 11.94 kB / 0.8112 GB, free: 25.54 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006048/0.4151, allocations: 121.6 kB / 0.8113 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.701e-05/0.4151, allocations: 0 / 0.8113 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.285e-05/0.4152, allocations: 0 / 0.8113 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.228e-05/0.4152, allocations: 4 kB / 0.8113 GB, free: 25.41 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006082/0.4158, allocations: 83.88 kB / 0.8114 GB, free: 25.32 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009708/0.4168, allocations: 396.4 kB / 0.8118 GB, free: 24.89 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002418/0.4171, allocations: 50.48 kB / 0.8118 GB, free: 24.83 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002152/0.4174, allocations: 40.89 kB / 0.8119 GB, free: 24.79 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.193e-05/0.4174, allocations: 0 / 0.8119 GB, free: 24.79 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003841/0.4178, allocations: 109.1 kB / 0.812 GB, free: 24.66 MB / 378.7 MB Notification: Performance of pre-optimization done (n=3): time 2.865e-06/0.4178, allocations: 0 / 0.812 GB, free: 24.66 MB / 378.7 MB Notification: Performance of matching and sorting (n=3): time 0.0008546/0.4187, allocations: 141.4 kB / 0.8121 GB, free: 24.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.702e-05/0.4188, allocations: 81.05 kB / 0.8122 GB, free: 24.42 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004707/0.4193, allocations: 253 kB / 0.8124 GB, free: 24.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.4193, allocations: 25.7 kB / 0.8125 GB, free: 24.14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001093/0.4194, allocations: 136 kB / 0.8126 GB, free: 24 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.763e-05/0.4195, allocations: 3.906 kB / 0.8126 GB, free: 24 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.462e-06/0.4195, allocations: 0 / 0.8126 GB, free: 24 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001234/0.4196, allocations: 330.8 kB / 0.8129 GB, free: 23.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002683/0.4199, allocations: 27.97 kB / 0.8129 GB, free: 23.64 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002986/0.4203, allocations: 59.41 kB / 0.813 GB, free: 23.57 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002702/0.4205, allocations: 31.97 kB / 0.813 GB, free: 23.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.303e-06/0.4206, allocations: 0 / 0.813 GB, free: 23.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0006371/0.4212, allocations: 121.4 kB / 0.8131 GB, free: 23.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.039e-05/0.4213, allocations: 4 kB / 0.8131 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.398e-06/0.4213, allocations: 0 / 0.8131 GB, free: 23.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.193e-05/0.4213, allocations: 8.094 kB / 0.8132 GB, free: 23.4 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002622/0.4216, allocations: 15.92 kB / 0.8132 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.4216, allocations: 4 kB / 0.8132 GB, free: 23.38 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000266/0.4219, allocations: 15.92 kB / 0.8132 GB, free: 23.36 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.274e-05/0.422, allocations: 7.953 kB / 0.8132 GB, free: 23.36 MB / 378.7 MB 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.0002716/0.4223, allocations: 125.8 kB / 0.8133 GB, free: 23.22 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.489e-05/0.4224, allocations: 27.72 kB / 0.8133 GB, free: 23.2 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.552e-05/0.4225, allocations: 17.53 kB / 0.8134 GB, free: 23.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.322e-06/0.4225, allocations: 3.984 kB / 0.8134 GB, free: 23.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.075e-05/0.4226, allocations: 3.984 kB / 0.8134 GB, free: 23.17 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.887e-06/0.4226, allocations: 0 / 0.8134 GB, free: 23.17 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003139/0.4229, allocations: 217.5 kB / 0.8136 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.431e-06/0.4229, allocations: 3.938 kB / 0.8136 GB, free: 22.91 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001467/0.4231, allocations: 15.98 kB / 0.8136 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.237e-06/0.4231, allocations: 4 kB / 0.8136 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.245e-05/0.4232, allocations: 3.938 kB / 0.8136 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.235e-06/0.4232, allocations: 0 / 0.8136 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.567e-06/0.4232, allocations: 3.984 kB / 0.8136 GB, free: 22.88 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005017/0.4237, allocations: 140.8 kB / 0.8137 GB, free: 22.72 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.823e-05/0.4238, allocations: 100.9 kB / 0.8138 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.448e-05/0.4239, allocations: 0 / 0.8138 GB, free: 22.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001777/0.4241, allocations: 11.98 kB / 0.8138 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.017e-05/0.4241, allocations: 7.984 kB / 0.8139 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.9e-05/0.4242, allocations: 4 kB / 0.8139 GB, free: 22.58 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002821/0.4245, allocations: 192.5 kB / 0.814 GB, free: 22.39 MB / 378.7 MB Notification: Performance of sort global known variables: time 8.83e-07/0.4245, allocations: 0 / 0.814 GB, free: 22.39 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005677/0.4251, allocations: 23.91 kB / 0.8141 GB, free: 22.37 MB / 378.7 MB 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.0003238/0.4254, allocations: 119.9 kB / 0.8142 GB, free: 22.25 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0005258/0.426, allocations: 67.89 kB / 0.8142 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.871e-06/0.426, allocations: 3.984 kB / 0.8142 GB, free: 22.18 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002205/0.4262, allocations: 36.17 kB / 0.8143 GB, free: 22.14 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005407/0.4268, allocations: 47.34 kB / 0.8143 GB, free: 22.1 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008159/0.4276, allocations: 310.1 kB / 0.8146 GB, free: 21.77 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002316/0.4279, allocations: 0.7278 MB / 0.8153 GB, free: 21.02 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001304/0.4281, allocations: 24.55 kB / 0.8154 GB, free: 21 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.603e-05/0.4281, allocations: 15.44 kB / 0.8154 GB, free: 20.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.042e-06/0.4282, allocations: 0 / 0.8154 GB, free: 20.98 MB / 378.7 MB Notification: Performance of Templates: time 0.009297/0.4375, allocations: 1.556 MB / 0.8169 GB, free: 19.44 MB / 378.7 MB