Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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.00126/0.00126, allocations: 108.2 kB / 16.46 MB, free: 6.035 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.001301/0.001301, allocations: 191.8 kB / 19.41 MB, free: 3.539 MB / 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.448/1.448, allocations: 225.6 MB / 247.8 MB, free: 13.95 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 3.072/3.072, allocations: 497.2 MB / 0.7811 GB, free: 33.67 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Performance of FrontEnd - loaded program: time 0.001964/0.001964, allocations: 67.95 kB / 1.134 GB, free: 33.76 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3332/0.3352, allocations: 173.9 MB / 1.304 GB, free: 1.543 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003072/0.3383, allocations: 1.653 MB / 1.306 GB, free: 15.88 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.001091/0.3394, allocations: 0.5455 MB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.813e-05/0.3395, allocations: 4 kB / 1.306 GB, free: 15.32 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.0002008/0.3397, allocations: 27.73 kB / 1.306 GB, free: 15.29 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.0002863/0.3399, allocations: 71.66 kB / 1.306 GB, free: 15.22 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001857/0.3401, allocations: 55.92 kB / 1.306 GB, free: 15.17 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.0002249/0.3404, allocations: 131.5 kB / 1.306 GB, free: 15.04 MB / 1.014 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001714/0.3405, allocations: 41.77 kB / 1.306 GB, free: 14.99 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001316/0.3407, allocations: 59.75 kB / 1.306 GB, free: 14.93 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001254/0.3408, allocations: 67.64 kB / 1.307 GB, free: 14.87 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 2.832e-05/0.3408, allocations: 8 kB / 1.307 GB, free: 14.86 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 6.26e-05/0.3409, allocations: 20 kB / 1.307 GB, free: 14.84 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 9.575e-05/0.341, allocations: 47.83 kB / 1.307 GB, free: 14.79 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 7.303e-05/0.341, allocations: 55.61 kB / 1.307 GB, free: 14.74 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.0002388/0.3413, allocations: 151.2 kB / 1.307 GB, free: 14.59 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 4.559e-06/0.3413, allocations: 0 / 1.307 GB, free: 14.59 MB / 1.014 GB Notification: Performance of FrontEnd: time 1.693e-06/0.3413, allocations: 0 / 1.307 GB, free: 14.59 MB / 1.014 GB Notification: Performance of Transformations before backend: time 6.282e-06/0.3413, allocations: 4 kB / 1.307 GB, free: 14.59 MB / 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.000734/0.342, allocations: 474.4 kB / 1.307 GB, free: 14.07 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.3421, allocations: 8.625 kB / 1.307 GB, free: 14.07 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.273e-05/0.3421, allocations: 38.75 kB / 1.307 GB, free: 14.02 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.19e-05/0.3422, allocations: 20.8 kB / 1.307 GB, free: 14 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000395/0.3426, allocations: 249 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.3426, allocations: 8.359 kB / 1.308 GB, free: 13.71 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.951e-05/0.3426, allocations: 12.31 kB / 1.308 GB, free: 13.7 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002943/0.3429, allocations: 109.4 kB / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.3429, allocations: 0 / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.257e-05/0.3429, allocations: 0 / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.009e-06/0.3429, allocations: 0 / 1.308 GB, free: 13.59 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002334/0.3432, allocations: 71.88 kB / 1.308 GB, free: 13.52 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006815/0.3438, allocations: 384.5 kB / 1.308 GB, free: 13.09 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001931/0.344, allocations: 46.5 kB / 1.308 GB, free: 13.04 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001246/0.3442, allocations: 28.89 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 1.373e-05/0.3442, allocations: 4 kB / 1.308 GB, free: 13 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002354/0.3444, allocations: 93.08 kB / 1.308 GB, free: 12.89 MB / 1.014 GB Notification: Performance of pre-optimization done (n=3): time 9.51e-07/0.3444, allocations: 0 / 1.308 GB, free: 12.89 MB / 1.014 GB Notification: Performance of matching and sorting (n=3): time 0.0004189/0.3448, allocations: 129.4 kB / 1.308 GB, free: 12.76 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.717e-05/0.3449, allocations: 77.11 kB / 1.308 GB, free: 12.66 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002677/0.3452, allocations: 257 kB / 1.309 GB, free: 12.41 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 2.108e-05/0.3452, allocations: 25.7 kB / 1.309 GB, free: 12.38 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 9.384e-05/0.3453, allocations: 128.1 kB / 1.309 GB, free: 12.25 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 2.487e-05/0.3453, allocations: 19.84 kB / 1.309 GB, free: 12.23 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.639e-05/0.3453, allocations: 13.72 kB / 1.309 GB, free: 12.21 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001556/0.3455, allocations: 334.8 kB / 1.309 GB, free: 11.87 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001044/0.3456, allocations: 19.98 kB / 1.309 GB, free: 11.85 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001241/0.3457, allocations: 47.41 kB / 1.309 GB, free: 11.79 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002101/0.3459, allocations: 74.48 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.278e-06/0.3459, allocations: 4 kB / 1.309 GB, free: 11.71 MB / 1.014 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002846/0.3462, allocations: 97.48 kB / 1.309 GB, free: 11.61 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.3462, allocations: 4 kB / 1.309 GB, free: 11.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.965e-06/0.3462, allocations: 8.094 kB / 1.309 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.012e-05/0.3463, allocations: 7.938 kB / 1.309 GB, free: 11.59 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001135/0.3464, allocations: 11.98 kB / 1.309 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.3464, allocations: 4 kB / 1.309 GB, free: 11.57 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.85e-05/0.3465, allocations: 11.98 kB / 1.31 GB, free: 11.56 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.935e-06/0.3465, allocations: 0 / 1.31 GB, free: 11.56 MB / 1.014 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.0001331/0.3466, allocations: 129.8 kB / 1.31 GB, free: 11.42 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.566e-05/0.3466, allocations: 23.86 kB / 1.31 GB, free: 11.4 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.585e-05/0.3467, allocations: 29.11 kB / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.603e-06/0.3467, allocations: 3.938 kB / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.3467, allocations: 3.938 kB / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.896e-06/0.3467, allocations: 288 / 1.31 GB, free: 11.36 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002333/0.3469, allocations: 213.6 kB / 1.31 GB, free: 11.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.203e-06/0.3469, allocations: 0 / 1.31 GB, free: 11.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.949e-05/0.347, allocations: 11.98 kB / 1.31 GB, free: 11.09 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.709e-06/0.347, allocations: 3.984 kB / 1.31 GB, free: 11.08 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.182e-05/0.347, allocations: 3.938 kB / 1.31 GB, free: 11.08 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.347, allocations: 0 / 1.31 GB, free: 11.08 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.347, allocations: 4 kB / 1.31 GB, free: 11.07 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002927/0.3473, allocations: 121 kB / 1.31 GB, free: 10.94 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 8.406e-05/0.3474, allocations: 93.02 kB / 1.31 GB, free: 10.83 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.777e-05/0.3474, allocations: 7.938 kB / 1.31 GB, free: 10.82 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.874e-05/0.3475, allocations: 7.984 kB / 1.31 GB, free: 10.81 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.92e-05/0.3476, allocations: 8 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.708e-05/0.3476, allocations: 7.984 kB / 1.31 GB, free: 10.8 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0002083/0.3478, allocations: 188.4 kB / 1.31 GB, free: 10.62 MB / 1.014 GB Notification: Performance of sort global known variables: time 1e-07/0.3478, allocations: 4 kB / 1.31 GB, free: 10.61 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0002273/0.3481, allocations: 27.88 kB / 1.31 GB, free: 10.59 MB / 1.014 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.0007589/0.3488, allocations: 0.6687 MB / 1.311 GB, free: 9.895 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.000286/0.3491, allocations: 63.83 kB / 1.311 GB, free: 9.832 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 2.324e-06/0.3491, allocations: 0 / 1.311 GB, free: 9.832 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.000108/0.3492, allocations: 23.97 kB / 1.311 GB, free: 9.809 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002918/0.3495, allocations: 38.28 kB / 1.311 GB, free: 9.77 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002358/0.3519, allocations: 1.752 MB / 1.313 GB, free: 7.922 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003971/0.3523, allocations: 0.7313 MB / 1.314 GB, free: 7.164 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 7.772e-05/0.3523, allocations: 24.72 kB / 1.314 GB, free: 7.141 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.549e-05/0.3524, allocations: 47.41 kB / 1.314 GB, free: 7.094 MB / 1.014 GB Notification: Performance of SimCode: time 5.21e-07/0.3524, allocations: 0 / 1.314 GB, free: 7.094 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.3802, allocations: 3.636 MB / 1.317 GB, free: 3.566 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.482/8.863, allocations: 5.531 kB / 1.317 GB, free: 3.562 MB / 1.014 GB " [Timeout remaining time 291] (rm -f Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; mkfifo Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe ; head -c 1048576 < Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe >> ../files/Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.fmu > Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Utilities_IO_Files_Examples_JSONWriter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Buildings_latest_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: 15.40626153210178]