Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.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.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,fileNamePrefix="Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001051/0.001051, allocations: 90.52 kB / 15.36 MB, free: 0.7383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.007888/0.007889, allocations: 171.1 kB / 16.26 MB, free: 6.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 223.3 MB / 240.3 MB, free: 5.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.342/2.342, allocations: 437.8 MB / 0.7121 GB, free: 6.992 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0002763/0.0002763, allocations: 8 kB / 0.873 GB, free: 3.191 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5301/0.5304, allocations: 153.8 MB / 1.023 GB, free: 15.86 MB / 0.7794 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.0006707/0.5311, allocations: 272 kB / 1.023 GB, free: 15.59 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001509/0.5326, allocations: 1.191 MB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 1.37e-05/0.5327, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 7.041e-05/0.5328, allocations: 3.984 kB / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 3.613e-05/0.5328, allocations: 0 / 1.025 GB, free: 14.4 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005123/0.5333, allocations: 243.6 kB / 1.025 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 9.966e-05/0.5334, allocations: 71.88 kB / 1.025 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 3.719e-05/0.5335, allocations: 11.92 kB / 1.025 GB, free: 14.08 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 4.551e-05/0.5335, allocations: 35.91 kB / 1.025 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 5.323e-05/0.5336, allocations: 43.84 kB / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.537e-05/0.5336, allocations: 0 / 1.025 GB, free: 14 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003414/0.5339, allocations: 199.6 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.082e-05/0.534, allocations: 4 kB / 1.025 GB, free: 13.8 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 5.9e-05/0.534, allocations: 65.48 kB / 1.025 GB, free: 13.73 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002942/0.5343, allocations: 255.5 kB / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.5344, allocations: 0 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.262e-06/0.5344, allocations: 0 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 3.196e-06/0.5344, allocations: 0 / 1.025 GB, free: 13.48 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.0003517/0.5347, allocations: 415.4 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.452e-05/0.5348, allocations: 8.031 kB / 1.026 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.405e-05/0.5348, allocations: 110 kB / 1.026 GB, free: 12.9 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.069e-05/0.5349, allocations: 88.12 kB / 1.026 GB, free: 12.81 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001289/0.535, allocations: 251.7 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.921e-05/0.5351, allocations: 154.9 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.555e-05/0.5352, allocations: 166.7 kB / 1.027 GB, free: 12.21 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 4.947e-05/0.5352, allocations: 109 kB / 1.027 GB, free: 12.1 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.659e-05/0.5352, allocations: 75.28 kB / 1.027 GB, free: 12.02 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.031e-05/0.5353, allocations: 154.6 kB / 1.027 GB, free: 11.87 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.267e-05/0.5353, allocations: 150.6 kB / 1.027 GB, free: 11.72 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.094e-05/0.5354, allocations: 154.5 kB / 1.027 GB, free: 11.57 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002611/0.5356, allocations: 473.8 kB / 1.028 GB, free: 11.06 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.616e-05/0.5357, allocations: 169.1 kB / 1.028 GB, free: 10.88 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.055e-05/0.5358, allocations: 92.08 kB / 1.028 GB, free: 10.79 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.388e-05/0.5358, allocations: 75.28 kB / 1.028 GB, free: 10.71 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.513e-05/0.5358, allocations: 113.7 kB / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 8.12e-07/0.5358, allocations: 0 / 1.028 GB, free: 10.59 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 7.518e-05/0.5359, allocations: 33.7 kB / 1.028 GB, free: 10.55 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.685e-05/0.536, allocations: 130.7 kB / 1.028 GB, free: 10.41 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.5361, allocations: 149.6 kB / 1.028 GB, free: 10.26 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/0.5361, allocations: 29.7 kB / 1.028 GB, free: 10.22 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 4.738e-05/0.5362, allocations: 88.14 kB / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.674e-06/0.5362, allocations: 0 / 1.029 GB, free: 10.13 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.442e-05/0.5362, allocations: 13.72 kB / 1.029 GB, free: 10.11 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001004/0.5363, allocations: 322.8 kB / 1.029 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001018/0.5364, allocations: 59.94 kB / 1.029 GB, free: 9.73 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.562e-05/0.5365, allocations: 59.95 kB / 1.029 GB, free: 9.672 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001184/0.5367, allocations: 106.5 kB / 1.029 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.633e-06/0.5367, allocations: 0 / 1.029 GB, free: 9.559 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003332/0.537, allocations: 231.1 kB / 1.029 GB, free: 9.32 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.746e-05/0.537, allocations: 45.69 kB / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.306e-06/0.5371, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.893e-06/0.5371, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.91e-07/0.5371, allocations: 0 / 1.029 GB, free: 9.27 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.667e-06/0.5371, allocations: 3.938 kB / 1.029 GB, free: 9.266 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002768/0.5374, allocations: 31.81 kB / 1.029 GB, free: 9.234 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.157e-05/0.5374, allocations: 12.02 kB / 1.029 GB, free: 9.223 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI2[2],yI2[1],yI1[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 1 * 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.0001093/0.5375, allocations: 207 kB / 1.03 GB, free: 9.012 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.723e-05/0.5376, allocations: 116.8 kB / 1.03 GB, free: 8.891 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.957e-05/0.5376, allocations: 104.5 kB / 1.03 GB, free: 8.781 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.968e-05/0.5377, allocations: 176.3 kB / 1.03 GB, free: 8.602 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-05/0.5378, allocations: 184.2 kB / 1.03 GB, free: 8.414 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.542e-05/0.5378, allocations: 192.2 kB / 1.03 GB, free: 8.219 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001925/0.538, allocations: 417.1 kB / 1.031 GB, free: 7.754 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.971e-05/0.538, allocations: 101 kB / 1.031 GB, free: 7.648 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.648e-05/0.5381, allocations: 104.9 kB / 1.031 GB, free: 7.539 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.852e-05/0.5381, allocations: 176.3 kB / 1.031 GB, free: 7.359 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.51e-05/0.5382, allocations: 188.3 kB / 1.031 GB, free: 7.168 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.578e-05/0.5382, allocations: 188.2 kB / 1.031 GB, free: 6.977 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.481e-05/0.5383, allocations: 176.3 kB / 1.032 GB, free: 6.797 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001117/0.5384, allocations: 315.6 kB / 1.032 GB, free: 6.465 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.746e-05/0.5385, allocations: 190.1 kB / 1.032 GB, free: 6.254 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.374e-05/0.5385, allocations: 184.2 kB / 1.032 GB, free: 6.066 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.467e-05/0.5386, allocations: 105 kB / 1.032 GB, free: 5.957 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.424e-05/0.5387, allocations: 180.2 kB / 1.033 GB, free: 5.773 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.737e-05/0.5387, allocations: 101 kB / 1.033 GB, free: 5.668 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.122e-05/0.5388, allocations: 109.5 kB / 1.033 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.41e-07/0.5388, allocations: 0 / 1.033 GB, free: 5.562 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00031/0.5391, allocations: 75.98 kB / 1.033 GB, free: 5.488 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.0008153/0.5399, allocations: 1.044 MB / 1.034 GB, free: 4.488 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002478/0.5402, allocations: 211.3 kB / 1.034 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.684e-06/0.5402, allocations: 0 / 1.034 GB, free: 4.27 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 3.476e-06/0.5402, allocations: 4 kB / 1.034 GB, free: 4.266 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003393/0.5405, allocations: 0.5225 MB / 1.035 GB, free: 3.738 MB / 0.7794 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/legal.html") at compile-time; copying all loaded packages into the FMU Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001584/0.5421, allocations: 1.871 MB / 1.036 GB, free: 1.777 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002049/0.5424, allocations: 0.677 MB / 1.037 GB, free: 1.074 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.645e-05/0.5424, allocations: 59.92 kB / 1.037 GB, free: 1.016 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.707e-05/0.5425, allocations: 19.38 kB / 1.037 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of SimCode: time 2.41e-07/0.5425, allocations: 0 / 1.037 GB, free: 0.9961 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1/1.543, allocations: 3.367 MB / 1.04 GB, free: 13.79 MB / 0.795 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003668/1.543, allocations: 291.2 kB / 1.041 GB, free: 13.41 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.722/5.265, allocations: 0 / 1.041 GB, free: 13.41 MB / 0.795 GB (rm -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; mkfifo Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe >> ../files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat --tempDir=temp_Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.fmu > Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Utilities_IO_Python_3_8_Functions_Examples_Exchange.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches