Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.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.001308/0.001308, allocations: 101.9 kB / 19.73 MB, free: 1.992 MB / 14.72 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.001436/0.001436, allocations: 215.1 kB / 23.03 MB, free: 4.422 MB / 14.72 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.519/1.519, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.215/3.215, allocations: 0.49 GB / 0.7959 GB, free: 35.46 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002102/0.002102, allocations: 69.3 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4046/0.4067, allocations: 176.1 MB / 1.327 GB, free: 1.539 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003262/0.41, allocations: 1.637 MB / 1.328 GB, free: 15.89 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001129/0.4111, allocations: 0.5807 MB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.148e-05/0.4112, allocations: 3.938 kB / 1.329 GB, free: 15.3 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001856/0.4114, allocations: 27.73 kB / 1.329 GB, free: 15.28 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0002682/0.4117, allocations: 67.66 kB / 1.329 GB, free: 15.21 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002168/0.4119, allocations: 75.84 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002127/0.4121, allocations: 135.5 kB / 1.329 GB, free: 15 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.4123, allocations: 37.88 kB / 1.329 GB, free: 14.96 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001874/0.4124, allocations: 75.64 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000117/0.4126, allocations: 55.77 kB / 1.329 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.947e-05/0.4126, allocations: 8 kB / 1.329 GB, free: 14.82 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.816e-05/0.4127, allocations: 39.91 kB / 1.329 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001058/0.4128, allocations: 43.84 kB / 1.329 GB, free: 14.74 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.697e-05/0.4128, allocations: 47.66 kB / 1.329 GB, free: 14.7 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002511/0.4131, allocations: 147.3 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 7.353e-06/0.4131, allocations: 4 kB / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.423e-06/0.4131, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 GB Notification: Performance of Transformations before backend: time 6.773e-06/0.4131, allocations: 0 / 1.329 GB, free: 14.55 MB / 1.029 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.0007094/0.4138, allocations: 405.3 kB / 1.33 GB, free: 14.12 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.4139, allocations: 8.031 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.667e-05/0.4139, allocations: 4.188 kB / 1.33 GB, free: 14.11 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.025e-05/0.4139, allocations: 34.75 kB / 1.33 GB, free: 14.07 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001895/0.4141, allocations: 32.81 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.4146, allocations: 197.8 kB / 1.33 GB, free: 13.82 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.294e-05/0.4146, allocations: 8.375 kB / 1.33 GB, free: 13.81 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.981e-05/0.4146, allocations: 4.375 kB / 1.33 GB, free: 13.8 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003773/0.415, allocations: 166.3 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.031e-05/0.415, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.627e-05/0.415, allocations: 0 / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.229e-05/0.415, allocations: 4 kB / 1.33 GB, free: 13.62 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002461/0.4152, allocations: 63.94 kB / 1.33 GB, free: 13.56 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007086/0.416, allocations: 335.7 kB / 1.331 GB, free: 13.19 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001807/0.4161, allocations: 42.55 kB / 1.331 GB, free: 13.14 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00012/0.4163, allocations: 28.89 kB / 1.331 GB, free: 13.11 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.77e-05/0.4163, allocations: 3.938 kB / 1.331 GB, free: 13.1 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000326/0.4166, allocations: 152.5 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 3.917e-06/0.4166, allocations: 4 kB / 1.331 GB, free: 12.92 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005152/0.4171, allocations: 125.5 kB / 1.331 GB, free: 12.79 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.132e-05/0.4172, allocations: 77.11 kB / 1.331 GB, free: 12.7 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003418/0.4176, allocations: 256.9 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.4176, allocations: 29.7 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001241/0.4177, allocations: 132.1 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.517e-05/0.4177, allocations: 3.953 kB / 1.332 GB, free: 12.26 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.875e-05/0.4178, allocations: 17.72 kB / 1.332 GB, free: 12.23 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002095/0.418, allocations: 326.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.4181, allocations: 23.97 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000147/0.4183, allocations: 77.11 kB / 1.332 GB, free: 11.79 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.4185, allocations: 74.48 kB / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.4185, allocations: 0 / 1.332 GB, free: 11.71 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003215/0.4189, allocations: 101.5 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.493e-05/0.4189, allocations: 15.92 kB / 1.332 GB, free: 11.59 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.428e-06/0.4189, allocations: 3.938 kB / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.106e-05/0.4189, allocations: 0 / 1.332 GB, free: 11.58 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000126/0.419, allocations: 12.08 kB / 1.332 GB, free: 11.57 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.011e-06/0.419, allocations: 7.938 kB / 1.332 GB, free: 11.56 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.4191, allocations: 15.92 kB / 1.332 GB, free: 11.55 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.4192, allocations: 4 kB / 1.332 GB, free: 11.54 MB / 1.029 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.0001229/0.4193, allocations: 126.4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.275e-05/0.4193, allocations: 15.91 kB / 1.332 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.612e-05/0.4194, allocations: 21.28 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.4194, allocations: 4.266 kB / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4194, allocations: 0 / 1.332 GB, free: 11.37 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.569e-06/0.4194, allocations: 3.984 kB / 1.332 GB, free: 11.36 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.4196, allocations: 184.7 kB / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.4196, allocations: 0 / 1.333 GB, free: 11.14 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.18e-05/0.4197, allocations: 11.98 kB / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.653e-06/0.4197, allocations: 0 / 1.333 GB, free: 11.13 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.217e-05/0.4197, allocations: 3.938 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/0.4197, allocations: 3.938 kB / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.373e-06/0.4197, allocations: 0 / 1.333 GB, free: 11.12 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003204/0.42, allocations: 121 kB / 1.333 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.802e-05/0.42, allocations: 15.91 kB / 1.333 GB, free: 10.97 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.562e-05/0.42, allocations: 3.938 kB / 1.333 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.325e-05/0.4201, allocations: 11.98 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.518e-05/0.4202, allocations: 7.984 kB / 1.333 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.757e-05/0.4202, allocations: 4 kB / 1.333 GB, free: 10.94 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002038/0.4204, allocations: 192.5 kB / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.2e-07/0.4204, allocations: 0 / 1.333 GB, free: 10.75 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002374/0.4207, allocations: 23.95 kB / 1.333 GB, free: 10.73 MB / 1.029 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.0009254/0.4216, allocations: 0.6943 MB / 1.334 GB, free: 10.02 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003466/0.4219, allocations: 52.06 kB / 1.334 GB, free: 9.965 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.4219, allocations: 8.062 kB / 1.334 GB, free: 9.957 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001183/0.4221, allocations: 27.91 kB / 1.334 GB, free: 9.93 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003897/0.4224, allocations: 45.61 kB / 1.334 GB, free: 9.887 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002583/0.425, allocations: 1.765 MB / 1.335 GB, free: 8.02 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001311/0.4252, allocations: 106.1 kB / 1.336 GB, free: 7.891 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.601e-05/0.4252, allocations: 20.52 kB / 1.336 GB, free: 7.871 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.078e-05/0.4253, allocations: 47.41 kB / 1.336 GB, free: 7.824 MB / 1.029 GB Notification: Performance of SimCode: time 8.22e-07/0.4253, allocations: 4 kB / 1.336 GB, free: 7.82 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0252/0.4505, allocations: 3.899 MB / 1.339 GB, free: 4.117 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.89/12.34, allocations: 7.188 kB / 1.339 GB, free: 4.113 MB / 1.029 GB " [Timeout remaining time 287] (rm -f Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 19.269371500937268] Failed to read output from testmodel.py, exit status != 0: 12.508905479917303 12.538874156 12.120442722 Calling exit ...