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.001417/0.001417, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.001682/0.001682, allocations: 214 kB / 22.25 MB, free: 4.855 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.797 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.157/3.157, allocations: 0.4892 GB / 0.7943 GB, free: 35.48 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.002089/0.002089, allocations: 68.77 kB / 1.153 GB, free: 25.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3519/0.354, allocations: 176.1 MB / 1.325 GB, free: 2.375 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003263/0.3573, allocations: 1.652 MB / 1.327 GB, free: 0.7148 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001393/0.3587, allocations: 0.5807 MB / 1.327 GB, free: 132 kB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.483e-05/0.3588, allocations: 4 kB / 1.327 GB, free: 128 kB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0001797/0.3589, allocations: 31.7 kB / 1.327 GB, free: 96 kB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002576/0.3592, allocations: 59.69 kB / 1.327 GB, free: 36 kB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.3594, allocations: 83.83 kB / 1.327 GB, free: 15.95 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.000213/0.3597, allocations: 131.5 kB / 1.328 GB, free: 15.82 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001605/0.3598, allocations: 33.89 kB / 1.328 GB, free: 15.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001696/0.36, allocations: 63.7 kB / 1.328 GB, free: 15.72 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001154/0.3601, allocations: 63.75 kB / 1.328 GB, free: 15.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.84e-05/0.3601, allocations: 8 kB / 1.328 GB, free: 15.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 8.252e-05/0.3602, allocations: 35.92 kB / 1.328 GB, free: 15.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 9.439e-05/0.3603, allocations: 43.83 kB / 1.328 GB, free: 15.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.565e-05/0.3604, allocations: 47.67 kB / 1.328 GB, free: 15.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002512/0.3606, allocations: 151.3 kB / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.3606, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.462e-06/0.3606, allocations: 0 / 1.328 GB, free: 15.38 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.801e-06/0.3606, allocations: 0 / 1.328 GB, free: 15.38 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.0006875/0.3613, allocations: 397.3 kB / 1.328 GB, free: 14.96 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.3614, allocations: 12.03 kB / 1.328 GB, free: 14.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.153e-05/0.3614, allocations: 42.73 kB / 1.328 GB, free: 14.9 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001644/0.3616, allocations: 28.78 kB / 1.328 GB, free: 14.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004304/0.362, allocations: 197.8 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.427e-05/0.362, allocations: 4.375 kB / 1.329 GB, free: 14.65 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.565e-05/0.362, allocations: 8.375 kB / 1.329 GB, free: 14.64 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.3624, allocations: 161.2 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.867e-06/0.3624, allocations: 4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.541e-05/0.3624, allocations: 4 kB / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.491e-06/0.3624, allocations: 0 / 1.329 GB, free: 14.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002312/0.3626, allocations: 63.94 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006506/0.3633, allocations: 339.6 kB / 1.329 GB, free: 14.02 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001519/0.3634, allocations: 42.55 kB / 1.329 GB, free: 13.97 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.3635, allocations: 28.89 kB / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.315e-05/0.3636, allocations: 0 / 1.329 GB, free: 13.94 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002985/0.3639, allocations: 160.4 kB / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.32e-07/0.3639, allocations: 0 / 1.329 GB, free: 13.75 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004578/0.3643, allocations: 117.5 kB / 1.329 GB, free: 13.63 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.595e-05/0.3644, allocations: 81.11 kB / 1.33 GB, free: 13.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003181/0.3647, allocations: 256.9 kB / 1.33 GB, free: 13.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.402e-05/0.3647, allocations: 29.64 kB / 1.33 GB, free: 13.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001098/0.3648, allocations: 128.1 kB / 1.33 GB, free: 13.1 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.177e-05/0.3649, allocations: 7.953 kB / 1.33 GB, free: 13.09 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.189e-05/0.3649, allocations: 17.72 kB / 1.33 GB, free: 13.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001906/0.3651, allocations: 330.8 kB / 1.33 GB, free: 12.74 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001085/0.3652, allocations: 15.98 kB / 1.33 GB, free: 12.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001537/0.3654, allocations: 81.11 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002222/0.3656, allocations: 74.45 kB / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.3656, allocations: 0 / 1.33 GB, free: 12.54 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.00031/0.3659, allocations: 109.5 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.716e-05/0.3659, allocations: 4 kB / 1.331 GB, free: 12.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.823e-06/0.3659, allocations: 4 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.3659, allocations: 3.938 kB / 1.331 GB, free: 12.42 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001153/0.3661, allocations: 11.98 kB / 1.331 GB, free: 12.41 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.08e-06/0.3661, allocations: 3.938 kB / 1.331 GB, free: 12.4 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.034e-05/0.3661, allocations: 15.92 kB / 1.331 GB, free: 12.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.087e-05/0.3662, allocations: 4 kB / 1.331 GB, free: 12.38 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.0001269/0.3663, allocations: 130.5 kB / 1.331 GB, free: 12.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.661e-05/0.3663, allocations: 19.86 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.594e-05/0.3664, allocations: 29.27 kB / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.763e-06/0.3664, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.609e-06/0.3664, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.725e-06/0.3664, allocations: 0 / 1.331 GB, free: 12.2 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001902/0.3666, allocations: 176.7 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3666, allocations: 3.938 kB / 1.331 GB, free: 11.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.87e-05/0.3667, allocations: 11.98 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.543e-06/0.3667, allocations: 0 / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.749e-06/0.3667, allocations: 7.938 kB / 1.331 GB, free: 11.96 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.086e-06/0.3667, allocations: 3.938 kB / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3667, allocations: 0 / 1.331 GB, free: 11.95 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.367, allocations: 121 kB / 1.331 GB, free: 11.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.877e-05/0.367, allocations: 11.91 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.367, allocations: 7.938 kB / 1.331 GB, free: 11.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.079e-05/0.3671, allocations: 7.984 kB / 1.331 GB, free: 11.79 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-05/0.3672, allocations: 7.984 kB / 1.331 GB, free: 11.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.161e-05/0.3672, allocations: 8 kB / 1.331 GB, free: 11.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002044/0.3674, allocations: 192.5 kB / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of sort global known variables: time 1e-07/0.3674, allocations: 0 / 1.331 GB, free: 11.58 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002318/0.3676, allocations: 19.95 kB / 1.331 GB, free: 11.56 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.0008893/0.3685, allocations: 0.6923 MB / 1.332 GB, free: 10.85 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000305/0.3688, allocations: 59.88 kB / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.615e-06/0.3688, allocations: 0 / 1.332 GB, free: 10.79 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001156/0.3689, allocations: 31.91 kB / 1.332 GB, free: 10.76 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003179/0.3693, allocations: 47.92 kB / 1.332 GB, free: 10.72 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002409/0.3717, allocations: 1.753 MB / 1.334 GB, free: 8.867 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000114/0.3718, allocations: 110.1 kB / 1.334 GB, free: 8.734 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.014e-05/0.3719, allocations: 20.42 kB / 1.334 GB, free: 8.715 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.138e-05/0.3719, allocations: 47.41 kB / 1.334 GB, free: 8.668 MB / 1.029 GB Notification: Performance of SimCode: time 3.9e-07/0.3719, allocations: 0 / 1.334 GB, free: 8.668 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03358/0.4055, allocations: 4.28 MB / 1.338 GB, free: 4.559 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.93/12.34, allocations: 9.438 kB / 1.338 GB, free: 4.555 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: 19.150041359011084]