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: translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|yR1.1.|yI1.1.|yR2.1.|yR2.2.|yI2.1.|yI2.2.",fileNamePrefix="Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00108/0.00108, allocations: 91.12 kB / 15.06 MB, free: 1.078 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.001346/0.001346, allocations: 172.7 kB / 15.95 MB, free: 192 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.508/1.508, allocations: 223.3 MB / 240 MB, free: 5.422 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.811/2.811, allocations: 437.7 MB / 0.7117 GB, free: 7.121 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.0003525/0.0003526, allocations: 12 kB / 0.8722 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7797/0.78, allocations: 153.8 MB / 1.022 GB, free: 52 kB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange): time 0.000913/0.781, allocations: 275.8 kB / 1.023 GB, free: 15.79 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001641/0.7827, allocations: 1.113 MB / 1.024 GB, free: 14.67 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.582e-05/0.7827, allocations: 4 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0001022/0.7828, allocations: 4 kB / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 5.17e-05/0.7829, allocations: 0 / 1.024 GB, free: 14.66 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005706/0.7834, allocations: 243.2 kB / 1.024 GB, free: 14.43 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.7836, allocations: 63.8 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 5.579e-05/0.7836, allocations: 4 kB / 1.024 GB, free: 14.36 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 6.197e-05/0.7837, allocations: 55.88 kB / 1.024 GB, free: 14.3 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 6.27e-05/0.7838, allocations: 31.92 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 1.81e-05/0.7838, allocations: 4 kB / 1.024 GB, free: 14.27 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003844/0.7842, allocations: 175.7 kB / 1.024 GB, free: 14.1 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 2.633e-05/0.7842, allocations: 7.938 kB / 1.024 GB, free: 14.09 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 3.852e-05/0.7843, allocations: 29.7 kB / 1.024 GB, free: 14.05 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0002595/0.7845, allocations: 187.7 kB / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 6.252e-06/0.7845, allocations: 0 / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of FrontEnd: time 2.956e-06/0.7846, allocations: 0 / 1.025 GB, free: 13.87 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 5.59e-06/0.7846, allocations: 0 / 1.025 GB, free: 13.87 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.0004477/0.785, allocations: 422.9 kB / 1.025 GB, free: 13.41 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 4.475e-05/0.7851, allocations: 8.562 kB / 1.025 GB, free: 13.4 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.517e-05/0.7852, allocations: 87.19 kB / 1.025 GB, free: 13.31 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001752/0.7853, allocations: 254.3 kB / 1.025 GB, free: 13.02 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.417e-05/0.7854, allocations: 154.5 kB / 1.025 GB, free: 12.87 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.942e-05/0.7855, allocations: 158.6 kB / 1.026 GB, free: 12.71 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 7.312e-05/0.7856, allocations: 109 kB / 1.026 GB, free: 12.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.307e-05/0.7856, allocations: 75.28 kB / 1.026 GB, free: 12.53 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.397e-05/0.7856, allocations: 154.6 kB / 1.026 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.216e-05/0.7857, allocations: 150.6 kB / 1.026 GB, free: 12.23 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.619e-05/0.7858, allocations: 166.5 kB / 1.026 GB, free: 12.06 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003261/0.7861, allocations: 465.9 kB / 1.027 GB, free: 11.56 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 8.318e-05/0.7862, allocations: 173.1 kB / 1.027 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 3.726e-05/0.7862, allocations: 84.09 kB / 1.027 GB, free: 11.29 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.7863, allocations: 79.27 kB / 1.027 GB, free: 11.21 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.085e-05/0.7863, allocations: 105.8 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=0): time 1.082e-06/0.7863, allocations: 4 kB / 1.027 GB, free: 11.1 MB / 0.7794 GB Notification: Performance of matching and sorting (n=0): time 9.353e-05/0.7864, allocations: 45.53 kB / 1.027 GB, free: 11.05 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.015e-05/0.7865, allocations: 126.7 kB / 1.027 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001556/0.7866, allocations: 149.6 kB / 1.027 GB, free: 10.75 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 2.245e-05/0.7867, allocations: 29.7 kB / 1.027 GB, free: 10.72 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 5.826e-05/0.7867, allocations: 88.14 kB / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.984e-06/0.7867, allocations: 0 / 1.027 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.537e-05/0.7868, allocations: 7.938 kB / 1.027 GB, free: 10.62 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001141/0.7869, allocations: 318.8 kB / 1.028 GB, free: 10.3 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001091/0.787, allocations: 63.94 kB / 1.028 GB, free: 10.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.923e-05/0.7871, allocations: 59.94 kB / 1.028 GB, free: 10.18 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001197/0.7872, allocations: 85.67 kB / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7872, allocations: 0 / 1.028 GB, free: 10.09 MB / 0.7794 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003724/0.7876, allocations: 239.1 kB / 1.028 GB, free: 9.844 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 5.407e-05/0.7877, allocations: 45.67 kB / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.571e-06/0.7877, allocations: 0 / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.164e-05/0.7877, allocations: 0 / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.92e-07/0.7877, allocations: 0 / 1.028 GB, free: 9.793 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.7877, allocations: 4.062 kB / 1.028 GB, free: 9.789 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002877/0.788, allocations: 27.83 kB / 1.028 GB, free: 9.762 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.781e-05/0.7881, allocations: 19.92 kB / 1.028 GB, free: 9.742 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 (yI1[1],yI2[1],yI2[2]) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.000126/0.7882, allocations: 197.1 kB / 1.028 GB, free: 9.539 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.027e-05/0.7883, allocations: 108.8 kB / 1.029 GB, free: 9.426 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.525e-05/0.7883, allocations: 116.5 kB / 1.029 GB, free: 9.305 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.768e-05/0.7884, allocations: 184.2 kB / 1.029 GB, free: 9.117 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.574e-05/0.7885, allocations: 184.2 kB / 1.029 GB, free: 8.93 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.018e-05/0.7885, allocations: 176.3 kB / 1.029 GB, free: 8.75 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002157/0.7887, allocations: 413.2 kB / 1.03 GB, free: 8.289 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.509e-05/0.7888, allocations: 104.9 kB / 1.03 GB, free: 8.18 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.777e-05/0.7888, allocations: 105 kB / 1.03 GB, free: 8.07 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 6.585e-05/0.7889, allocations: 184.2 kB / 1.03 GB, free: 7.883 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.935e-05/0.789, allocations: 184.2 kB / 1.03 GB, free: 7.695 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.746e-05/0.789, allocations: 180.3 kB / 1.03 GB, free: 7.512 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.564e-05/0.7891, allocations: 180.2 kB / 1.031 GB, free: 7.328 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001389/0.7892, allocations: 311.8 kB / 1.031 GB, free: 7 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.643e-05/0.7893, allocations: 194 kB / 1.031 GB, free: 6.785 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.917e-05/0.7894, allocations: 176.3 kB / 1.031 GB, free: 6.605 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.39e-05/0.7895, allocations: 108.9 kB / 1.031 GB, free: 6.492 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.27e-05/0.7896, allocations: 184.3 kB / 1.031 GB, free: 6.305 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.089e-05/0.7896, allocations: 108.9 kB / 1.032 GB, free: 6.191 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 6.771e-05/0.7897, allocations: 104.5 kB / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7897, allocations: 0 / 1.032 GB, free: 6.09 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003478/0.79, allocations: 71.97 kB / 1.032 GB, free: 6.02 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007562/0.7908, allocations: 401.7 kB / 1.032 GB, free: 5.684 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0002919/0.7911, allocations: 211.3 kB / 1.032 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 3.025e-06/0.7911, allocations: 0 / 1.032 GB, free: 5.465 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 1.884e-06/0.7911, allocations: 4 kB / 1.032 GB, free: 5.461 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003874/0.7915, allocations: 0.5288 MB / 1.033 GB, free: 4.93 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003169/0.7918, allocations: 242 kB / 1.033 GB, free: 4.664 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002262/0.7921, allocations: 0.677 MB / 1.034 GB, free: 3.961 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 7.872e-05/0.7922, allocations: 55.86 kB / 1.034 GB, free: 3.906 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.052e-05/0.7922, allocations: 15.44 kB / 1.034 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of SimCode: time 2.21e-07/0.7922, allocations: 0 / 1.034 GB, free: 3.891 MB / 0.7794 GB Notification: Performance of Templates: time 0.005533/0.7977, allocations: 2.527 MB / 1.036 GB, free: 1.383 MB / 0.7794 GB make -j1 -f Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange.makefile (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 & ./Buildings_10_Buildings.Utilities.IO.Python_3_8.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/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