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.001361/0.001361, allocations: 99.64 kB / 18.95 MB, free: 2.668 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.001614/0.001614, allocations: 210.5 kB / 22.24 MB, free: 5.262 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.533/1.533, allocations: 230.6 MB / 256 MB, free: 7.777 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.36/3.36, allocations: 0.5107 GB / 0.8158 GB, free: 17.79 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.002081/0.002081, allocations: 68.39 kB / 1.186 GB, free: 13.89 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.353/0.355, allocations: 181.9 MB / 1.363 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003295/0.3583, allocations: 1.64 MB / 1.365 GB, free: 12.56 MB / 1.061 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.3595, allocations: 0.5855 MB / 1.366 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001263/0.3597, allocations: 3.938 kB / 1.366 GB, free: 11.97 MB / 1.061 GB Notification: Performance of NFTyping.typeComponents: time 0.0002014/0.3599, allocations: 27.78 kB / 1.366 GB, free: 11.94 MB / 1.061 GB Notification: Performance of NFTyping.typeBindings: time 0.0003611/0.3602, allocations: 63.67 kB / 1.366 GB, free: 11.88 MB / 1.061 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002757/0.3605, allocations: 79.83 kB / 1.366 GB, free: 11.8 MB / 1.061 GB Notification: Performance of NFFlatten.flatten: time 0.0002436/0.3607, allocations: 131.6 kB / 1.366 GB, free: 11.67 MB / 1.061 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001703/0.3609, allocations: 33.94 kB / 1.366 GB, free: 11.63 MB / 1.061 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002038/0.3611, allocations: 71.7 kB / 1.366 GB, free: 11.56 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001398/0.3613, allocations: 59.69 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 3.163e-05/0.3613, allocations: 8 kB / 1.366 GB, free: 11.5 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 8.44e-05/0.3614, allocations: 24 kB / 1.366 GB, free: 11.47 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.0001221/0.3615, allocations: 51.81 kB / 1.366 GB, free: 11.42 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 6.931e-05/0.3616, allocations: 39.73 kB / 1.366 GB, free: 11.38 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.000266/0.3618, allocations: 155.2 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.3618, allocations: 0 / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.391e-05/0.3619, allocations: 4 kB / 1.366 GB, free: 11.23 MB / 1.061 GB Notification: Performance of Transformations before backend: time 7.053e-06/0.3619, allocations: 4 kB / 1.366 GB, free: 11.22 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.0007122/0.3626, allocations: 397.3 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.153e-05/0.3626, allocations: 8.031 kB / 1.367 GB, free: 10.8 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.699e-05/0.3627, allocations: 38.75 kB / 1.367 GB, free: 10.75 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001832/0.3629, allocations: 28.78 kB / 1.367 GB, free: 10.72 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003813/0.3632, allocations: 189.9 kB / 1.367 GB, free: 10.51 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.462e-05/0.3632, allocations: 8.375 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.473e-05/0.3633, allocations: 4.375 kB / 1.367 GB, free: 10.5 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003352/0.3636, allocations: 168.3 kB / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.835e-06/0.3636, allocations: 0 / 1.367 GB, free: 10.32 MB / 1.061 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.684e-05/0.3636, allocations: 8 kB / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.528e-06/0.3636, allocations: 0 / 1.367 GB, free: 10.31 MB / 1.061 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002464/0.3639, allocations: 67.88 kB / 1.367 GB, free: 10.25 MB / 1.061 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006427/0.3645, allocations: 331.8 kB / 1.367 GB, free: 9.879 MB / 1.061 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001564/0.3647, allocations: 42.48 kB / 1.368 GB, free: 9.828 MB / 1.061 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.3648, allocations: 28.91 kB / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 1.686e-05/0.3648, allocations: 0 / 1.368 GB, free: 9.797 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002735/0.3651, allocations: 144.5 kB / 1.368 GB, free: 9.625 MB / 1.061 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/0.3651, allocations: 3.938 kB / 1.368 GB, free: 9.621 MB / 1.061 GB Notification: Performance of matching and sorting (n=3): time 0.0004738/0.3656, allocations: 137.4 kB / 1.368 GB, free: 9.48 MB / 1.061 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.235e-05/0.3656, allocations: 77.11 kB / 1.368 GB, free: 9.387 MB / 1.061 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003218/0.3659, allocations: 260.8 kB / 1.368 GB, free: 9.121 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.366, allocations: 29.7 kB / 1.368 GB, free: 9.086 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001032/0.3661, allocations: 128.1 kB / 1.368 GB, free: 8.957 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 2.45e-05/0.3661, allocations: 11.92 kB / 1.368 GB, free: 8.945 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-05/0.3661, allocations: 13.72 kB / 1.368 GB, free: 8.926 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3663, allocations: 334.8 kB / 1.369 GB, free: 8.59 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.3664, allocations: 27.97 kB / 1.369 GB, free: 8.562 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001437/0.3666, allocations: 73.11 kB / 1.369 GB, free: 8.473 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002415/0.3668, allocations: 70.5 kB / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.575e-06/0.3668, allocations: 0 / 1.369 GB, free: 8.395 MB / 1.061 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003011/0.3671, allocations: 105.5 kB / 1.369 GB, free: 8.285 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 1.576e-05/0.3671, allocations: 4 kB / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.869e-06/0.3671, allocations: 0 / 1.369 GB, free: 8.281 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.042e-05/0.3672, allocations: 11.92 kB / 1.369 GB, free: 8.27 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000113/0.3673, allocations: 12.08 kB / 1.369 GB, free: 8.258 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.362e-06/0.3673, allocations: 8 kB / 1.369 GB, free: 8.25 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001021/0.3674, allocations: 19.88 kB / 1.369 GB, free: 8.23 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.897e-06/0.3674, allocations: 0 / 1.369 GB, free: 8.23 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 0.0001386/0.3675, allocations: 133.8 kB / 1.369 GB, free: 8.09 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.44e-05/0.3676, allocations: 15.91 kB / 1.369 GB, free: 8.074 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.611e-05/0.3676, allocations: 17.28 kB / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.3676, allocations: 0 / 1.369 GB, free: 8.055 MB / 1.061 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.3676, allocations: 4 kB / 1.369 GB, free: 8.051 MB / 1.061 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3676, allocations: 3.984 kB / 1.369 GB, free: 8.047 MB / 1.061 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002047/0.3678, allocations: 168.7 kB / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.462e-06/0.3678, allocations: 0 / 1.369 GB, free: 7.84 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.647e-05/0.3679, allocations: 15.98 kB / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.3679, allocations: 0 / 1.369 GB, free: 7.824 MB / 1.061 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.527e-05/0.3679, allocations: 11.92 kB / 1.369 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3679, allocations: 0 / 1.369 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.3679, allocations: 0 / 1.369 GB, free: 7.812 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.3682, allocations: 120.9 kB / 1.369 GB, free: 7.676 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 2.668e-05/0.3683, allocations: 15.91 kB / 1.369 GB, free: 7.66 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.462e-05/0.3683, allocations: 3.938 kB / 1.369 GB, free: 7.656 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.414e-05/0.3684, allocations: 11.98 kB / 1.369 GB, free: 7.645 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.688e-05/0.3684, allocations: 11.92 kB / 1.369 GB, free: 7.633 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.329e-05/0.3684, allocations: 4 kB / 1.369 GB, free: 7.629 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.0002035/0.3687, allocations: 188.5 kB / 1.37 GB, free: 7.449 MB / 1.061 GB Notification: Performance of sort global known variables: time 8.1e-08/0.3687, allocations: 4 kB / 1.37 GB, free: 7.445 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.0002234/0.3689, allocations: 23.94 kB / 1.37 GB, free: 7.422 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.0007917/0.3697, allocations: 0.6868 MB / 1.37 GB, free: 6.707 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.0002876/0.37, allocations: 63.8 kB / 1.37 GB, free: 6.645 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.37, allocations: 4.188 kB / 1.37 GB, free: 6.641 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.0001146/0.3701, allocations: 27.97 kB / 1.37 GB, free: 6.613 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003297/0.3704, allocations: 41.72 kB / 1.37 GB, free: 6.574 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002444/0.3728, allocations: 1.761 MB / 1.372 GB, free: 4.715 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000126/0.373, allocations: 110.1 kB / 1.372 GB, free: 4.586 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 8.308e-05/0.3731, allocations: 16.34 kB / 1.372 GB, free: 4.57 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.399e-05/0.3731, allocations: 43.42 kB / 1.372 GB, free: 4.527 MB / 1.061 GB Notification: Performance of SimCode: time 4.71e-07/0.3731, allocations: 7.938 kB / 1.372 GB, free: 4.52 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03408/0.4072, allocations: 4.27 MB / 1.377 GB, free: 416 kB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12, allocations: 12.72 kB / 1.377 GB, free: 408 kB / 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: 19.131693633738905]