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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00137/0.00137, allocations: 92.22 kB / 19.65 MB, free: 276 kB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001622/0.001622, allocations: 169 kB / 23.02 MB, free: 1.551 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.028/1.028, allocations: 177.1 MB / 203.4 MB, free: 5.637 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo): time 0.002582/0.002582, allocations: 230.9 kB / 260.2 MB, free: 12.82 MB / 250.7 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo): time 0.7384/0.7384, allocations: 138.4 MB / 455.2 MB, free: 1.559 MB / 362.7 MB " [Timeout remaining time 179] Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.072e-06/1.072e-06, allocations: 0 / 0.5551 GB, free: 0.5664 MB / 474.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.133e-05/2.24e-05, allocations: 6.25 kB / 0.5551 GB, free: 0.5586 MB / 474.7 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.002074/0.002096, allocations: 1.685 MB / 0.5567 GB, free: 14.86 MB / 490.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007483/0.002844, allocations: 0.6038 MB / 0.5573 GB, free: 14.25 MB / 490.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.285e-05/0.002917, allocations: 7.938 kB / 0.5573 GB, free: 14.24 MB / 490.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001826/0.0031, allocations: 39.59 kB / 0.5574 GB, free: 14.2 MB / 490.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002334/0.003333, allocations: 59.67 kB / 0.5574 GB, free: 14.14 MB / 490.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001703/0.003504, allocations: 79.78 kB / 0.5575 GB, free: 14.07 MB / 490.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001526/0.003656, allocations: 139.5 kB / 0.5576 GB, free: 13.93 MB / 490.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000136/0.003792, allocations: 29.66 kB / 0.5577 GB, free: 13.9 MB / 490.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001593/0.003951, allocations: 75.86 kB / 0.5577 GB, free: 13.82 MB / 490.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.997e-05/0.004031, allocations: 51.81 kB / 0.5578 GB, free: 13.77 MB / 490.7 MB Notification: Performance of NFPackage.collectConstants: time 2.378e-05/0.004055, allocations: 8 kB / 0.5578 GB, free: 13.77 MB / 490.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.329e-05/0.004118, allocations: 35.86 kB / 0.5578 GB, free: 13.73 MB / 490.7 MB Notification: Performance of NFScalarize.scalarize: time 8.629e-05/0.004205, allocations: 47.83 kB / 0.5579 GB, free: 13.68 MB / 490.7 MB Notification: Performance of NFVerifyModel.verify: time 4.193e-05/0.004247, allocations: 31.86 kB / 0.5579 GB, free: 13.65 MB / 490.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001672/0.004414, allocations: 123.5 kB / 0.558 GB, free: 13.53 MB / 490.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.144e-06/0.004416, allocations: 0 / 0.558 GB, free: 13.53 MB / 490.7 MB Notification: Performance of FrontEnd: time 7.21e-07/0.004417, allocations: 0 / 0.558 GB, free: 13.53 MB / 490.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.004421, allocations: 0 / 0.558 GB, free: 13.53 MB / 490.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.0005895/0.00501, allocations: 499.5 kB / 0.5585 GB, free: 13.01 MB / 490.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.522e-05/0.005045, allocations: 12.75 kB / 0.5585 GB, free: 13 MB / 490.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001226/0.005168, allocations: 28.83 kB / 0.5585 GB, free: 12.97 MB / 490.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001974/0.005365, allocations: 188.2 kB / 0.5587 GB, free: 12.76 MB / 490.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.046e-05/0.005376, allocations: 8.375 kB / 0.5587 GB, free: 12.75 MB / 490.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.715e-05/0.005393, allocations: 12.31 kB / 0.5587 GB, free: 12.74 MB / 490.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001666/0.00556, allocations: 138.1 kB / 0.5589 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.00557, allocations: 192 / 0.5589 GB, free: 12.59 MB / 490.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.178e-05/0.005582, allocations: 4.375 kB / 0.5589 GB, free: 12.58 MB / 490.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.005591, allocations: 3.938 kB / 0.5589 GB, free: 12.58 MB / 490.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.632e-05/0.005627, allocations: 15.98 kB / 0.5589 GB, free: 12.56 MB / 490.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003597/0.005987, allocations: 351.5 kB / 0.5592 GB, free: 12.18 MB / 490.7 MB Notification: Performance of preOpt comSubExp (simulation): time 4.119e-05/0.006028, allocations: 27.06 kB / 0.5593 GB, free: 12.14 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.546e-05/0.006054, allocations: 19.73 kB / 0.5593 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.608e-05/0.00607, allocations: 0 / 0.5593 GB, free: 12.12 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001272/0.006197, allocations: 135.8 kB / 0.5594 GB, free: 11.95 MB / 490.7 MB Notification: Performance of pre-optimization done (n=3): time 8.71e-07/0.006198, allocations: 0 / 0.5594 GB, free: 11.95 MB / 490.7 MB Notification: Performance of matching and sorting (n=3): time 0.0001391/0.006337, allocations: 49.61 kB / 0.5595 GB, free: 11.9 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.325e-05/0.00637, allocations: 81.09 kB / 0.5595 GB, free: 11.8 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.006518, allocations: 268.9 kB / 0.5598 GB, free: 11.52 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 1.139e-05/0.00653, allocations: 25.7 kB / 0.5598 GB, free: 11.49 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.006595, allocations: 182.7 kB / 0.56 GB, free: 11.31 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.607e-05/0.006611, allocations: 3.953 kB / 0.56 GB, free: 11.3 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.89e-05/0.00664, allocations: 31.31 kB / 0.56 GB, free: 11.27 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 0.00011/0.00675, allocations: 0.5039 MB / 0.5605 GB, free: 10.75 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.52e-05/0.006765, allocations: 7.938 kB / 0.5605 GB, free: 10.74 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.344e-05/0.006798, allocations: 60.45 kB / 0.5606 GB, free: 10.66 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.712e-05/0.006835, allocations: 35.06 kB / 0.5606 GB, free: 10.61 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.006837, allocations: 0 / 0.5606 GB, free: 10.61 MB / 490.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.277e-05/0.00691, allocations: 65.59 kB / 0.5607 GB, free: 10.54 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.179e-05/0.006922, allocations: 12 kB / 0.5607 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.659e-06/0.006927, allocations: 0 / 0.5607 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.006941, allocations: 0 / 0.5607 GB, free: 10.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.531e-05/0.007006, allocations: 11.98 kB / 0.5607 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/0.007012, allocations: 3.984 kB / 0.5607 GB, free: 10.52 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.392e-05/0.007046, allocations: 7.953 kB / 0.5607 GB, free: 10.51 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.668e-06/0.007055, allocations: 11.92 kB / 0.5607 GB, free: 10.5 MB / 490.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.149e-05/0.007127, allocations: 152.9 kB / 0.5609 GB, free: 10.34 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.68e-05/0.007144, allocations: 19.91 kB / 0.5609 GB, free: 10.32 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.234e-05/0.007176, allocations: 29 kB / 0.5609 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.007177, allocations: 0 / 0.5609 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.876e-06/0.00718, allocations: 0 / 0.5609 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.264e-06/0.007182, allocations: 0 / 0.5609 GB, free: 10.29 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.677e-05/0.007279, allocations: 164.5 kB / 0.5611 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.81e-07/0.00728, allocations: 0 / 0.5611 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.354e-05/0.007303, allocations: 7.984 kB / 0.5611 GB, free: 10.09 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.292e-06/0.007305, allocations: 4 kB / 0.5611 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.931e-06/0.007311, allocations: 0 / 0.5611 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.21e-07/0.007311, allocations: 0 / 0.5611 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.31e-07/0.007312, allocations: 3.938 kB / 0.5611 GB, free: 10.08 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.819e-05/0.00739, allocations: 96.28 kB / 0.5612 GB, free: 9.961 MB / 490.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.067e-05/0.007401, allocations: 15.91 kB / 0.5612 GB, free: 9.945 MB / 490.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.441e-05/0.007415, allocations: 8 kB / 0.5612 GB, free: 9.938 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.68e-05/0.007442, allocations: 7.984 kB / 0.5612 GB, free: 9.93 MB / 490.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.007479, allocations: 3.984 kB / 0.5612 GB, free: 9.926 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.538e-05/0.007494, allocations: 4 kB / 0.5612 GB, free: 9.922 MB / 490.7 MB Notification: Performance of sorting global known variables: time 8.926e-05/0.007584, allocations: 189.8 kB / 0.5614 GB, free: 9.738 MB / 490.7 MB Notification: Performance of sort global known variables: time 5e-08/0.007584, allocations: 0 / 0.5614 GB, free: 9.738 MB / 490.7 MB Notification: Performance of remove unused functions: time 0.0001392/0.007723, allocations: 23.95 kB / 0.5614 GB, free: 9.715 MB / 490.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 (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.0001567/0.007879, allocations: 129.8 kB / 0.5615 GB, free: 9.586 MB / 490.7 MB Notification: Performance of simCode: created initialization part: time 9.113e-05/0.007971, allocations: 31.55 kB / 0.5616 GB, free: 9.551 MB / 490.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.007972, allocations: 0 / 0.5616 GB, free: 9.551 MB / 490.7 MB Notification: Performance of simCode: created simulation system equations: time 2.064e-05/0.007993, allocations: 11.69 kB / 0.5616 GB, free: 9.535 MB / 490.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001973/0.00819, allocations: 45.58 kB / 0.5616 GB, free: 9.488 MB / 490.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00051/0.0087, allocations: 271.2 kB / 0.5619 GB, free: 9.188 MB / 490.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.762e-05/0.008738, allocations: 75.27 kB / 0.562 GB, free: 9.094 MB / 490.7 MB Notification: Performance of simCode: alias equations: time 4.169e-05/0.008779, allocations: 24.55 kB / 0.562 GB, free: 9.07 MB / 490.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.095e-05/0.00881, allocations: 16.48 kB / 0.562 GB, free: 9.055 MB / 490.7 MB Notification: Performance of SimCode: time 4.91e-07/0.008811, allocations: 0 / 0.562 GB, free: 9.055 MB / 490.7 MB Notification: Performance of Templates: time 0.003276/0.01209, allocations: 1.801 MB / 0.5638 GB, free: 7.289 MB / 490.7 MB " [Timeout remaining time 660] make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile [Timeout 660] (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=240 -lv LOG_STATS > BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.8306512888520956]