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.001469/0.001469, allocations: 101.5 kB / 19.73 MB, free: 2.23 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.001822/0.001822, allocations: 217.5 kB / 23.04 MB, free: 5.074 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.47/1.47, allocations: 230.6 MB / 256.8 MB, free: 7.957 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.219/3.219, allocations: 0.49 GB / 0.7959 GB, free: 33.48 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.002049/0.002049, allocations: 65.11 kB / 1.155 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3938/0.3958, allocations: 176.1 MB / 1.327 GB, free: 1.992 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.005116/0.4009, allocations: 1.695 MB / 1.328 GB, free: 296 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.002041/0.403, allocations: 0.6195 MB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001523/0.4031, allocations: 3.938 kB / 1.329 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0002625/0.4034, allocations: 23.8 kB / 1.329 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0004959/0.4039, allocations: 72.78 kB / 1.329 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003895/0.4043, allocations: 79.84 kB / 1.329 GB, free: 15.49 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000476/0.4048, allocations: 131.5 kB / 1.329 GB, free: 15.36 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002457/0.405, allocations: 45.81 kB / 1.329 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002929/0.4053, allocations: 63.7 kB / 1.329 GB, free: 15.25 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.4055, allocations: 59.7 kB / 1.329 GB, free: 15.19 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 3.928e-05/0.4055, allocations: 8 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0001161/0.4057, allocations: 31.98 kB / 1.329 GB, free: 15.15 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001599/0.4058, allocations: 51.83 kB / 1.329 GB, free: 15.1 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.0001096/0.4059, allocations: 59.59 kB / 1.33 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0003812/0.4063, allocations: 151.2 kB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 8.096e-06/0.4063, allocations: 4 kB / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.413e-06/0.4063, allocations: 0 / 1.33 GB, free: 14.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.395e-06/0.4063, allocations: 0 / 1.33 GB, free: 14.89 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.0009324/0.4073, allocations: 397.3 kB / 1.33 GB, free: 14.47 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 5.284e-05/0.4073, allocations: 12.03 kB / 1.33 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.726e-05/0.4073, allocations: 4.188 kB / 1.33 GB, free: 14.45 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.85e-05/0.4074, allocations: 42.69 kB / 1.33 GB, free: 14.4 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002464/0.4076, allocations: 24.83 kB / 1.33 GB, free: 14.38 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005552/0.4082, allocations: 193.9 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.255e-06/0.4082, allocations: 384 / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.363e-05/0.4082, allocations: 8.375 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003916/0.4086, allocations: 113.6 kB / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.4086, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.655e-05/0.4086, allocations: 0 / 1.33 GB, free: 14.04 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4087, allocations: 7.938 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003279/0.409, allocations: 69.06 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009075/0.4099, allocations: 347.6 kB / 1.331 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001987/0.4101, allocations: 38.55 kB / 1.331 GB, free: 13.54 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001529/0.4102, allocations: 28.89 kB / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.763e-05/0.4103, allocations: 0 / 1.331 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003254/0.4106, allocations: 105 kB / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.4106, allocations: 0 / 1.331 GB, free: 13.38 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0005878/0.4112, allocations: 121.4 kB / 1.331 GB, free: 13.26 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.817e-05/0.4112, allocations: 81.11 kB / 1.331 GB, free: 13.16 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004674/0.4117, allocations: 256.9 kB / 1.331 GB, free: 12.89 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 3.662e-05/0.4117, allocations: 25.7 kB / 1.331 GB, free: 12.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001188/0.4119, allocations: 132.1 kB / 1.332 GB, free: 12.73 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.611e-05/0.4119, allocations: 7.953 kB / 1.332 GB, free: 12.72 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.015e-05/0.4119, allocations: 9.719 kB / 1.332 GB, free: 12.71 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001971/0.4121, allocations: 338.8 kB / 1.332 GB, free: 12.37 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001507/0.4123, allocations: 19.98 kB / 1.332 GB, free: 12.35 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000171/0.4125, allocations: 51.41 kB / 1.332 GB, free: 12.29 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003005/0.4128, allocations: 74.48 kB / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.567e-06/0.4128, allocations: 0 / 1.332 GB, free: 12.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004398/0.4132, allocations: 109.4 kB / 1.332 GB, free: 12.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.33e-05/0.4132, allocations: 8 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.658e-06/0.4132, allocations: 3.938 kB / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.4132, allocations: 0 / 1.332 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001516/0.4134, allocations: 11.98 kB / 1.332 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.4134, allocations: 8.094 kB / 1.332 GB, free: 12.06 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000127/0.4135, allocations: 12.2 kB / 1.332 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.187e-05/0.4135, allocations: 7.938 kB / 1.332 GB, free: 12.04 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.0001573/0.4137, allocations: 125.8 kB / 1.332 GB, free: 11.91 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.765e-05/0.4138, allocations: 19.89 kB / 1.332 GB, free: 11.89 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.359e-05/0.4138, allocations: 25.27 kB / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.885e-06/0.4138, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.4138, allocations: 0 / 1.332 GB, free: 11.86 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.481e-06/0.4138, allocations: 8 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002524/0.4141, allocations: 188.6 kB / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.883e-06/0.4141, allocations: 0 / 1.333 GB, free: 11.62 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001028/0.4142, allocations: 11.98 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.637e-06/0.4142, allocations: 0 / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.594e-05/0.4142, allocations: 7.938 kB / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.532e-06/0.4142, allocations: 0 / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.323e-06/0.4142, allocations: 0 / 1.333 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000415/0.4146, allocations: 128.9 kB / 1.333 GB, free: 11.46 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.826e-05/0.4147, allocations: 11.91 kB / 1.333 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.449e-05/0.4147, allocations: 7.938 kB / 1.333 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001247/0.4148, allocations: 7.984 kB / 1.333 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.746e-05/0.4149, allocations: 11.98 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.493e-05/0.4149, allocations: 4 kB / 1.333 GB, free: 11.42 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000206/0.4151, allocations: 188.5 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.4151, allocations: 4 kB / 1.333 GB, free: 11.23 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002347/0.4153, allocations: 23.95 kB / 1.333 GB, free: 11.21 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.0008714/0.4162, allocations: 0.6923 MB / 1.334 GB, free: 10.49 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0002926/0.4165, allocations: 59.88 kB / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.395e-06/0.4165, allocations: 0 / 1.334 GB, free: 10.43 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001158/0.4166, allocations: 28.17 kB / 1.334 GB, free: 10.41 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003059/0.4169, allocations: 44.89 kB / 1.334 GB, free: 10.37 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002507/0.4194, allocations: 1.757 MB / 1.335 GB, free: 8.508 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003756/0.4198, allocations: 0.7275 MB / 1.336 GB, free: 7.754 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.995e-05/0.4199, allocations: 20.41 kB / 1.336 GB, free: 7.734 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.853e-05/0.42, allocations: 47.42 kB / 1.336 GB, free: 7.688 MB / 1.029 GB Notification: Performance of SimCode: time 7.51e-07/0.42, allocations: 0 / 1.336 GB, free: 7.688 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02749/0.4475, allocations: 3.781 MB / 1.34 GB, free: 4.078 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.86/12.31, allocations: 8.469 kB / 1.34 GB, free: 4.074 MB / 1.029 GB " [Timeout remaining time 288] (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.034643467050046] Failed to read output from testmodel.py, exit status != 0: 12.476859599002637 12.503563386 12.09199504 Calling exit ...