Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_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.002064/0.002064, allocations: 108.8 kB / 16.46 MB, free: 6.453 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.002911/0.002911, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.49/1.49, allocations: 230.6 MB / 252.8 MB, free: 8.965 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.x/package.mo): time 2.876/2.876, allocations: 476.7 MB / 0.7672 GB, free: 5.184 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.1-maint.11.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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_11_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.002088/0.002088, allocations: 71.89 kB / 1.112 GB, free: 1.527 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8057/0.8078, allocations: 169.9 MB / 1.278 GB, free: 13.4 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003394/0.8112, allocations: 1.682 MB / 1.28 GB, free: 11.71 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001135/0.8123, allocations: 0.6095 MB / 1.28 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.397e-05/0.8124, allocations: 7.938 kB / 1.28 GB, free: 11.09 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.000213/0.8126, allocations: 31.7 kB / 1.281 GB, free: 11.05 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002737/0.8129, allocations: 71.06 kB / 1.281 GB, free: 10.99 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002195/0.8131, allocations: 75.83 kB / 1.281 GB, free: 10.91 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002052/0.8133, allocations: 131.6 kB / 1.281 GB, free: 10.79 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001659/0.8135, allocations: 35.31 kB / 1.281 GB, free: 10.75 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001828/0.8137, allocations: 67.69 kB / 1.281 GB, free: 10.68 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001156/0.8138, allocations: 63.69 kB / 1.281 GB, free: 10.62 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.587e-05/0.8138, allocations: 8 kB / 1.281 GB, free: 10.61 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 7.34e-05/0.8139, allocations: 28 kB / 1.281 GB, free: 10.58 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 9.536e-05/0.814, allocations: 51.77 kB / 1.281 GB, free: 10.53 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 7.205e-05/0.8141, allocations: 59.59 kB / 1.281 GB, free: 10.47 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002358/0.8143, allocations: 159.2 kB / 1.281 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.107e-06/0.8143, allocations: 0 / 1.281 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.442e-06/0.8143, allocations: 0 / 1.281 GB, free: 10.32 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 5.35e-06/0.8143, allocations: 0 / 1.281 GB, free: 10.32 MB / 0.9825 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.0006846/0.815, allocations: 478.4 kB / 1.282 GB, free: 9.801 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.374e-05/0.815, allocations: 16.03 kB / 1.282 GB, free: 9.785 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.385e-05/0.8151, allocations: 34.75 kB / 1.282 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001841/0.8153, allocations: 28.83 kB / 1.282 GB, free: 9.715 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003361/0.8156, allocations: 244 kB / 1.282 GB, free: 9.438 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.398e-05/0.8156, allocations: 8.375 kB / 1.282 GB, free: 9.43 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.468e-05/0.8156, allocations: 4.375 kB / 1.282 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003156/0.816, allocations: 113.7 kB / 1.282 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.038e-05/0.816, allocations: 3.984 kB / 1.282 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.622e-05/0.816, allocations: 4 kB / 1.282 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.18e-06/0.816, allocations: 0 / 1.282 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002514/0.8162, allocations: 59.94 kB / 1.282 GB, free: 9.242 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007442/0.817, allocations: 388.5 kB / 1.283 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001512/0.8171, allocations: 38.55 kB / 1.283 GB, free: 8.766 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000119/0.8173, allocations: 24.91 kB / 1.283 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 2.012e-05/0.8173, allocations: 0 / 1.283 GB, free: 8.738 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002761/0.8175, allocations: 105 kB / 1.283 GB, free: 8.617 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.082e-06/0.8175, allocations: 4 kB / 1.283 GB, free: 8.613 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004872/0.818, allocations: 121.4 kB / 1.283 GB, free: 8.488 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.877e-05/0.8181, allocations: 77.11 kB / 1.283 GB, free: 8.395 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003537/0.8185, allocations: 265 kB / 1.283 GB, free: 8.121 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.536e-05/0.8185, allocations: 25.7 kB / 1.283 GB, free: 8.09 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001135/0.8186, allocations: 128 kB / 1.283 GB, free: 7.961 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.021e-05/0.8186, allocations: 3.953 kB / 1.283 GB, free: 7.957 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.191e-05/0.8187, allocations: 21.7 kB / 1.283 GB, free: 7.93 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001997/0.8189, allocations: 326.8 kB / 1.284 GB, free: 7.602 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.819, allocations: 27.91 kB / 1.284 GB, free: 7.574 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001367/0.8191, allocations: 51.41 kB / 1.284 GB, free: 7.512 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000244/0.8194, allocations: 62.53 kB / 1.284 GB, free: 7.441 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.8194, allocations: 4.031 kB / 1.284 GB, free: 7.438 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003004/0.8197, allocations: 101.5 kB / 1.284 GB, free: 7.332 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.917e-05/0.8197, allocations: 11.94 kB / 1.284 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.33e-06/0.8197, allocations: 0 / 1.284 GB, free: 7.32 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.8197, allocations: 3.938 kB / 1.284 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001206/0.8199, allocations: 15.92 kB / 1.284 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.8199, allocations: 4.094 kB / 1.284 GB, free: 7.297 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.566e-05/0.82, allocations: 19.94 kB / 1.284 GB, free: 7.277 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.616e-06/0.82, allocations: 0 / 1.284 GB, free: 7.277 MB / 0.9825 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.0001878/0.8202, allocations: 134.3 kB / 1.284 GB, free: 7.137 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.343e-05/0.8202, allocations: 15.91 kB / 1.284 GB, free: 7.121 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.835e-05/0.8202, allocations: 25.17 kB / 1.284 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.184e-06/0.8202, allocations: 288 / 1.284 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.8202, allocations: 0 / 1.284 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.425e-06/0.8202, allocations: 0 / 1.284 GB, free: 7.094 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002388/0.8205, allocations: 233.5 kB / 1.284 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.112e-06/0.8205, allocations: 0 / 1.284 GB, free: 6.816 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.413e-05/0.8206, allocations: 11.98 kB / 1.284 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.8206, allocations: 0 / 1.284 GB, free: 6.805 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.263e-05/0.8206, allocations: 3.938 kB / 1.284 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.172e-06/0.8206, allocations: 0 / 1.284 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.8206, allocations: 0 / 1.284 GB, free: 6.801 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003293/0.8209, allocations: 128.9 kB / 1.284 GB, free: 6.656 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 7.053e-05/0.821, allocations: 89.02 kB / 1.285 GB, free: 6.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.578e-05/0.821, allocations: 7.922 kB / 1.285 GB, free: 6.543 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.872e-05/0.8211, allocations: 15.98 kB / 1.285 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.214e-05/0.8211, allocations: 0 / 1.285 GB, free: 6.527 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.8212, allocations: 4 kB / 1.285 GB, free: 6.523 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0002105/0.8214, allocations: 192.5 kB / 1.285 GB, free: 6.34 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.8214, allocations: 4 kB / 1.285 GB, free: 6.336 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002324/0.8216, allocations: 27.89 kB / 1.285 GB, free: 6.309 MB / 0.9825 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.0008404/0.8224, allocations: 0.673 MB / 1.285 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003116/0.8228, allocations: 55.88 kB / 1.286 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.8228, allocations: 0 / 1.286 GB, free: 5.559 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001265/0.8229, allocations: 40.03 kB / 1.286 GB, free: 5.52 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003044/0.8232, allocations: 36.41 kB / 1.286 GB, free: 5.484 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002729/0.8259, allocations: 1.766 MB / 1.287 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003842/0.8263, allocations: 0.7197 MB / 1.288 GB, free: 2.867 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 7.414e-05/0.8264, allocations: 24.66 kB / 1.288 GB, free: 2.844 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.382e-05/0.8265, allocations: 47.41 kB / 1.288 GB, free: 2.797 MB / 0.9825 GB Notification: Performance of SimCode: time 4e-07/0.8265, allocations: 4 kB / 1.288 GB, free: 2.793 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03014/0.8566, allocations: 3.66 MB / 1.292 GB, free: 15.24 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.304/9.161, allocations: 11.33 kB / 1.292 GB, free: 15.24 MB / 0.9981 GB " [Timeout remaining time 291] (rm -f Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & python3 -m fmpy simulate --output-file Buildings_11_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_11_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_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_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable ramp.startTime from file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! Error: Could not read variable cosine.y in file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv. Warning: Get data of variable cosine.y from file Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.csv failed! " [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 15.378226411994547]