Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.001739/0.001739, allocations: 117.1 kB / 17.16 MB, free: 5.895 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.002059/0.002059, allocations: 215 kB / 20.13 MB, free: 2.949 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.52/1.52, allocations: 230.6 MB / 253.5 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.796/2.796, allocations: 476.7 MB / 0.7678 GB, free: 9.375 MB / 0.6075 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_11_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.002017/0.002017, allocations: 63.91 kB / 1.113 GB, free: 15.88 MB / 0.8575 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8934/0.8954, allocations: 169.9 MB / 1.279 GB, free: 11.72 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003126/0.8986, allocations: 1.686 MB / 1.281 GB, free: 10.55 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.00115/0.8997, allocations: 0.6187 MB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001016/0.8998, allocations: 2.625 kB / 1.281 GB, free: 10.12 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001806/0.9, allocations: 23.92 kB / 1.281 GB, free: 10.1 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0003318/0.9003, allocations: 76.3 kB / 1.281 GB, free: 10.05 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002832/0.9006, allocations: 70.38 kB / 1.281 GB, free: 10.02 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002807/0.9009, allocations: 139.4 kB / 1.281 GB, free: 9.961 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.9011, allocations: 36.14 kB / 1.281 GB, free: 9.941 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002069/0.9013, allocations: 67 kB / 1.282 GB, free: 9.91 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001289/0.9014, allocations: 60.31 kB / 1.282 GB, free: 9.883 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 3.266e-05/0.9014, allocations: 12.16 kB / 1.282 GB, free: 9.879 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001167/0.9015, allocations: 28.27 kB / 1.282 GB, free: 9.871 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001153/0.9017, allocations: 48.94 kB / 1.282 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 9.565e-05/0.9017, allocations: 56.09 kB / 1.282 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0003479/0.9021, allocations: 155 kB / 1.282 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.33e-06/0.9021, allocations: 0.5 kB / 1.282 GB, free: 9.738 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.332e-06/0.9021, allocations: 3.938 kB / 1.282 GB, free: 9.734 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.499e-05/0.9021, allocations: 0.5312 kB / 1.282 GB, free: 9.734 MB / 0.9981 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.0009614/0.9031, allocations: 488 kB / 1.282 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 6.888e-05/0.9031, allocations: 9.75 kB / 1.282 GB, free: 9.285 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.715e-05/0.9032, allocations: 5.75 kB / 1.282 GB, free: 9.281 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.385e-05/0.9032, allocations: 38.61 kB / 1.282 GB, free: 9.238 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003025/0.9036, allocations: 26.17 kB / 1.282 GB, free: 9.23 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006006/0.9042, allocations: 240.8 kB / 1.283 GB, free: 9 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.46e-05/0.9042, allocations: 10.94 kB / 1.283 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.9042, allocations: 4.062 kB / 1.283 GB, free: 8.992 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004185/0.9046, allocations: 108 kB / 1.283 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.122e-05/0.9046, allocations: 0 / 1.283 GB, free: 8.941 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.9047, allocations: 6.125 kB / 1.283 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.757e-06/0.9047, allocations: 1.281 kB / 1.283 GB, free: 8.938 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002822/0.905, allocations: 63.7 kB / 1.283 GB, free: 8.926 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008553/0.9058, allocations: 389 kB / 1.283 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001796/0.906, allocations: 39.45 kB / 1.283 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.9061, allocations: 28.33 kB / 1.283 GB, free: 8.562 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.959e-05/0.9061, allocations: 5.281 kB / 1.283 GB, free: 8.559 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002978/0.9064, allocations: 96.02 kB / 1.283 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 2.044e-06/0.9064, allocations: 0.5 kB / 1.283 GB, free: 8.484 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0005681/0.907, allocations: 131.4 kB / 1.284 GB, free: 8.422 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.847e-05/0.9071, allocations: 83.11 kB / 1.284 GB, free: 8.324 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003604/0.9075, allocations: 256.7 kB / 1.284 GB, free: 8.18 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 2.483e-05/0.9075, allocations: 25.7 kB / 1.284 GB, free: 8.148 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.9076, allocations: 130.8 kB / 1.284 GB, free: 8.031 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 2.442e-05/0.9076, allocations: 6.188 kB / 1.284 GB, free: 8.027 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.917e-05/0.9077, allocations: 18.41 kB / 1.284 GB, free: 8.008 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001654/0.9079, allocations: 328.8 kB / 1.284 GB, free: 7.688 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001221/0.908, allocations: 24.84 kB / 1.284 GB, free: 7.684 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001388/0.9081, allocations: 50.95 kB / 1.284 GB, free: 7.645 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002556/0.9084, allocations: 69.92 kB / 1.284 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.9084, allocations: 0 / 1.284 GB, free: 7.609 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003229/0.9087, allocations: 101.6 kB / 1.285 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.987e-05/0.9087, allocations: 6.594 kB / 1.285 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.936e-06/0.9087, allocations: 3.938 kB / 1.285 GB, free: 7.555 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.781e-05/0.9088, allocations: 5.531 kB / 1.285 GB, free: 7.551 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001235/0.9089, allocations: 16.12 kB / 1.285 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.9089, allocations: 1.797 kB / 1.285 GB, free: 7.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.909, allocations: 13.91 kB / 1.285 GB, free: 7.543 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.395e-05/0.909, allocations: 6.25 kB / 1.285 GB, free: 7.539 MB / 0.9981 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.0001385/0.9091, allocations: 126.2 kB / 1.285 GB, free: 7.422 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.629e-05/0.9092, allocations: 20.19 kB / 1.285 GB, free: 7.41 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.613e-05/0.9092, allocations: 29.91 kB / 1.285 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.647e-06/0.9092, allocations: 1.219 kB / 1.285 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/0.9093, allocations: 0.6094 kB / 1.285 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.9093, allocations: 1.281 kB / 1.285 GB, free: 7.383 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002458/0.9095, allocations: 213.5 kB / 1.285 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.9095, allocations: 0 / 1.285 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.596e-05/0.9096, allocations: 11.69 kB / 1.285 GB, free: 7.176 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.295e-06/0.9096, allocations: 3.938 kB / 1.285 GB, free: 7.172 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.597e-05/0.9096, allocations: 9.984 kB / 1.285 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9096, allocations: 0 / 1.285 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.9096, allocations: 0.75 kB / 1.285 GB, free: 7.164 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003446/0.91, allocations: 125.7 kB / 1.285 GB, free: 7.078 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.954e-05/0.91, allocations: 89.25 kB / 1.285 GB, free: 6.977 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.834e-05/0.9101, allocations: 6.984 kB / 1.285 GB, free: 6.973 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.917e-05/0.9101, allocations: 12.45 kB / 1.285 GB, free: 6.969 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.563e-05/0.9102, allocations: 7.812 kB / 1.285 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.9102, allocations: 6 kB / 1.285 GB, free: 6.965 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0002125/0.9104, allocations: 192 kB / 1.285 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of sort global known variables: time 6e-08/0.9104, allocations: 0 / 1.285 GB, free: 6.859 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002364/0.9107, allocations: 25.89 kB / 1.285 GB, free: 6.852 MB / 0.9981 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.0007993/0.9115, allocations: 0.6849 MB / 1.286 GB, free: 6.227 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003077/0.9118, allocations: 57.78 kB / 1.286 GB, free: 6.215 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 5.029e-06/0.9118, allocations: 5.562 kB / 1.286 GB, free: 6.211 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001202/0.9119, allocations: 27.11 kB / 1.286 GB, free: 6.207 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003194/0.9122, allocations: 43.84 kB / 1.286 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002414/0.9146, allocations: 1.765 MB / 1.288 GB, free: 4.836 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003617/0.915, allocations: 0.7205 MB / 1.289 GB, free: 4.137 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 9.051e-05/0.9151, allocations: 20.28 kB / 1.289 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.587e-05/0.9152, allocations: 43.22 kB / 1.289 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of SimCode: time 7.02e-07/0.9152, allocations: 0 / 1.289 GB, free: 4.102 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02191/0.9371, allocations: 3.699 MB / 1.292 GB, free: 3.484 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.7/9.637, allocations: 11.77 kB / 1.292 GB, free: 3.48 MB / 0.9981 GB " [Timeout remaining time 290] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] [Calling os._exit(0), Time elapsed: 15.788119152013678] Failed to read output from testmodel.py, exit status != 0: 9.768566847022157 9.788334111 8.882156023 Calling exit ...