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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001209/0.001209, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.29/1.29, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.443/2.443, allocations: 437 MB / 0.7104 GB, free: 5.141 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 72.12 kB / 0.8694 GB, free: 4.555 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5662/0.5675, allocations: 151.6 MB / 1.017 GB, free: 2.605 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.001739/0.5693, allocations: 0.5398 MB / 1.018 GB, free: 2.066 MB / 0.7637 GB Notification: Performance of NFInst.instExpressions: time 0.00148/0.5708, allocations: 1.198 MB / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.447e-05/0.5708, allocations: 0 / 1.019 GB, free: 0.8594 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 8.531e-05/0.5709, allocations: 15.97 kB / 1.019 GB, free: 0.8438 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 4.527e-05/0.571, allocations: 3.938 kB / 1.019 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005883/0.5716, allocations: 274.5 kB / 1.019 GB, free: 0.5742 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.0001152/0.5717, allocations: 71.88 kB / 1.019 GB, free: 0.5039 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 3.802e-05/0.5717, allocations: 15.92 kB / 1.019 GB, free: 500 kB / 0.7637 GB Notification: Performance of NFEvalConstants.evaluate: time 4.335e-05/0.5718, allocations: 31.98 kB / 1.02 GB, free: 468 kB / 0.7637 GB Notification: Performance of NFSimplifyModel.simplify: time 4.879e-05/0.5719, allocations: 39.84 kB / 1.02 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFPackage.collectConstants: time 2.077e-05/0.5719, allocations: 0 / 1.02 GB, free: 428 kB / 0.7637 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003664/0.5723, allocations: 195.6 kB / 1.02 GB, free: 232 kB / 0.7637 GB Notification: Performance of NFScalarize.scalarize: time 2.471e-05/0.5723, allocations: 4 kB / 1.02 GB, free: 228 kB / 0.7637 GB Notification: Performance of NFVerifyModel.verify: time 5.835e-05/0.5723, allocations: 31.84 kB / 1.02 GB, free: 196 kB / 0.7637 GB Notification: Performance of NFConvertDAE.convert: time 0.0003444/0.5727, allocations: 251.9 kB / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 3.687e-06/0.5727, allocations: 0 / 1.02 GB, free: 15.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.595e-06/0.5727, allocations: 7.984 kB / 1.02 GB, free: 15.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 7.093e-06/0.5727, allocations: 4 kB / 1.02 GB, free: 15.93 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.0003853/0.5731, allocations: 438.9 kB / 1.02 GB, free: 15.45 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.565e-05/0.5732, allocations: 12.03 kB / 1.02 GB, free: 15.44 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.973e-05/0.5732, allocations: 106 kB / 1.021 GB, free: 15.33 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.196e-05/0.5733, allocations: 84.12 kB / 1.021 GB, free: 15.25 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001389/0.5734, allocations: 247.7 kB / 1.021 GB, free: 14.96 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.977e-05/0.5735, allocations: 158.9 kB / 1.021 GB, free: 14.81 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.466e-05/0.5736, allocations: 154.9 kB / 1.021 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 5.346e-05/0.5736, allocations: 112.9 kB / 1.021 GB, free: 14.54 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.242e-05/0.5737, allocations: 75.28 kB / 1.021 GB, free: 14.46 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.137e-05/0.5737, allocations: 158.5 kB / 1.021 GB, free: 14.31 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.085e-05/0.5738, allocations: 150.6 kB / 1.022 GB, free: 14.16 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.584e-05/0.5738, allocations: 154.6 kB / 1.022 GB, free: 14.01 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002676/0.5741, allocations: 473.8 kB / 1.022 GB, free: 13.5 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 6.313e-05/0.5742, allocations: 173.1 kB / 1.022 GB, free: 13.32 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.019e-05/0.5742, allocations: 80.14 kB / 1.022 GB, free: 13.23 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.647e-05/0.5742, allocations: 83.22 kB / 1.023 GB, free: 13.15 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.878e-05/0.5743, allocations: 117.8 kB / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 9.82e-07/0.5743, allocations: 0 / 1.023 GB, free: 13.03 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 8.615e-05/0.5744, allocations: 33.7 kB / 1.023 GB, free: 12.99 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.591e-05/0.5744, allocations: 134.6 kB / 1.023 GB, free: 12.84 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.5745, allocations: 148 kB / 1.023 GB, free: 12.69 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.021e-05/0.5746, allocations: 25.7 kB / 1.023 GB, free: 12.66 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.579e-05/0.5746, allocations: 96.14 kB / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.553e-06/0.5746, allocations: 0 / 1.023 GB, free: 12.56 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.012e-05/0.5747, allocations: 45.69 kB / 1.023 GB, free: 12.51 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 8.569e-05/0.5748, allocations: 310.8 kB / 1.023 GB, free: 12.2 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000107/0.5749, allocations: 67.94 kB / 1.023 GB, free: 12.13 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.501e-05/0.575, allocations: 55.95 kB / 1.024 GB, free: 12.08 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001168/0.5751, allocations: 98.58 kB / 1.024 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-06/0.5752, allocations: 0 / 1.024 GB, free: 11.97 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003547/0.5755, allocations: 235.1 kB / 1.024 GB, free: 11.73 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 4.059e-05/0.5756, allocations: 49.67 kB / 1.024 GB, free: 11.68 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.927e-06/0.5756, allocations: 3.938 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.079e-05/0.5756, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.82e-07/0.5756, allocations: 0 / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.99e-06/0.5756, allocations: 3.984 kB / 1.024 GB, free: 11.67 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002886/0.5759, allocations: 23.83 kB / 1.024 GB, free: 11.64 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.912e-05/0.5759, allocations: 19.98 kB / 1.024 GB, free: 11.62 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.0001009/0.5761, allocations: 197.1 kB / 1.024 GB, free: 11.42 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.608e-05/0.5761, allocations: 112.8 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.285e-05/0.5762, allocations: 116.5 kB / 1.024 GB, free: 11.18 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.082e-05/0.5762, allocations: 180.2 kB / 1.025 GB, free: 11 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-05/0.5763, allocations: 176.3 kB / 1.025 GB, free: 10.82 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.226e-05/0.5763, allocations: 188.1 kB / 1.025 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002023/0.5766, allocations: 409.2 kB / 1.025 GB, free: 10.17 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.147e-05/0.5766, allocations: 117 kB / 1.025 GB, free: 10.05 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.299e-05/0.5766, allocations: 109 kB / 1.025 GB, free: 9.938 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-05/0.5767, allocations: 176.3 kB / 1.026 GB, free: 9.758 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.174e-05/0.5767, allocations: 180.2 kB / 1.026 GB, free: 9.574 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.014e-05/0.5768, allocations: 180.3 kB / 1.026 GB, free: 9.391 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.938e-05/0.5769, allocations: 184.2 kB / 1.026 GB, free: 9.203 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001206/0.577, allocations: 315.7 kB / 1.026 GB, free: 8.871 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.577, allocations: 190 kB / 1.027 GB, free: 8.66 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.05e-05/0.5771, allocations: 176.3 kB / 1.027 GB, free: 8.48 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.028e-05/0.5772, allocations: 108.9 kB / 1.027 GB, free: 8.367 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.988e-05/0.5773, allocations: 184.2 kB / 1.027 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.074e-05/0.5773, allocations: 109 kB / 1.027 GB, free: 8.066 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.476e-05/0.5774, allocations: 103.2 kB / 1.027 GB, free: 7.965 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.4e-07/0.5774, allocations: 7.875 kB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003307/0.5777, allocations: 71.98 kB / 1.027 GB, free: 7.887 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.0008683/0.5786, allocations: 1.029 MB / 1.028 GB, free: 6.902 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002579/0.5788, allocations: 215.3 kB / 1.029 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.943e-06/0.5789, allocations: 0 / 1.029 GB, free: 6.68 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 4.649e-06/0.5789, allocations: 3.938 kB / 1.029 GB, free: 6.676 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003167/0.5792, allocations: 460.8 kB / 1.029 GB, free: 6.223 MB / 0.7794 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001639/0.5808, allocations: 1.854 MB / 1.031 GB, free: 4.281 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002148/0.5811, allocations: 0.6807 MB / 1.032 GB, free: 3.574 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 6.362e-05/0.5811, allocations: 47.88 kB / 1.032 GB, free: 3.527 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.35e-05/0.5812, allocations: 11.44 kB / 1.032 GB, free: 3.516 MB / 0.7794 GB Notification: Performance of SimCode: time 3.31e-07/0.5812, allocations: 4.031 kB / 1.032 GB, free: 3.512 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5348/1.116, allocations: 3.683 MB / 1.035 GB, free: 15.91 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 7.132/8.248, allocations: 0 / 1.035 GB, free: 15.91 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