Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.001296/0.001296, allocations: 117.4 kB / 17.17 MB, free: 5.977 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.00137/0.00137, allocations: 214.3 kB / 20.13 MB, free: 3.035 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.647/1.647, allocations: 230.6 MB / 253.5 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.078/3.078, allocations: 0.5003 GB / 0.8026 GB, free: 6.762 MB / 0.6387 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 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: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_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.003167/0.003167, allocations: 63.91 kB / 1.165 GB, free: 0.5703 MB / 0.9356 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.02/1.023, allocations: 178.9 MB / 1.34 GB, free: 16.3 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002836/1.026, allocations: 1.677 MB / 1.342 GB, free: 15.13 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.0009516/1.027, allocations: 0.6196 MB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.77e-05/1.027, allocations: 6.5 kB / 1.342 GB, free: 14.7 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.000177/1.027, allocations: 33.16 kB / 1.342 GB, free: 14.67 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0002369/1.027, allocations: 60.48 kB / 1.342 GB, free: 14.64 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.000213/1.028, allocations: 78.89 kB / 1.343 GB, free: 14.6 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0001959/1.028, allocations: 131.7 kB / 1.343 GB, free: 14.54 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/1.028, allocations: 36.05 kB / 1.343 GB, free: 14.52 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001679/1.028, allocations: 66.72 kB / 1.343 GB, free: 14.49 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001065/1.028, allocations: 69.53 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 2.492e-05/1.028, allocations: 6.906 kB / 1.343 GB, free: 14.46 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 7.507e-05/1.028, allocations: 28.41 kB / 1.343 GB, free: 14.45 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 8.328e-05/1.028, allocations: 53.09 kB / 1.343 GB, free: 14.42 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 5.492e-05/1.028, allocations: 56.75 kB / 1.343 GB, free: 14.38 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.0002255/1.029, allocations: 149.1 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 5.571e-06/1.029, allocations: 2.109 kB / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/1.029, allocations: 0 / 1.343 GB, free: 14.32 MB / 1.061 GB Notification: Performance of Transformations before backend: time 6.292e-06/1.029, allocations: 0 / 1.343 GB, free: 14.32 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.0005743/1.029, allocations: 486.1 kB / 1.344 GB, free: 13.87 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 3.851e-05/1.029, allocations: 8.969 kB / 1.344 GB, free: 13.87 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.744e-05/1.029, allocations: 1.969 kB / 1.344 GB, free: 13.87 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.741e-05/1.029, allocations: 42.19 kB / 1.344 GB, free: 13.82 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001585/1.029, allocations: 30.19 kB / 1.344 GB, free: 13.81 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002667/1.03, allocations: 240.8 kB / 1.344 GB, free: 13.58 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.36e-05/1.03, allocations: 11.55 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/1.03, allocations: 4.281 kB / 1.344 GB, free: 13.57 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002823/1.03, allocations: 106.6 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.102e-05/1.03, allocations: 0 / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.559e-05/1.03, allocations: 5.938 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.691e-06/1.03, allocations: 1.375 kB / 1.344 GB, free: 13.52 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002429/1.03, allocations: 63.92 kB / 1.344 GB, free: 13.51 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005763/1.031, allocations: 388.7 kB / 1.344 GB, free: 13.18 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001457/1.031, allocations: 36.36 kB / 1.344 GB, free: 13.16 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001147/1.031, allocations: 32.95 kB / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.249e-05/1.031, allocations: 0 / 1.344 GB, free: 13.14 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002297/1.031, allocations: 105.2 kB / 1.345 GB, free: 13.06 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 9.12e-07/1.031, allocations: 0 / 1.345 GB, free: 13.06 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004816/1.032, allocations: 123.3 kB / 1.345 GB, free: 13.01 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.307e-05/1.032, allocations: 78.52 kB / 1.345 GB, free: 12.91 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000261/1.032, allocations: 260.2 kB / 1.345 GB, free: 12.77 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 1.333e-05/1.032, allocations: 26.77 kB / 1.345 GB, free: 12.73 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 6.27e-05/1.032, allocations: 131.5 kB / 1.345 GB, free: 12.62 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 1.759e-05/1.032, allocations: 5.734 kB / 1.345 GB, free: 12.61 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.67e-05/1.032, allocations: 22.47 kB / 1.345 GB, free: 12.59 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 6.558e-05/1.032, allocations: 333 kB / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/1.032, allocations: 19.73 kB / 1.346 GB, free: 12.27 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001194/1.033, allocations: 51.08 kB / 1.346 GB, free: 12.23 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002217/1.033, allocations: 69.23 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.726e-06/1.033, allocations: 0.7031 kB / 1.346 GB, free: 12.19 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002813/1.033, allocations: 110.2 kB / 1.346 GB, free: 12.13 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.53e-05/1.033, allocations: 10.88 kB / 1.346 GB, free: 12.13 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.37e-06/1.033, allocations: 5.281 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.678e-05/1.033, allocations: 2.312 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/1.033, allocations: 14.83 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/1.033, allocations: 1.75 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.338e-05/1.033, allocations: 11.78 kB / 1.346 GB, free: 12.12 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.669e-06/1.033, allocations: 1.5 kB / 1.346 GB, free: 12.12 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 8.363e-05/1.033, allocations: 127.6 kB / 1.346 GB, free: 12 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.016e-05/1.033, allocations: 24.3 kB / 1.346 GB, free: 11.98 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.678e-05/1.034, allocations: 25.5 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.435e-06/1.034, allocations: 2.656 kB / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.967e-06/1.034, allocations: 0 / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.154e-06/1.034, allocations: 0 / 1.346 GB, free: 11.97 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001482/1.034, allocations: 218.1 kB / 1.346 GB, free: 11.76 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.42e-07/1.034, allocations: 0 / 1.346 GB, free: 11.76 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.43e-05/1.034, allocations: 12.2 kB / 1.346 GB, free: 11.76 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.623e-06/1.034, allocations: 0 / 1.346 GB, free: 11.76 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.096e-05/1.034, allocations: 4.453 kB / 1.346 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/1.034, allocations: 5.312 kB / 1.346 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/1.034, allocations: 0.75 kB / 1.346 GB, free: 11.75 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/1.034, allocations: 121.8 kB / 1.346 GB, free: 11.67 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 4.103e-05/1.034, allocations: 89.41 kB / 1.346 GB, free: 11.57 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/1.034, allocations: 5.406 kB / 1.346 GB, free: 11.56 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.138e-05/1.034, allocations: 17.83 kB / 1.346 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.18e-05/1.034, allocations: 3.703 kB / 1.346 GB, free: 11.55 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.361e-05/1.034, allocations: 5.609 kB / 1.346 GB, free: 11.55 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0001659/1.034, allocations: 192.4 kB / 1.347 GB, free: 11.45 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.1e-07/1.034, allocations: 0 / 1.347 GB, free: 11.45 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002311/1.035, allocations: 26.47 kB / 1.347 GB, free: 11.44 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.0006066/1.035, allocations: 0.6881 MB / 1.347 GB, free: 10.8 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0003091/1.036, allocations: 54.34 kB / 1.347 GB, free: 10.8 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.104e-06/1.036, allocations: 0 / 1.347 GB, free: 10.8 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001233/1.036, allocations: 32.27 kB / 1.347 GB, free: 10.79 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003076/1.036, allocations: 41.55 kB / 1.347 GB, free: 10.77 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/1.038, allocations: 1.762 MB / 1.349 GB, free: 9.418 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001844/1.038, allocations: 0.7272 MB / 1.35 GB, free: 8.711 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.95e-05/1.038, allocations: 19.2 kB / 1.35 GB, free: 8.707 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/1.039, allocations: 43.36 kB / 1.35 GB, free: 8.676 MB / 1.061 GB Notification: Performance of SimCode: time 3.01e-07/1.039, allocations: 0 / 1.35 GB, free: 8.676 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02223/1.061, allocations: 3.703 MB / 1.354 GB, free: 8.062 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.716/9.776, allocations: 9.922 kB / 1.354 GB, free: 8.059 MB / 1.061 GB " [Timeout remaining time 290] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 840.0] [Calling os._exit(0), Time elapsed: 16.59853567101527] Failed to read output from testmodel.py, exit status != 0: 9.90505928901257 9.919937812 8.88828238 Calling exit ...