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.001433/0.001433, allocations: 105.6 kB / 16.45 MB, free: 6.445 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.001517/0.001517, allocations: 187.7 kB / 19.4 MB, free: 3.66 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.474/1.474, allocations: 225.6 MB / 247.8 MB, free: 3.734 MB / 190.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.882/2.882, allocations: 476.7 MB / 0.7611 GB, free: 15.72 MB / 0.6075 GB " [Timeout remaining time 176] 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.001981/0.001981, allocations: 67.89 kB / 1.104 GB, free: 6.59 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.9478/0.9497, allocations: 168.7 MB / 1.269 GB, free: 7.613 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.002866/0.9526, allocations: 1.654 MB / 1.27 GB, free: 6.578 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.0008501/0.9535, allocations: 0.5439 MB / 1.271 GB, free: 6.199 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 8.013e-05/0.9535, allocations: 6.844 kB / 1.271 GB, free: 6.195 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001766/0.9537, allocations: 23.95 kB / 1.271 GB, free: 6.18 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002586/0.954, allocations: 69.45 kB / 1.271 GB, free: 6.141 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001638/0.9541, allocations: 65.62 kB / 1.271 GB, free: 6.109 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.0002005/0.9543, allocations: 134.8 kB / 1.271 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000152/0.9545, allocations: 40.19 kB / 1.271 GB, free: 6.031 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001216/0.9546, allocations: 58.09 kB / 1.271 GB, free: 6.004 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.9547, allocations: 60.66 kB / 1.271 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 2.818e-05/0.9548, allocations: 7.625 kB / 1.271 GB, free: 5.977 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 6.687e-05/0.9548, allocations: 29.84 kB / 1.271 GB, free: 5.965 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 8.953e-05/0.9549, allocations: 45.53 kB / 1.271 GB, free: 5.945 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 5.944e-05/0.955, allocations: 59.72 kB / 1.271 GB, free: 5.902 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.0002552/0.9552, allocations: 152.8 kB / 1.272 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.9552, allocations: 0 / 1.272 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.323e-06/0.9552, allocations: 0 / 1.272 GB, free: 5.832 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 6.222e-06/0.9552, allocations: 0.6875 kB / 1.272 GB, free: 5.832 MB / 0.9981 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.0006209/0.9559, allocations: 474.5 kB / 1.272 GB, free: 5.395 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.282e-05/0.9559, allocations: 13.22 kB / 1.272 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.645e-05/0.9559, allocations: 39.48 kB / 1.272 GB, free: 5.348 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.956, allocations: 20.89 kB / 1.272 GB, free: 5.336 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000297/0.9563, allocations: 246.4 kB / 1.272 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.9563, allocations: 2.781 kB / 1.272 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.67e-05/0.9563, allocations: 8.719 kB / 1.272 GB, free: 5.09 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003031/0.9566, allocations: 115.2 kB / 1.272 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.876e-06/0.9566, allocations: 0 / 1.272 GB, free: 5.031 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.645e-05/0.9566, allocations: 6.266 kB / 1.272 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.859e-06/0.9566, allocations: 0.8438 kB / 1.272 GB, free: 5.027 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002449/0.9569, allocations: 59.86 kB / 1.273 GB, free: 5.02 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005922/0.9575, allocations: 381.2 kB / 1.273 GB, free: 4.703 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001405/0.9576, allocations: 38.52 kB / 1.273 GB, free: 4.676 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.9577, allocations: 28.98 kB / 1.273 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.924e-05/0.9577, allocations: 1.344 kB / 1.273 GB, free: 4.664 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002203/0.958, allocations: 105.4 kB / 1.273 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=3): time 9.82e-07/0.958, allocations: 0 / 1.273 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3): time 0.0004348/0.9584, allocations: 125.2 kB / 1.273 GB, free: 4.527 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.339e-05/0.9584, allocations: 77.89 kB / 1.273 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002494/0.9587, allocations: 253.2 kB / 1.273 GB, free: 4.285 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.373e-05/0.9587, allocations: 30.77 kB / 1.274 GB, free: 4.25 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 5.937e-05/0.9588, allocations: 131 kB / 1.274 GB, free: 4.133 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.832e-05/0.9588, allocations: 5.516 kB / 1.274 GB, free: 4.129 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.666e-05/0.9588, allocations: 14.36 kB / 1.274 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.523e-05/0.9589, allocations: 332.9 kB / 1.274 GB, free: 3.789 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000121/0.959, allocations: 23.64 kB / 1.274 GB, free: 3.785 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001123/0.9591, allocations: 55.11 kB / 1.274 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001968/0.9593, allocations: 65.89 kB / 1.274 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.963e-06/0.9593, allocations: 4.031 kB / 1.274 GB, free: 3.707 MB / 0.9981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002639/0.9596, allocations: 112.6 kB / 1.274 GB, free: 3.648 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.595e-05/0.9596, allocations: 9.125 kB / 1.274 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.9596, allocations: 0.8438 kB / 1.274 GB, free: 3.645 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.9596, allocations: 4.906 kB / 1.274 GB, free: 3.641 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001115/0.9597, allocations: 15.02 kB / 1.274 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.532e-06/0.9597, allocations: 1.031 kB / 1.274 GB, free: 3.637 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.998e-05/0.9598, allocations: 19.88 kB / 1.274 GB, free: 3.629 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.027e-05/0.9598, allocations: 1.719 kB / 1.274 GB, free: 3.629 MB / 0.9981 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 7.869e-05/0.9599, allocations: 130.7 kB / 1.274 GB, free: 3.504 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.958e-05/0.9599, allocations: 23.42 kB / 1.274 GB, free: 3.492 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.506e-05/0.96, allocations: 19.66 kB / 1.274 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.96, allocations: 1.031 kB / 1.274 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.96, allocations: 0 / 1.274 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-06/0.96, allocations: 1.062 kB / 1.274 GB, free: 3.473 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000136/0.9601, allocations: 220.1 kB / 1.275 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.92e-07/0.9601, allocations: 1 kB / 1.275 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.028e-05/0.9602, allocations: 11.5 kB / 1.275 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.9602, allocations: 0.7812 kB / 1.275 GB, free: 3.258 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.353e-06/0.9602, allocations: 3.938 kB / 1.275 GB, free: 3.254 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.9602, allocations: 8.766 kB / 1.275 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.9602, allocations: 0 / 1.275 GB, free: 3.25 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000269/0.9605, allocations: 127.9 kB / 1.275 GB, free: 3.16 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 3.526e-05/0.9605, allocations: 88.42 kB / 1.275 GB, free: 3.059 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.9605, allocations: 5.859 kB / 1.275 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.503e-05/0.9606, allocations: 12.08 kB / 1.275 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.76e-05/0.9607, allocations: 1.656 kB / 1.275 GB, free: 3.055 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.407e-05/0.9607, allocations: 11.03 kB / 1.275 GB, free: 3.051 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001576/0.9608, allocations: 185.7 kB / 1.275 GB, free: 2.945 MB / 0.9981 GB Notification: Performance of sort global known variables: time 9e-08/0.9608, allocations: 4 kB / 1.275 GB, free: 2.941 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0002328/0.9611, allocations: 22.14 kB / 1.275 GB, free: 2.938 MB / 0.9981 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.0005629/0.9616, allocations: 0.6775 MB / 1.276 GB, free: 2.32 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0002785/0.9619, allocations: 58.5 kB / 1.276 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.265e-06/0.9619, allocations: 0 / 1.276 GB, free: 2.309 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001108/0.962, allocations: 35.88 kB / 1.276 GB, free: 2.297 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000308/0.9623, allocations: 47.25 kB / 1.276 GB, free: 2.281 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00209/0.9644, allocations: 1.756 MB / 1.278 GB, free: 16.93 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003623/0.9648, allocations: 0.7202 MB / 1.278 GB, free: 16.22 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 8.738e-05/0.9649, allocations: 19.42 kB / 1.278 GB, free: 16.22 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.918e-05/0.965, allocations: 42.61 kB / 1.278 GB, free: 16.19 MB / 1.014 GB Notification: Performance of SimCode: time 6.61e-07/0.965, allocations: 4 kB / 1.278 GB, free: 16.18 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02802/0.993, allocations: 3.637 MB / 1.282 GB, free: 15.59 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.548/9.541, allocations: 8.031 kB / 1.282 GB, free: 15.58 MB / 1.014 GB " [Timeout remaining time 290] (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: 15.747897773981094]