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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001589/0.001589, allocations: 111.8 kB / 18.13 MB, free: 3.684 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001766/0.001766, allocations: 198.2 kB / 21.43 MB, free: 412 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.384/1.384, allocations: 225.6 MB / 250.2 MB, free: 13.29 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.689/2.689, allocations: 476.7 MB / 0.7637 GB, free: 10.12 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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: Performance of FrontEnd - loaded program: time 0.00192/0.00192, allocations: 75.81 kB / 1.108 GB, free: 7.09 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7772/0.7791, allocations: 168.7 MB / 1.273 GB, free: 4.359 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003175/0.7823, allocations: 1.674 MB / 1.274 GB, free: 2.68 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.0009289/0.7832, allocations: 0.5471 MB / 1.275 GB, free: 2.129 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.302e-05/0.7833, allocations: 4 kB / 1.275 GB, free: 2.125 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0001744/0.7835, allocations: 27.72 kB / 1.275 GB, free: 2.098 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002575/0.7837, allocations: 74.98 kB / 1.275 GB, free: 2.027 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.7839, allocations: 59.92 kB / 1.275 GB, free: 1.969 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0002111/0.7841, allocations: 143.5 kB / 1.275 GB, free: 1.828 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001426/0.7842, allocations: 35.25 kB / 1.275 GB, free: 1.793 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001174/0.7843, allocations: 55.81 kB / 1.275 GB, free: 1.738 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.7845, allocations: 59.7 kB / 1.275 GB, free: 1.68 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 2.574e-05/0.7845, allocations: 11.94 kB / 1.275 GB, free: 1.668 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 6.23e-05/0.7846, allocations: 27.98 kB / 1.275 GB, free: 1.641 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 9.534e-05/0.7846, allocations: 51.83 kB / 1.275 GB, free: 1.59 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 6.737e-05/0.7847, allocations: 63.53 kB / 1.276 GB, free: 1.527 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.7849, allocations: 135.3 kB / 1.276 GB, free: 1.395 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.943e-06/0.7849, allocations: 7.984 kB / 1.276 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.383e-06/0.7849, allocations: 0 / 1.276 GB, free: 1.387 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 1.035e-05/0.7849, allocations: 0 / 1.276 GB, free: 1.387 MB / 0.9669 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.0006779/0.7856, allocations: 466.5 kB / 1.276 GB, free: 0.8828 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.302e-05/0.7857, allocations: 12.03 kB / 1.276 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.538e-05/0.7857, allocations: 38.75 kB / 1.276 GB, free: 0.8242 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.965e-05/0.7858, allocations: 28.73 kB / 1.276 GB, free: 0.7969 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000326/0.7861, allocations: 244.9 kB / 1.276 GB, free: 0.5156 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.137e-05/0.7861, allocations: 4.375 kB / 1.276 GB, free: 0.5117 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.227e-05/0.7861, allocations: 4.375 kB / 1.276 GB, free: 0.5078 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.7864, allocations: 105.8 kB / 1.277 GB, free: 408 kB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.774e-06/0.7864, allocations: 0 / 1.277 GB, free: 408 kB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.444e-05/0.7864, allocations: 8 kB / 1.277 GB, free: 400 kB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.861e-06/0.7864, allocations: 4 kB / 1.277 GB, free: 396 kB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002371/0.7867, allocations: 63.94 kB / 1.277 GB, free: 332 kB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.7873, allocations: 388.5 kB / 1.277 GB, free: 15.89 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001451/0.7874, allocations: 38.5 kB / 1.277 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001172/0.7875, allocations: 28.89 kB / 1.277 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.517e-05/0.7876, allocations: 0 / 1.277 GB, free: 15.82 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002368/0.7878, allocations: 101.1 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.142e-06/0.7878, allocations: 4 kB / 1.277 GB, free: 15.7 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004486/0.7882, allocations: 121.4 kB / 1.277 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.727e-05/0.7883, allocations: 81.11 kB / 1.277 GB, free: 15.47 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000273/0.7886, allocations: 253 kB / 1.278 GB, free: 15.21 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.163e-05/0.7886, allocations: 29.7 kB / 1.278 GB, free: 15.18 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 9.302e-05/0.7887, allocations: 132.1 kB / 1.278 GB, free: 15.05 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 1.712e-05/0.7887, allocations: 3.953 kB / 1.278 GB, free: 15.04 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.205e-05/0.7887, allocations: 17.72 kB / 1.278 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001539/0.7889, allocations: 330.8 kB / 1.278 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001154/0.789, allocations: 19.98 kB / 1.278 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001356/0.7892, allocations: 55.34 kB / 1.278 GB, free: 14.6 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002228/0.7894, allocations: 70.45 kB / 1.278 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.7894, allocations: 3.938 kB / 1.278 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003059/0.7897, allocations: 113.5 kB / 1.278 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.7897, allocations: 5.875 kB / 1.278 GB, free: 14.4 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.7897, allocations: 4 kB / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.385e-05/0.7897, allocations: 3.938 kB / 1.278 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001102/0.7898, allocations: 11.98 kB / 1.278 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.668e-06/0.7898, allocations: 0 / 1.278 GB, free: 14.38 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.354e-05/0.7899, allocations: 16.02 kB / 1.278 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.7899, allocations: 7.984 kB / 1.278 GB, free: 14.36 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.0001121/0.7901, allocations: 133.8 kB / 1.279 GB, free: 14.21 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.93e-05/0.7901, allocations: 15.91 kB / 1.279 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.21e-05/0.7901, allocations: 25.17 kB / 1.279 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.704e-06/0.7901, allocations: 0 / 1.279 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.7901, allocations: 0 / 1.279 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.104e-06/0.7901, allocations: 0 / 1.279 GB, free: 14.18 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001914/0.7903, allocations: 213.5 kB / 1.279 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.7903, allocations: 0 / 1.279 GB, free: 13.92 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.327e-05/0.7904, allocations: 23.92 kB / 1.279 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-06/0.7904, allocations: 0 / 1.279 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.037e-05/0.7904, allocations: 7.938 kB / 1.279 GB, free: 13.89 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.856e-06/0.7904, allocations: 3.984 kB / 1.279 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.7904, allocations: 0 / 1.279 GB, free: 13.88 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002943/0.7907, allocations: 117 kB / 1.279 GB, free: 13.75 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 6.316e-05/0.7908, allocations: 93.02 kB / 1.279 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.7908, allocations: 4.266 kB / 1.279 GB, free: 13.64 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.422e-05/0.7909, allocations: 7.984 kB / 1.279 GB, free: 13.63 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.7909, allocations: 11.98 kB / 1.279 GB, free: 13.62 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.151e-05/0.7909, allocations: 4 kB / 1.279 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001846/0.7911, allocations: 188.5 kB / 1.279 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of sort global known variables: time 7e-08/0.7911, allocations: 0 / 1.279 GB, free: 13.43 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002206/0.7914, allocations: 23.95 kB / 1.279 GB, free: 13.41 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.000741/0.7921, allocations: 0.6883 MB / 1.28 GB, free: 12.69 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002912/0.7924, allocations: 67.75 kB / 1.28 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.7924, allocations: 0 / 1.28 GB, free: 12.62 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001182/0.7925, allocations: 23.98 kB / 1.28 GB, free: 12.6 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000299/0.7928, allocations: 54.03 kB / 1.28 GB, free: 12.55 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002249/0.7951, allocations: 1.756 MB / 1.282 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003428/0.7954, allocations: 0.7197 MB / 1.282 GB, free: 9.949 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 6.614e-05/0.7955, allocations: 12.55 kB / 1.282 GB, free: 9.938 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.85e-05/0.7955, allocations: 47.41 kB / 1.283 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of SimCode: time 3e-07/0.7955, allocations: 0 / 1.283 GB, free: 9.891 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0268/0.8223, allocations: 3.627 MB / 1.286 GB, free: 6.371 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.239/9.061, allocations: 0 / 1.286 GB, free: 6.371 MB / 0.9825 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_11_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 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.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Utilities.IO.Files.Examples.JSONWriter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 14.906597605906427]