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.001611/0.001611, allocations: 114.8 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.001834/0.001834, allocations: 210.3 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.497/1.497, 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 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.047/3.047, allocations: 0.49 GB / 0.7923 GB, free: 1.309 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.002313/0.002313, allocations: 59.91 kB / 1.149 GB, free: 15.42 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.062/1.065, allocations: 176.1 MB / 1.321 GB, free: 24.73 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002724/1.067, allocations: 1.677 MB / 1.323 GB, free: 23.57 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0008778/1.068, allocations: 0.6211 MB / 1.324 GB, free: 23.13 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.739e-05/1.068, allocations: 6.719 kB / 1.324 GB, free: 23.13 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0001937/1.069, allocations: 29.2 kB / 1.324 GB, free: 23.11 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002392/1.069, allocations: 73.39 kB / 1.324 GB, free: 23.07 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001768/1.069, allocations: 73.72 kB / 1.324 GB, free: 23.03 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001618/1.069, allocations: 131.9 kB / 1.324 GB, free: 22.98 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001473/1.069, allocations: 50.05 kB / 1.324 GB, free: 22.95 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001523/1.069, allocations: 54.73 kB / 1.324 GB, free: 22.92 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001005/1.069, allocations: 66.92 kB / 1.324 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.513e-05/1.07, allocations: 11.72 kB / 1.324 GB, free: 22.89 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 6.804e-05/1.07, allocations: 30.94 kB / 1.324 GB, free: 22.88 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 7.62e-05/1.07, allocations: 50.3 kB / 1.324 GB, free: 22.85 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.744e-05/1.07, allocations: 55.81 kB / 1.324 GB, free: 22.81 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002362/1.07, allocations: 151.8 kB / 1.324 GB, free: 22.74 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.38e-06/1.07, allocations: 6.281 kB / 1.324 GB, free: 22.74 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.443e-06/1.07, allocations: 0 / 1.324 GB, free: 22.74 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.843e-06/1.07, allocations: 0 / 1.324 GB, free: 22.74 MB / 1.061 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.000568/1.071, allocations: 467.9 kB / 1.325 GB, free: 22.31 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.781e-05/1.071, allocations: 19.42 kB / 1.325 GB, free: 22.3 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.749e-05/1.071, allocations: 8.109 kB / 1.325 GB, free: 22.29 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.745e-05/1.071, allocations: 40.8 kB / 1.325 GB, free: 22.25 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/1.071, allocations: 26.97 kB / 1.325 GB, free: 22.24 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002706/1.071, allocations: 250.1 kB / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.342e-05/1.071, allocations: 3.219 kB / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.444e-05/1.071, allocations: 11.31 kB / 1.325 GB, free: 22 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002737/1.071, allocations: 104.6 kB / 1.325 GB, free: 21.95 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.241e-05/1.071, allocations: 3.984 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.355e-05/1.071, allocations: 2.969 kB / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.31e-06/1.071, allocations: 0 / 1.325 GB, free: 21.94 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002285/1.072, allocations: 64.48 kB / 1.325 GB, free: 21.93 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005787/1.072, allocations: 383.4 kB / 1.326 GB, free: 21.61 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/1.072, allocations: 43.05 kB / 1.326 GB, free: 21.58 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001051/1.072, allocations: 29.52 kB / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.865e-05/1.072, allocations: 0 / 1.326 GB, free: 21.57 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002294/1.073, allocations: 106 kB / 1.326 GB, free: 21.49 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.162e-06/1.073, allocations: 3.938 kB / 1.326 GB, free: 21.48 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.000452/1.073, allocations: 123.3 kB / 1.326 GB, free: 21.43 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.481e-05/1.073, allocations: 81.11 kB / 1.326 GB, free: 21.33 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002212/1.073, allocations: 254 kB / 1.326 GB, free: 21.19 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.667e-05/1.073, allocations: 25.7 kB / 1.326 GB, free: 21.16 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.64e-05/1.074, allocations: 138.5 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.82e-05/1.074, allocations: 3.953 kB / 1.327 GB, free: 21.04 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.99e-05/1.074, allocations: 20.16 kB / 1.327 GB, free: 21.02 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 7.336e-05/1.074, allocations: 323.8 kB / 1.327 GB, free: 20.7 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001097/1.074, allocations: 26.11 kB / 1.327 GB, free: 20.69 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001087/1.074, allocations: 55.36 kB / 1.327 GB, free: 20.65 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002028/1.074, allocations: 73.53 kB / 1.327 GB, free: 20.61 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.683e-06/1.074, allocations: 0 / 1.327 GB, free: 20.61 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002638/1.074, allocations: 107.3 kB / 1.327 GB, free: 20.56 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.57e-05/1.074, allocations: 5.25 kB / 1.327 GB, free: 20.56 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/1.074, allocations: 3.938 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/1.074, allocations: 4.094 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000116/1.074, allocations: 10.95 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.23e-06/1.074, allocations: 2.625 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.757e-05/1.075, allocations: 11.25 kB / 1.327 GB, free: 20.55 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.544e-06/1.075, allocations: 0 / 1.327 GB, free: 20.55 MB / 1.061 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 7.661e-05/1.075, allocations: 127.9 kB / 1.327 GB, free: 20.43 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.008e-05/1.075, allocations: 20.58 kB / 1.327 GB, free: 20.42 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.236e-05/1.075, allocations: 21.62 kB / 1.327 GB, free: 20.4 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.325e-06/1.075, allocations: 6.562 kB / 1.327 GB, free: 20.4 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/1.075, allocations: 4 kB / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.795e-06/1.075, allocations: 0 / 1.327 GB, free: 20.39 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001375/1.075, allocations: 215.6 kB / 1.328 GB, free: 20.19 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.82e-07/1.075, allocations: 3.938 kB / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.855e-05/1.075, allocations: 8.953 kB / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/1.075, allocations: 2.719 kB / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.136e-05/1.075, allocations: 10.89 kB / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-06/1.075, allocations: 0 / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/1.075, allocations: 0 / 1.328 GB, free: 20.18 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002739/1.075, allocations: 123.8 kB / 1.328 GB, free: 20.09 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 3.802e-05/1.075, allocations: 88.73 kB / 1.328 GB, free: 19.99 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.74e-05/1.075, allocations: 8.734 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.638e-05/1.075, allocations: 8.453 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.531e-05/1.075, allocations: 6.438 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.823e-05/1.075, allocations: 12.02 kB / 1.328 GB, free: 19.98 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001962/1.076, allocations: 188.3 kB / 1.328 GB, free: 19.87 MB / 1.061 GB Notification: Performance of sort global known variables: time 7.1e-08/1.076, allocations: 0 / 1.328 GB, free: 19.87 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002539/1.076, allocations: 33.86 kB / 1.328 GB, free: 19.85 MB / 1.061 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.0006246/1.077, allocations: 0.6781 MB / 1.329 GB, free: 19.23 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003152/1.077, allocations: 55.72 kB / 1.329 GB, free: 19.22 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 3.467e-06/1.077, allocations: 8.703 kB / 1.329 GB, free: 19.21 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001188/1.077, allocations: 27.58 kB / 1.329 GB, free: 19.21 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003081/1.077, allocations: 42.47 kB / 1.329 GB, free: 19.2 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002169/1.079, allocations: 1.758 MB / 1.331 GB, free: 17.85 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001667/1.08, allocations: 0.7253 MB / 1.331 GB, free: 17.14 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.116e-05/1.08, allocations: 21.84 kB / 1.331 GB, free: 17.14 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.884e-05/1.08, allocations: 48.86 kB / 1.331 GB, free: 17.1 MB / 1.061 GB Notification: Performance of SimCode: time 4.7e-07/1.08, allocations: 0 / 1.331 GB, free: 17.1 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02325/1.103, allocations: 3.693 MB / 1.335 GB, free: 16.49 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.88/9.983, allocations: 12.61 kB / 1.335 GB, free: 16.48 MB / 1.061 GB " [Timeout remaining time 290] (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: 16.46172615903197] Failed to read output from testmodel.py, exit status != 0: 10.107747024972923 10.126023351 9.05230063 Calling exit ...