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.001347/0.001347, allocations: 110.4 kB / 18.94 MB, free: 2.949 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.002012/0.002012, allocations: 218.8 kB / 22.25 MB, free: 5.125 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.491/1.491, allocations: 230.6 MB / 256 MB, free: 8 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.881/2.881, allocations: 476.7 MB / 0.7707 GB, free: 4.27 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.002068/0.002068, allocations: 66.84 kB / 1.117 GB, free: 40.33 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2886, allocations: 170 MB / 1.283 GB, free: 11.69 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00359/0.2922, allocations: 1.679 MB / 1.285 GB, free: 10 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.001294/0.2935, allocations: 0.6212 MB / 1.286 GB, free: 9.375 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001403/0.2937, allocations: 4 kB / 1.286 GB, free: 9.371 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.0002287/0.2939, allocations: 27.72 kB / 1.286 GB, free: 9.344 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0002997/0.2942, allocations: 72.3 kB / 1.286 GB, free: 9.273 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002525/0.2945, allocations: 79.83 kB / 1.286 GB, free: 9.195 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0002424/0.2947, allocations: 127.6 kB / 1.286 GB, free: 9.07 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001645/0.2949, allocations: 45.05 kB / 1.286 GB, free: 9.027 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001961/0.2951, allocations: 59.77 kB / 1.286 GB, free: 8.969 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001435/0.2952, allocations: 71.69 kB / 1.286 GB, free: 8.898 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 2.937e-05/0.2952, allocations: 8 kB / 1.286 GB, free: 8.891 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 9.095e-05/0.2953, allocations: 31.92 kB / 1.286 GB, free: 8.859 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001032/0.2954, allocations: 47.83 kB / 1.286 GB, free: 8.812 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2955, allocations: 63.55 kB / 1.286 GB, free: 8.75 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0002635/0.2958, allocations: 147.3 kB / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2958, allocations: 0 / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2958, allocations: 0 / 1.286 GB, free: 8.605 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 6.663e-06/0.2958, allocations: 3.938 kB / 1.286 GB, free: 8.602 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.0007467/0.2966, allocations: 399.4 kB / 1.287 GB, free: 8.184 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.961e-05/0.2966, allocations: 8.031 kB / 1.287 GB, free: 8.176 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.583e-05/0.2967, allocations: 42.75 kB / 1.287 GB, free: 8.125 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002008/0.2969, allocations: 24.83 kB / 1.287 GB, free: 8.102 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004379/0.2973, allocations: 194.1 kB / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.245e-06/0.2973, allocations: 384 / 1.287 GB, free: 7.887 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.305e-05/0.2973, allocations: 8.375 kB / 1.287 GB, free: 7.879 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003319/0.2977, allocations: 111.5 kB / 1.287 GB, free: 7.766 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.2977, allocations: 4 kB / 1.287 GB, free: 7.762 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.624e-05/0.2977, allocations: 4 kB / 1.287 GB, free: 7.758 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.064e-06/0.2977, allocations: 4 kB / 1.287 GB, free: 7.754 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002314/0.2979, allocations: 55.94 kB / 1.287 GB, free: 7.699 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006464/0.2986, allocations: 347.6 kB / 1.288 GB, free: 7.316 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001461/0.2987, allocations: 46.55 kB / 1.288 GB, free: 7.262 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001047/0.2988, allocations: 28.89 kB / 1.288 GB, free: 7.23 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.814e-05/0.2988, allocations: 3.938 kB / 1.288 GB, free: 7.227 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002437/0.2991, allocations: 109 kB / 1.288 GB, free: 7.102 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.2991, allocations: 3.938 kB / 1.288 GB, free: 7.098 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3): time 0.0004548/0.2995, allocations: 117.5 kB / 1.288 GB, free: 6.977 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.2996, allocations: 81.11 kB / 1.288 GB, free: 6.879 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002937/0.2999, allocations: 256.9 kB / 1.288 GB, free: 6.617 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 2.754e-05/0.2999, allocations: 33.7 kB / 1.288 GB, free: 6.578 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001087/0.3, allocations: 132 kB / 1.288 GB, free: 6.445 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 3.086e-05/0.3001, allocations: 11.88 kB / 1.288 GB, free: 6.434 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.967e-05/0.3001, allocations: 17.72 kB / 1.288 GB, free: 6.41 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001518/0.3003, allocations: 326.8 kB / 1.289 GB, free: 6.082 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001078/0.3004, allocations: 23.98 kB / 1.289 GB, free: 6.059 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001232/0.3005, allocations: 51.41 kB / 1.289 GB, free: 5.996 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002143/0.3007, allocations: 70.45 kB / 1.289 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.3007, allocations: 0 / 1.289 GB, free: 5.918 MB / 0.9825 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002913/0.301, allocations: 105.5 kB / 1.289 GB, free: 5.809 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.997e-05/0.301, allocations: 8 kB / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.301, allocations: 0 / 1.289 GB, free: 5.801 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.3011, allocations: 3.938 kB / 1.289 GB, free: 5.797 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001166/0.3012, allocations: 11.98 kB / 1.289 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.703e-06/0.3012, allocations: 0 / 1.289 GB, free: 5.785 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.777e-05/0.3013, allocations: 20.03 kB / 1.289 GB, free: 5.766 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.275e-05/0.3013, allocations: 4 kB / 1.289 GB, free: 5.762 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.000129/0.3014, allocations: 125.8 kB / 1.289 GB, free: 5.629 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.572e-05/0.3014, allocations: 15.91 kB / 1.289 GB, free: 5.613 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.801e-05/0.3015, allocations: 25.27 kB / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.094e-06/0.3015, allocations: 0 / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.127e-06/0.3015, allocations: 288 / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.634e-06/0.3015, allocations: 0 / 1.289 GB, free: 5.586 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002011/0.3017, allocations: 192.6 kB / 1.289 GB, free: 5.355 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.3017, allocations: 4 kB / 1.289 GB, free: 5.352 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.287e-05/0.3018, allocations: 15.97 kB / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.385e-06/0.3018, allocations: 0 / 1.289 GB, free: 5.336 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.999e-06/0.3018, allocations: 7.875 kB / 1.289 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.813e-06/0.3018, allocations: 0 / 1.289 GB, free: 5.328 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.396e-06/0.3018, allocations: 3.984 kB / 1.289 GB, free: 5.324 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003045/0.3021, allocations: 125 kB / 1.289 GB, free: 5.184 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 2.865e-05/0.3021, allocations: 11.91 kB / 1.289 GB, free: 5.172 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.811e-05/0.3022, allocations: 7.938 kB / 1.289 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.3e-05/0.3023, allocations: 7.984 kB / 1.289 GB, free: 5.156 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.431e-05/0.3023, allocations: 11.98 kB / 1.289 GB, free: 5.145 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.267e-05/0.3023, allocations: 4 kB / 1.289 GB, free: 5.141 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001945/0.3025, allocations: 188.5 kB / 1.29 GB, free: 4.961 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.3025, allocations: 3.938 kB / 1.29 GB, free: 4.957 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0002354/0.3028, allocations: 35.83 kB / 1.29 GB, free: 4.922 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.0007736/0.3035, allocations: 0.6752 MB / 1.29 GB, free: 4.223 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0002828/0.3038, allocations: 55.88 kB / 1.29 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3038, allocations: 0 / 1.29 GB, free: 4.168 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001167/0.3039, allocations: 27.92 kB / 1.29 GB, free: 4.141 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003064/0.3042, allocations: 49.61 kB / 1.29 GB, free: 4.098 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002351/0.3066, allocations: 1.762 MB / 1.292 GB, free: 2.23 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003614/0.307, allocations: 0.7197 MB / 1.293 GB, free: 1.484 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 8.314e-05/0.307, allocations: 20.66 kB / 1.293 GB, free: 1.465 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.255e-05/0.3071, allocations: 39.42 kB / 1.293 GB, free: 1.426 MB / 0.9825 GB Notification: Performance of SimCode: time 5.81e-07/0.3071, allocations: 4 kB / 1.293 GB, free: 1.422 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03298/0.3401, allocations: 3.768 MB / 1.297 GB, free: 13.81 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.56/11.9, allocations: 5.656 kB / 1.297 GB, free: 13.8 MB / 0.9981 GB " [Timeout remaining time 287] (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/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: 18.641611665021628]