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.001738/0.001738, allocations: 108.6 kB / 16.45 MB, free: 6.508 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.002048/0.002048, allocations: 213.7 kB / 19.43 MB, free: 3.648 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.53/1.53, allocations: 230.6 MB / 252.8 MB, free: 9.102 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.374/3.374, allocations: 0.49 GB / 0.7916 GB, free: 33.53 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.002174/0.002174, allocations: 75.28 kB / 1.149 GB, free: 26.46 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3597/0.3619, allocations: 176.1 MB / 1.321 GB, free: 3.387 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003673/0.3655, allocations: 1.687 MB / 1.322 GB, free: 1.691 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001211/0.3668, allocations: 0.6117 MB / 1.323 GB, free: 1.074 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.586e-05/0.3668, allocations: 7.938 kB / 1.323 GB, free: 1.066 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002092/0.3671, allocations: 31.72 kB / 1.323 GB, free: 1.035 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002908/0.3673, allocations: 65.61 kB / 1.323 GB, free: 0.9727 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002468/0.3676, allocations: 71.84 kB / 1.323 GB, free: 0.9023 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002364/0.3678, allocations: 135.5 kB / 1.323 GB, free: 0.7695 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001725/0.368, allocations: 41.75 kB / 1.323 GB, free: 0.7227 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002021/0.3682, allocations: 67.7 kB / 1.323 GB, free: 0.6562 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001285/0.3683, allocations: 59.7 kB / 1.323 GB, free: 0.5977 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.745e-05/0.3684, allocations: 8 kB / 1.323 GB, free: 0.5898 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 8.288e-05/0.3684, allocations: 35.97 kB / 1.324 GB, free: 0.5547 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.0001069/0.3686, allocations: 47.78 kB / 1.324 GB, free: 0.5078 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.264e-05/0.3686, allocations: 59.59 kB / 1.324 GB, free: 460 kB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.000257/0.3689, allocations: 151.2 kB / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.3689, allocations: 0 / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of FrontEnd: time 1.353e-06/0.3689, allocations: 0 / 1.324 GB, free: 308 kB / 1.014 GB Notification: Performance of Transformations before backend: time 5.921e-06/0.3689, allocations: 0 / 1.324 GB, free: 308 kB / 1.014 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.0007767/0.3697, allocations: 482.4 kB / 1.324 GB, free: 15.78 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.604e-05/0.3697, allocations: 15.98 kB / 1.324 GB, free: 15.77 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.993e-05/0.3698, allocations: 38.73 kB / 1.324 GB, free: 15.72 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001667/0.3699, allocations: 20.84 kB / 1.324 GB, free: 15.7 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003761/0.3703, allocations: 259.7 kB / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.114e-06/0.3703, allocations: 384 / 1.325 GB, free: 15.41 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.884e-05/0.3703, allocations: 8.375 kB / 1.325 GB, free: 15.4 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003035/0.3706, allocations: 117.7 kB / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.075e-06/0.3706, allocations: 0 / 1.325 GB, free: 15.28 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.688e-05/0.3707, allocations: 7.984 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.704e-06/0.3707, allocations: 4 kB / 1.325 GB, free: 15.27 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002784/0.3709, allocations: 59.94 kB / 1.325 GB, free: 15.21 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006602/0.3716, allocations: 380.6 kB / 1.325 GB, free: 14.79 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001561/0.3718, allocations: 46.48 kB / 1.325 GB, free: 14.73 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001219/0.3719, allocations: 28.89 kB / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.598e-05/0.3719, allocations: 0 / 1.325 GB, free: 14.7 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000278/0.3722, allocations: 101 kB / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 1.172e-06/0.3722, allocations: 0 / 1.325 GB, free: 14.58 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.000539/0.3727, allocations: 121.5 kB / 1.325 GB, free: 14.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.178e-05/0.3728, allocations: 81.11 kB / 1.325 GB, free: 14.36 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004475/0.3732, allocations: 260.9 kB / 1.326 GB, free: 14.1 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 4.384e-05/0.3733, allocations: 29.7 kB / 1.326 GB, free: 14.06 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.3734, allocations: 128.1 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 2.202e-05/0.3734, allocations: 3.953 kB / 1.326 GB, free: 13.93 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.319e-05/0.3735, allocations: 17.72 kB / 1.326 GB, free: 13.91 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0002685/0.3737, allocations: 322.8 kB / 1.326 GB, free: 13.58 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001271/0.3739, allocations: 27.97 kB / 1.326 GB, free: 13.55 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000137/0.374, allocations: 55.34 kB / 1.326 GB, free: 13.49 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002359/0.3742, allocations: 70.55 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.623e-06/0.3742, allocations: 4 kB / 1.326 GB, free: 13.41 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000336/0.3746, allocations: 105.4 kB / 1.326 GB, free: 13.3 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 2.447e-05/0.3746, allocations: 11.98 kB / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.099e-06/0.3746, allocations: 0 / 1.326 GB, free: 13.29 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.955e-05/0.3746, allocations: 3.938 kB / 1.326 GB, free: 13.28 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001177/0.3747, allocations: 15.92 kB / 1.326 GB, free: 13.27 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.44e-06/0.3747, allocations: 4.094 kB / 1.326 GB, free: 13.26 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.414e-05/0.3748, allocations: 15.92 kB / 1.326 GB, free: 13.25 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.3748, allocations: 4 kB / 1.326 GB, free: 13.24 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.0001271/0.375, allocations: 125.8 kB / 1.327 GB, free: 13.11 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.589e-05/0.375, allocations: 19.86 kB / 1.327 GB, free: 13.09 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.188e-05/0.3751, allocations: 21.19 kB / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.693e-06/0.3751, allocations: 0 / 1.327 GB, free: 13.07 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.872e-06/0.3751, allocations: 3.984 kB / 1.327 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.606e-06/0.3751, allocations: 4 kB / 1.327 GB, free: 13.06 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002127/0.3753, allocations: 213.6 kB / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.3753, allocations: 0 / 1.327 GB, free: 12.8 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.374e-05/0.3754, allocations: 11.98 kB / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.3754, allocations: 0 / 1.327 GB, free: 12.79 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.37e-05/0.3754, allocations: 7.938 kB / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.132e-06/0.3754, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3754, allocations: 0 / 1.327 GB, free: 12.78 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00033/0.3757, allocations: 133.2 kB / 1.327 GB, free: 12.63 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 6.933e-05/0.3758, allocations: 89.02 kB / 1.327 GB, free: 12.53 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.695e-05/0.3758, allocations: 3.938 kB / 1.327 GB, free: 12.52 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.644e-05/0.3759, allocations: 11.98 kB / 1.327 GB, free: 12.51 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.891e-05/0.3759, allocations: 7.938 kB / 1.327 GB, free: 12.5 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.627e-05/0.376, allocations: 11.98 kB / 1.327 GB, free: 12.49 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0002111/0.3762, allocations: 184.5 kB / 1.327 GB, free: 12.31 MB / 1.029 GB Notification: Performance of sort global known variables: time 1.01e-07/0.3762, allocations: 4 kB / 1.327 GB, free: 12.3 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002401/0.3764, allocations: 27.94 kB / 1.327 GB, free: 12.28 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.0009605/0.3774, allocations: 0.6807 MB / 1.328 GB, free: 11.57 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.0003129/0.3777, allocations: 55.89 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3777, allocations: 3.938 kB / 1.328 GB, free: 11.52 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001269/0.3778, allocations: 32.16 kB / 1.328 GB, free: 11.48 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003189/0.3781, allocations: 41.2 kB / 1.328 GB, free: 11.45 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00256/0.3807, allocations: 1.757 MB / 1.33 GB, free: 9.59 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000378/0.3811, allocations: 0.7197 MB / 1.331 GB, free: 8.844 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 8.661e-05/0.3812, allocations: 24.45 kB / 1.331 GB, free: 8.82 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.606e-05/0.3812, allocations: 47.42 kB / 1.331 GB, free: 8.773 MB / 1.029 GB Notification: Performance of SimCode: time 7.61e-07/0.3813, allocations: 0 / 1.331 GB, free: 8.773 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02961/0.4109, allocations: 3.65 MB / 1.334 GB, free: 5.23 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.479/8.89, allocations: 16.36 kB / 1.334 GB, free: 5.219 MB / 1.029 GB " [Timeout remaining time 291] (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: 15.961759250145406]