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.00175/0.00175, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002286/0.002286, allocations: 212.9 kB / 22.25 MB, free: 5.125 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.468/1.468, allocations: 230.6 MB / 256 MB, free: 7.984 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.238/3.238, allocations: 0.49 GB / 0.7951 GB, free: 33.44 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_12_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.001995/0.001995, allocations: 60.95 kB / 1.154 GB, free: 25.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3534/0.3554, allocations: 176.1 MB / 1.326 GB, free: 1.977 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00315/0.3586, allocations: 1.688 MB / 1.328 GB, free: 288 kB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001142/0.3597, allocations: 0.6234 MB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.143e-05/0.3598, allocations: 11.94 kB / 1.328 GB, free: 15.64 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001777/0.36, allocations: 19.8 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.000275/0.3603, allocations: 71.17 kB / 1.328 GB, free: 15.55 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002204/0.3605, allocations: 71.84 kB / 1.328 GB, free: 15.48 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002269/0.3607, allocations: 139.5 kB / 1.328 GB, free: 15.35 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.3609, allocations: 33.89 kB / 1.328 GB, free: 15.31 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000179/0.3611, allocations: 67.7 kB / 1.329 GB, free: 15.24 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000127/0.3612, allocations: 63.69 kB / 1.329 GB, free: 15.18 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.3612, allocations: 16 kB / 1.329 GB, free: 15.16 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.406e-05/0.3613, allocations: 27.98 kB / 1.329 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.49e-05/0.3614, allocations: 43.84 kB / 1.329 GB, free: 15.09 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 7.231e-05/0.3615, allocations: 59.59 kB / 1.329 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.3617, allocations: 151.2 kB / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 5.35e-06/0.3617, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.154e-06/0.3617, allocations: 0 / 1.329 GB, free: 14.89 MB / 1.029 GB Notification: Performance of Transformations before backend: time 8.215e-06/0.3617, allocations: 0 / 1.329 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.0007737/0.3625, allocations: 409.3 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 3.708e-05/0.3625, allocations: 15.91 kB / 1.329 GB, free: 14.44 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.071e-05/0.3626, allocations: 42.69 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001605/0.3627, allocations: 24.83 kB / 1.329 GB, free: 14.37 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003559/0.3631, allocations: 189.9 kB / 1.33 GB, free: 14.16 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.423e-05/0.3631, allocations: 4.375 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.512e-05/0.3631, allocations: 4.375 kB / 1.33 GB, free: 14.15 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003062/0.3634, allocations: 113.8 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3634, allocations: 0 / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.469e-05/0.3635, allocations: 4 kB / 1.33 GB, free: 14.03 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.462e-06/0.3635, allocations: 7.938 kB / 1.33 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002294/0.3637, allocations: 63.94 kB / 1.33 GB, free: 13.96 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000695/0.3644, allocations: 351.6 kB / 1.33 GB, free: 13.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.3645, allocations: 42.55 kB / 1.33 GB, free: 13.52 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001055/0.3646, allocations: 20.91 kB / 1.33 GB, free: 13.5 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 2.07e-05/0.3647, allocations: 3.984 kB / 1.33 GB, free: 13.49 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002549/0.3649, allocations: 105 kB / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.032e-06/0.3649, allocations: 0 / 1.33 GB, free: 13.37 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004388/0.3654, allocations: 121.4 kB / 1.33 GB, free: 13.25 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.96e-05/0.3654, allocations: 81.11 kB / 1.33 GB, free: 13.15 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002952/0.3657, allocations: 260.9 kB / 1.331 GB, free: 12.88 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.259e-05/0.3658, allocations: 25.7 kB / 1.331 GB, free: 12.85 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3659, allocations: 124.1 kB / 1.331 GB, free: 12.72 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.157e-05/0.3659, allocations: 7.938 kB / 1.331 GB, free: 12.71 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.885e-05/0.3659, allocations: 17.72 kB / 1.331 GB, free: 12.69 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3661, allocations: 326.8 kB / 1.331 GB, free: 12.36 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.3662, allocations: 27.97 kB / 1.331 GB, free: 12.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001195/0.3663, allocations: 55.34 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002197/0.3666, allocations: 66.5 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.3666, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000281/0.3669, allocations: 105.4 kB / 1.331 GB, free: 12.09 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.69e-05/0.3669, allocations: 8 kB / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.472e-06/0.3669, allocations: 0 / 1.331 GB, free: 12.08 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.053e-05/0.3669, allocations: 7.922 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001195/0.367, allocations: 16.08 kB / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.432e-06/0.367, allocations: 0 / 1.331 GB, free: 12.05 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.933e-05/0.3671, allocations: 15.94 kB / 1.331 GB, free: 12.04 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.285e-05/0.3671, allocations: 11.92 kB / 1.331 GB, free: 12.03 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.0001245/0.3672, allocations: 118.4 kB / 1.332 GB, free: 11.9 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.189e-05/0.3673, allocations: 19.89 kB / 1.332 GB, free: 11.88 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.713e-05/0.3673, allocations: 29.28 kB / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.723e-06/0.3673, allocations: 0 / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3673, allocations: 0 / 1.332 GB, free: 11.85 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.3673, allocations: 7.938 kB / 1.332 GB, free: 11.84 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002025/0.3675, allocations: 192.6 kB / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.12e-07/0.3675, allocations: 0 / 1.332 GB, free: 11.61 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.349e-05/0.3676, allocations: 11.98 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.924e-06/0.3676, allocations: 288 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.254e-05/0.3676, allocations: 3.938 kB / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.233e-06/0.3676, allocations: 0 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3676, allocations: 0 / 1.332 GB, free: 11.6 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003018/0.3679, allocations: 128.9 kB / 1.332 GB, free: 11.45 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 3.004e-05/0.368, allocations: 15.89 kB / 1.332 GB, free: 11.44 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.112e-05/0.368, allocations: 11.94 kB / 1.332 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.154e-05/0.3681, allocations: 7.984 kB / 1.332 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.3681, allocations: 4 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.456e-05/0.3681, allocations: 7.984 kB / 1.332 GB, free: 11.41 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.000196/0.3683, allocations: 192.5 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3683, allocations: 0 / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002338/0.3686, allocations: 19.95 kB / 1.332 GB, free: 11.2 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.0007986/0.3694, allocations: 0.6975 MB / 1.333 GB, free: 10.48 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003218/0.3697, allocations: 59.83 kB / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.3697, allocations: 0 / 1.333 GB, free: 10.42 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001179/0.3698, allocations: 32.16 kB / 1.333 GB, free: 10.39 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000314/0.3701, allocations: 47.19 kB / 1.333 GB, free: 10.35 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002294/0.3724, allocations: 1.753 MB / 1.335 GB, free: 8.496 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003515/0.3728, allocations: 0.7158 MB / 1.335 GB, free: 7.754 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 7.293e-05/0.3729, allocations: 24.33 kB / 1.335 GB, free: 7.73 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.719e-05/0.3729, allocations: 43.61 kB / 1.335 GB, free: 7.688 MB / 1.029 GB Notification: Performance of SimCode: time 3.41e-07/0.3729, allocations: 3.938 kB / 1.335 GB, free: 7.684 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03098/0.4039, allocations: 3.764 MB / 1.339 GB, free: 4.07 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.74, allocations: 5.375 kB / 1.339 GB, free: 4.07 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 & python3 -m fmpy simulate --output-file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv --start-time 0 --stop-time 2 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_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_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.639501672001643]