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.001387/0.001387, allocations: 103.6 kB / 18.95 MB, free: 2.66 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.001669/0.001669, allocations: 220.2 kB / 22.25 MB, free: 5.254 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.464/1.464, allocations: 230.6 MB / 256 MB, free: 7.797 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.15/3.15, allocations: 0.49 GB / 0.7951 GB, free: 35.57 MB / 0.6231 GB " [Timeout remaining time 177] 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.002016/0.002016, allocations: 67.98 kB / 1.154 GB, free: 25.32 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3305/0.3325, allocations: 176.1 MB / 1.326 GB, free: 1.391 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003199/0.3357, allocations: 1.659 MB / 1.327 GB, free: 15.73 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.001169/0.3368, allocations: 0.5845 MB / 1.328 GB, free: 15.14 MB / 1.029 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.787e-05/0.3369, allocations: 3.938 kB / 1.328 GB, free: 15.13 MB / 1.029 GB Notification: Performance of NFTyping.typeComponents: time 0.0001852/0.3371, allocations: 27.78 kB / 1.328 GB, free: 15.11 MB / 1.029 GB Notification: Performance of NFTyping.typeBindings: time 0.0003314/0.3374, allocations: 63.67 kB / 1.328 GB, free: 15.04 MB / 1.029 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002299/0.3377, allocations: 75.84 kB / 1.328 GB, free: 14.97 MB / 1.029 GB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.3379, allocations: 139.5 kB / 1.328 GB, free: 14.83 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001595/0.3381, allocations: 41.83 kB / 1.328 GB, free: 14.79 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001742/0.3382, allocations: 59.81 kB / 1.328 GB, free: 14.73 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001291/0.3384, allocations: 71.62 kB / 1.328 GB, free: 14.66 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 2.545e-05/0.3384, allocations: 8 kB / 1.328 GB, free: 14.65 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 7.63e-05/0.3385, allocations: 28 kB / 1.329 GB, free: 14.62 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.0001074/0.3386, allocations: 47.83 kB / 1.329 GB, free: 14.57 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 6.962e-05/0.3386, allocations: 43.67 kB / 1.329 GB, free: 14.53 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.0002409/0.3389, allocations: 147.3 kB / 1.329 GB, free: 14.39 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.141e-06/0.3389, allocations: 4 kB / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of FrontEnd: time 1.283e-06/0.3389, allocations: 0 / 1.329 GB, free: 14.38 MB / 1.029 GB Notification: Performance of Transformations before backend: time 5.661e-06/0.3389, allocations: 4 kB / 1.329 GB, free: 14.38 MB / 1.029 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.0007078/0.3396, allocations: 405.2 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of prepare preOptimizeDAE: time 4.411e-05/0.3396, allocations: 8.031 kB / 1.329 GB, free: 13.95 MB / 1.029 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.196e-05/0.3397, allocations: 42.69 kB / 1.329 GB, free: 13.89 MB / 1.029 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001695/0.3399, allocations: 24.83 kB / 1.329 GB, free: 13.87 MB / 1.029 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003586/0.3402, allocations: 197.8 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.115e-05/0.3402, allocations: 384 / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.596e-05/0.3403, allocations: 4.375 kB / 1.329 GB, free: 13.65 MB / 1.029 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.3406, allocations: 165.2 kB / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.874e-06/0.3406, allocations: 0 / 1.33 GB, free: 13.47 MB / 1.029 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.654e-05/0.3406, allocations: 3.984 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.97e-06/0.3406, allocations: 4 kB / 1.33 GB, free: 13.46 MB / 1.029 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002452/0.3409, allocations: 71.88 kB / 1.33 GB, free: 13.39 MB / 1.029 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006162/0.3415, allocations: 331.7 kB / 1.33 GB, free: 13.02 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001496/0.3416, allocations: 46.48 kB / 1.33 GB, free: 12.97 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001135/0.3418, allocations: 28.91 kB / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 1.448e-05/0.3418, allocations: 0 / 1.33 GB, free: 12.94 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002793/0.342, allocations: 148.4 kB / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of pre-optimization done (n=3): time 9.01e-07/0.342, allocations: 0 / 1.33 GB, free: 12.76 MB / 1.029 GB Notification: Performance of matching and sorting (n=3): time 0.0004581/0.3425, allocations: 133.4 kB / 1.33 GB, free: 12.62 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.71e-05/0.3426, allocations: 77.11 kB / 1.33 GB, free: 12.53 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003066/0.3429, allocations: 252.9 kB / 1.331 GB, free: 12.27 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 2.745e-05/0.3429, allocations: 33.7 kB / 1.331 GB, free: 12.23 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001104/0.343, allocations: 124.1 kB / 1.331 GB, free: 12.11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 1.768e-05/0.343, allocations: 3.953 kB / 1.331 GB, free: 12.1 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.569e-05/0.3431, allocations: 21.7 kB / 1.331 GB, free: 12.07 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001698/0.3432, allocations: 322.8 kB / 1.331 GB, free: 11.75 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.3434, allocations: 31.97 kB / 1.331 GB, free: 11.72 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001395/0.3435, allocations: 73.11 kB / 1.331 GB, free: 11.63 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.3437, allocations: 66.47 kB / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.3437, allocations: 0 / 1.331 GB, free: 11.55 MB / 1.029 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003349/0.3441, allocations: 113.5 kB / 1.331 GB, free: 11.44 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 1.42e-05/0.3441, allocations: 4 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.3441, allocations: 0 / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.895e-05/0.3441, allocations: 3.938 kB / 1.331 GB, free: 11.43 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.3442, allocations: 11.98 kB / 1.331 GB, free: 11.42 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.084e-06/0.3442, allocations: 4 kB / 1.331 GB, free: 11.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.3443, allocations: 24.02 kB / 1.331 GB, free: 11.39 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.125e-06/0.3443, allocations: 0 / 1.331 GB, free: 11.39 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.0001185/0.3445, allocations: 132.8 kB / 1.332 GB, free: 11.25 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.222e-05/0.3445, allocations: 16.19 kB / 1.332 GB, free: 11.24 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.355e-05/0.3445, allocations: 21.27 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.3445, allocations: 3.984 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.3445, allocations: 4 kB / 1.332 GB, free: 11.21 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.484e-06/0.3445, allocations: 3.938 kB / 1.332 GB, free: 11.2 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001837/0.3447, allocations: 184.6 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.3447, allocations: 3.938 kB / 1.332 GB, free: 10.98 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.667e-05/0.3448, allocations: 15.98 kB / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.3448, allocations: 0 / 1.332 GB, free: 10.96 MB / 1.029 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.327e-05/0.3448, allocations: 7.938 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.213e-06/0.3448, allocations: 0 / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.619e-06/0.3448, allocations: 3.984 kB / 1.332 GB, free: 10.95 MB / 1.029 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.3451, allocations: 117 kB / 1.332 GB, free: 10.82 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 2.777e-05/0.3452, allocations: 11.91 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.731e-05/0.3452, allocations: 7.938 kB / 1.332 GB, free: 10.8 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.149e-05/0.3453, allocations: 15.98 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.246e-05/0.3453, allocations: 3.984 kB / 1.332 GB, free: 10.78 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.301e-05/0.3454, allocations: 4 kB / 1.332 GB, free: 10.77 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.0001994/0.3456, allocations: 192.5 kB / 1.332 GB, free: 10.58 MB / 1.029 GB Notification: Performance of sort global known variables: time 8e-08/0.3456, allocations: 0 / 1.332 GB, free: 10.58 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.0002289/0.3458, allocations: 27.89 kB / 1.332 GB, free: 10.55 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.0007787/0.3466, allocations: 0.6801 MB / 1.333 GB, free: 9.852 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.000285/0.3469, allocations: 63.81 kB / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.3469, allocations: 0 / 1.333 GB, free: 9.789 MB / 1.029 GB Notification: Performance of simCode: created simulation system equations: time 0.0001165/0.347, allocations: 28.16 kB / 1.333 GB, free: 9.762 MB / 1.029 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003023/0.3473, allocations: 44.81 kB / 1.333 GB, free: 9.723 MB / 1.029 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002296/0.3496, allocations: 1.753 MB / 1.335 GB, free: 7.871 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001237/0.3497, allocations: 110.2 kB / 1.335 GB, free: 7.738 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 6.908e-05/0.3498, allocations: 24.39 kB / 1.335 GB, free: 7.715 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.45e-05/0.3498, allocations: 43.42 kB / 1.335 GB, free: 7.672 MB / 1.029 GB Notification: Performance of SimCode: time 3.1e-07/0.3498, allocations: 0 / 1.335 GB, free: 7.672 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.3823, allocations: 4.313 MB / 1.339 GB, free: 3.527 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/11.99, allocations: 10.22 kB / 1.339 GB, free: 3.52 MB / 1.029 GB " [Timeout remaining time 288] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Utilities.IO.Files.Examples.JSONWriter_res.mat --tempDir=temp_Buildings_12_Buildings_Utilities_IO_Files_Examples_JSONWriter_fmu --startTime=0 --stopTime=2 --stepSize=0.0008 --timeout=400 --tolerance=1e-06 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.mat","/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] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 18.610461398027837]