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.00135/0.00135, allocations: 106.4 kB / 18.94 MB, free: 2.938 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.001637/0.001637, allocations: 212.5 kB / 22.25 MB, free: 5.152 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.469/1.469, allocations: 230.6 MB / 256 MB, free: 7.977 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.295/3.295, allocations: 0.505 GB / 0.8101 GB, free: 22 MB / 0.6231 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",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.00202/0.00202, allocations: 75.11 kB / 1.177 GB, free: 17.07 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3396, allocations: 180.2 MB / 1.353 GB, free: 8.414 MB / 1.045 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003084/0.3427, allocations: 1.681 MB / 1.354 GB, free: 6.723 MB / 1.045 GB Notification: Performance of NFInst.instExpressions: time 0.001218/0.3439, allocations: 0.6277 MB / 1.355 GB, free: 6.09 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001078/0.344, allocations: 7.938 kB / 1.355 GB, free: 6.082 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.0002042/0.3442, allocations: 27.73 kB / 1.355 GB, free: 6.055 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.0002791/0.3445, allocations: 67.73 kB / 1.355 GB, free: 5.988 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.3447, allocations: 67.84 kB / 1.355 GB, free: 5.922 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.0002362/0.345, allocations: 139.5 kB / 1.355 GB, free: 5.785 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001514/0.3451, allocations: 37.89 kB / 1.355 GB, free: 5.746 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001838/0.3453, allocations: 71.7 kB / 1.355 GB, free: 5.676 MB / 1.045 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001261/0.3454, allocations: 63.69 kB / 1.356 GB, free: 5.613 MB / 1.045 GB Notification: Performance of NFPackage.collectConstants: time 2.724e-05/0.3455, allocations: 8 kB / 1.356 GB, free: 5.605 MB / 1.045 GB Notification: Performance of NFFlatten.collectFunctions: time 7.852e-05/0.3456, allocations: 20 kB / 1.356 GB, free: 5.586 MB / 1.045 GB Notification: Performance of NFScalarize.scalarize: time 9.632e-05/0.3456, allocations: 55.83 kB / 1.356 GB, free: 5.531 MB / 1.045 GB Notification: Performance of NFVerifyModel.verify: time 7.604e-05/0.3457, allocations: 63.53 kB / 1.356 GB, free: 5.469 MB / 1.045 GB Notification: Performance of NFConvertDAE.convert: time 0.0002432/0.346, allocations: 143.3 kB / 1.356 GB, free: 5.328 MB / 1.045 GB Notification: Performance of FrontEnd - DAE generated: time 4.309e-06/0.346, allocations: 4 kB / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of FrontEnd: time 1.252e-06/0.346, allocations: 0 / 1.356 GB, free: 5.324 MB / 1.045 GB Notification: Performance of Transformations before backend: time 5.19e-06/0.346, allocations: 0 / 1.356 GB, free: 5.324 MB / 1.045 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.0006632/0.3466, allocations: 405.2 kB / 1.356 GB, free: 4.898 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 3.806e-05/0.3467, allocations: 8.031 kB / 1.356 GB, free: 4.891 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.704e-05/0.3467, allocations: 42.75 kB / 1.356 GB, free: 4.84 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001858/0.3469, allocations: 28.78 kB / 1.356 GB, free: 4.812 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.3472, allocations: 190.1 kB / 1.356 GB, free: 4.602 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.247e-06/0.3472, allocations: 384 / 1.356 GB, free: 4.602 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.456e-05/0.3473, allocations: 4.375 kB / 1.356 GB, free: 4.598 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002971/0.3476, allocations: 118.5 kB / 1.357 GB, free: 4.477 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.855e-06/0.3476, allocations: 4 kB / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.231e-05/0.3476, allocations: 0 / 1.357 GB, free: 4.473 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.659e-06/0.3476, allocations: 4 kB / 1.357 GB, free: 4.469 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002286/0.3478, allocations: 63.94 kB / 1.357 GB, free: 4.406 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006192/0.3484, allocations: 351.6 kB / 1.357 GB, free: 4.02 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001416/0.3486, allocations: 42.55 kB / 1.357 GB, free: 3.969 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001084/0.3487, allocations: 24.91 kB / 1.357 GB, free: 3.941 MB / 1.045 GB Notification: Performance of preOpt evalFunc (simulation): time 1.757e-05/0.3487, allocations: 4 kB / 1.357 GB, free: 3.938 MB / 1.045 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002543/0.349, allocations: 105 kB / 1.357 GB, free: 3.816 MB / 1.045 GB Notification: Performance of pre-optimization done (n=3): time 1.453e-06/0.349, allocations: 3.938 kB / 1.357 GB, free: 3.812 MB / 1.045 GB Notification: Performance of matching and sorting (n=3): time 0.0004453/0.3494, allocations: 125.5 kB / 1.357 GB, free: 3.684 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.528e-05/0.3495, allocations: 77.11 kB / 1.357 GB, free: 3.59 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002857/0.3497, allocations: 252.9 kB / 1.358 GB, free: 3.332 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.3498, allocations: 29.7 kB / 1.358 GB, free: 3.297 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 9.593e-05/0.3499, allocations: 128.1 kB / 1.358 GB, free: 3.168 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 2.27e-05/0.3499, allocations: 7.953 kB / 1.358 GB, free: 3.16 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.274e-05/0.3499, allocations: 17.7 kB / 1.358 GB, free: 3.137 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 0.0001603/0.3501, allocations: 326.8 kB / 1.358 GB, free: 2.809 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001583/0.3503, allocations: 23.97 kB / 1.358 GB, free: 2.785 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.3504, allocations: 55.34 kB / 1.358 GB, free: 2.719 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002132/0.3506, allocations: 62.53 kB / 1.358 GB, free: 2.648 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.126e-06/0.3506, allocations: 0 / 1.358 GB, free: 2.648 MB / 1.045 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003226/0.3509, allocations: 113.5 kB / 1.358 GB, free: 2.531 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.73e-05/0.351, allocations: 4 kB / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.351, allocations: 0 / 1.358 GB, free: 2.527 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.595e-05/0.351, allocations: 3.938 kB / 1.358 GB, free: 2.523 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001134/0.3511, allocations: 15.92 kB / 1.358 GB, free: 2.508 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.083e-05/0.3511, allocations: 11.92 kB / 1.358 GB, free: 2.496 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.074e-05/0.3512, allocations: 12.03 kB / 1.358 GB, free: 2.484 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.263e-06/0.3512, allocations: 4 kB / 1.358 GB, free: 2.48 MB / 1.045 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.0001217/0.3513, allocations: 134 kB / 1.359 GB, free: 2.34 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.451e-05/0.3514, allocations: 23.84 kB / 1.359 GB, free: 2.316 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.431e-05/0.3514, allocations: 21.27 kB / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.033e-06/0.3514, allocations: 0 / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-06/0.3514, allocations: 0 / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.144e-06/0.3514, allocations: 0 / 1.359 GB, free: 2.293 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001945/0.3516, allocations: 188.7 kB / 1.359 GB, free: 2.066 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.133e-06/0.3516, allocations: 4 kB / 1.359 GB, free: 2.062 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.3517, allocations: 11.98 kB / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/0.3517, allocations: 0 / 1.359 GB, free: 2.051 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.051e-05/0.3517, allocations: 3.938 kB / 1.359 GB, free: 2.047 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.737e-06/0.3517, allocations: 4 kB / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.3517, allocations: 0 / 1.359 GB, free: 2.043 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003113/0.352, allocations: 128.9 kB / 1.359 GB, free: 1.898 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 3.25e-05/0.352, allocations: 11.91 kB / 1.359 GB, free: 1.887 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.858e-05/0.3521, allocations: 7.922 kB / 1.359 GB, free: 1.879 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.244e-05/0.3522, allocations: 7.984 kB / 1.359 GB, free: 1.871 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.248e-05/0.3522, allocations: 4 kB / 1.359 GB, free: 1.867 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.881e-05/0.3522, allocations: 8 kB / 1.359 GB, free: 1.859 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.0002022/0.3524, allocations: 188.5 kB / 1.359 GB, free: 1.672 MB / 1.045 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3524, allocations: 0 / 1.359 GB, free: 1.672 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.0002352/0.3527, allocations: 27.89 kB / 1.359 GB, free: 1.645 MB / 1.045 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.0007739/0.3534, allocations: 0.6885 MB / 1.36 GB, free: 0.9336 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.0002959/0.3537, allocations: 63.81 kB / 1.36 GB, free: 0.8711 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.3537, allocations: 0 / 1.36 GB, free: 0.8711 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.3539, allocations: 27.97 kB / 1.36 GB, free: 0.8438 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.3542, allocations: 51.39 kB / 1.36 GB, free: 0.7969 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0024/0.3566, allocations: 1.765 MB / 1.362 GB, free: 14.93 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003489/0.3569, allocations: 0.7198 MB / 1.362 GB, free: 14.19 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 9.2e-05/0.357, allocations: 20.34 kB / 1.362 GB, free: 14.17 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.596e-05/0.3571, allocations: 47.41 kB / 1.362 GB, free: 14.12 MB / 1.061 GB Notification: Performance of SimCode: time 7.22e-07/0.3571, allocations: 7.938 kB / 1.362 GB, free: 14.11 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03183/0.3889, allocations: 3.762 MB / 1.366 GB, free: 10.49 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.56, allocations: 5.109 kB / 1.366 GB, free: 10.49 MB / 1.061 GB " [Timeout remaining time 288] (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 & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 800 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "Error: Could not read variable ramp.startTime in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.39530194300005]