Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Buildings with version 7.0.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") translateModel(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.532/2.532, allocations: 254.9 MB / 269.9 MB, free: 9.629 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001902/0.001901, allocations: 194 kB / 329.5 MB, free: 1.148 MB / 250.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.524/2.524, allocations: 225.6 MB / 0.6001 GB, free: 440 kB / 426.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009255/0.0009253, allocations: 106.2 kB / 0.7074 GB, free: 6.18 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.000481/0.0004812, allocations: 14.23 kB / 0.8242 GB, free: 124.8 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2006/0.2012, allocations: 109.1 MB / 0.9308 GB, free: 24.84 MB / 0.5886 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.0008359/0.2021, allocations: 273.3 kB / 0.931 GB, free: 24.58 MB / 0.5886 GB Notification: Performance of NFInst.instExpressions: time 0.002017/0.2041, allocations: 1.187 MB / 0.9322 GB, free: 23.39 MB / 0.5886 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.283e-05/0.2041, allocations: 0 / 0.9322 GB, free: 23.39 MB / 0.5886 GB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2043, allocations: 3.938 kB / 0.9322 GB, free: 23.38 MB / 0.5886 GB Notification: Performance of NFTyping.typeBindings: time 4.401e-05/0.2043, allocations: 8 kB / 0.9322 GB, free: 23.38 MB / 0.5886 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/Utilities/IO/Python36/Functions/exchange.mo:2:1-113:13:writable] Warning: Pure function ‘Buildings.Utilities.IO.Python36.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0007725/0.2051, allocations: 259.5 kB / 0.9324 GB, free: 23.12 MB / 0.5886 GB Notification: Performance of NFFlatten.flatten: time 0.0001068/0.2052, allocations: 51.88 kB / 0.9325 GB, free: 23.07 MB / 0.5886 GB Notification: Performance of NFFlatten.resolveConnections: time 4.993e-05/0.2053, allocations: 8 kB / 0.9325 GB, free: 23.06 MB / 0.5886 GB Notification: Performance of NFEvalConstants.evaluate: time 5.514e-05/0.2053, allocations: 51.83 kB / 0.9326 GB, free: 23.01 MB / 0.5886 GB Notification: Performance of NFSimplifyModel.simplify: time 6.776e-05/0.2054, allocations: 43.83 kB / 0.9326 GB, free: 22.97 MB / 0.5886 GB Notification: Performance of NFPackage.collectConstants: time 3.426e-05/0.2055, allocations: 4 kB / 0.9326 GB, free: 22.96 MB / 0.5886 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004853/0.206, allocations: 197.7 kB / 0.9328 GB, free: 22.77 MB / 0.5886 GB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.206, allocations: 4 kB / 0.9328 GB, free: 22.77 MB / 0.5886 GB Notification: Performance of NFVerifyModel.verify: time 3.494e-05/0.206, allocations: 33.64 kB / 0.9328 GB, free: 22.73 MB / 0.5886 GB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.2064, allocations: 199.7 kB / 0.933 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of FrontEnd - DAE generated: time 5.31e-06/0.2064, allocations: 0 / 0.933 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of FrontEnd: time 1.784e-06/0.2064, allocations: 0 / 0.933 GB, free: 22.54 MB / 0.5886 GB Notification: Performance of Transformations before backend: time 4.187e-06/0.2064, allocations: 0 / 0.933 GB, free: 22.54 MB / 0.5886 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0003686/0.2068, allocations: 421.2 kB / 0.9334 GB, free: 22.07 MB / 0.5886 GB Notification: Performance of prepare preOptimizeDAE: time 3.654e-05/0.2068, allocations: 8.031 kB / 0.9334 GB, free: 22.06 MB / 0.5886 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.441e-05/0.2069, allocations: 16.78 kB / 0.9334 GB, free: 22.05 MB / 0.5886 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000115/0.207, allocations: 176.6 kB / 0.9336 GB, free: 21.84 MB / 0.5886 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.783e-05/0.207, allocations: 4.375 kB / 0.9336 GB, free: 21.83 MB / 0.5886 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.702e-05/0.2071, allocations: 4.375 kB / 0.9336 GB, free: 21.83 MB / 0.5886 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002827/0.2074, allocations: 129.6 kB / 0.9337 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.506e-06/0.2074, allocations: 0 / 0.9337 GB, free: 21.7 MB / 0.5886 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.838e-05/0.2074, allocations: 8 kB / 0.9337 GB, free: 21.69 MB / 0.5886 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.208e-06/0.2075, allocations: 0 / 0.9337 GB, free: 21.69 MB / 0.5886 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000173/0.2076, allocations: 59.94 kB / 0.9338 GB, free: 21.63 MB / 0.5886 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001399/0.2078, allocations: 161.7 kB / 0.934 GB, free: 21.42 MB / 0.5886 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002086/0.208, allocations: 110.6 kB / 0.9341 GB, free: 21.3 MB / 0.5886 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.2082, allocations: 100.9 kB / 0.9342 GB, free: 21.2 MB / 0.5886 GB Notification: Performance of preOpt evalFunc (simulation): time 5.891e-06/0.2082, allocations: 3.984 kB / 0.9342 GB, free: 21.2 MB / 0.5886 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.589e-05/0.2082, allocations: 50.44 kB / 0.9342 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of pre-optimization done (n=6): time 1.493e-06/0.2083, allocations: 0 / 0.9342 GB, free: 21.14 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6): time 0.0006733/0.2089, allocations: 291.1 kB / 0.9345 GB, free: 20.84 MB / 0.5886 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.452e-05/0.209, allocations: 89.09 kB / 0.9346 GB, free: 20.74 MB / 0.5886 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.789e-05/0.2091, allocations: 117.8 kB / 0.9347 GB, free: 20.61 MB / 0.5886 GB Notification: Performance of collectPreVariables (initialization): time 2.794e-05/0.2091, allocations: 29.7 kB / 0.9347 GB, free: 20.58 MB / 0.5886 GB Notification: Performance of collectInitialEqns (initialization): time 2.77e-05/0.2092, allocations: 84.14 kB / 0.9348 GB, free: 20.49 MB / 0.5886 GB Notification: Performance of collectInitialBindings (initialization): time 4.948e-05/0.2092, allocations: 27.72 kB / 0.9348 GB, free: 20.46 MB / 0.5886 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.099e-05/0.2093, allocations: 384 / 0.9348 GB, free: 20.46 MB / 0.5886 GB Notification: Performance of setup shared object (initialization): time 5.78e-05/0.2093, allocations: 322.9 kB / 0.9351 GB, free: 20.14 MB / 0.5886 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001519/0.2095, allocations: 59.94 kB / 0.9352 GB, free: 20.08 MB / 0.5886 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000146/0.2097, allocations: 68.08 kB / 0.9353 GB, free: 20.02 MB / 0.5886 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001493/0.2098, allocations: 93.66 kB / 0.9353 GB, free: 19.92 MB / 0.5886 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.205e-06/0.2098, allocations: 0 / 0.9353 GB, free: 19.92 MB / 0.5886 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004643/0.2103, allocations: 231.2 kB / 0.9356 GB, free: 19.68 MB / 0.5886 GB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.2104, allocations: 45.69 kB / 0.9356 GB, free: 19.63 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.2104, allocations: 0 / 0.9356 GB, free: 19.63 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.504e-05/0.2104, allocations: 0 / 0.9356 GB, free: 19.63 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.903e-06/0.2104, allocations: 64 / 0.9356 GB, free: 19.63 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.2104, allocations: 4 kB / 0.9356 GB, free: 19.62 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004918/0.2109, allocations: 27.88 kB / 0.9356 GB, free: 19.6 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.244e-05/0.211, allocations: 15.94 kB / 0.9356 GB, free: 19.58 MB / 0.5886 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.0001619/0.2112, allocations: 169.2 kB / 0.9358 GB, free: 19.4 MB / 0.5886 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.054e-05/0.2112, allocations: 15.84 kB / 0.9358 GB, free: 19.39 MB / 0.5886 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.67e-05/0.2113, allocations: 4.375 kB / 0.9358 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.2113, allocations: 0 / 0.9358 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.2113, allocations: 3.984 kB / 0.9358 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.2113, allocations: 4 kB / 0.9358 GB, free: 19.38 MB / 0.5886 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001182/0.2114, allocations: 169.7 kB / 0.936 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2114, allocations: 0 / 0.936 GB, free: 19.16 MB / 0.5886 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.776e-06/0.2114, allocations: 11.86 kB / 0.936 GB, free: 19.15 MB / 0.5886 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2115, allocations: 0 / 0.936 GB, free: 19.15 MB / 0.5886 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.178e-05/0.2115, allocations: 8 kB / 0.936 GB, free: 19.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.525e-06/0.2115, allocations: 4 kB / 0.936 GB, free: 19.14 MB / 0.5886 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.633e-06/0.2115, allocations: 0 / 0.936 GB, free: 19.14 MB / 0.5886 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005548/0.2121, allocations: 294.6 kB / 0.9363 GB, free: 18.82 MB / 0.5886 GB Notification: Performance of postOpt removeConstants (simulation): time 3.676e-05/0.2121, allocations: 92.94 kB / 0.9364 GB, free: 18.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.146e-05/0.2122, allocations: 8 kB / 0.9364 GB, free: 18.71 MB / 0.5886 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003816/0.2126, allocations: 15.98 kB / 0.9364 GB, free: 18.69 MB / 0.5886 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.302e-05/0.2126, allocations: 7.984 kB / 0.9364 GB, free: 18.68 MB / 0.5886 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.314e-05/0.2127, allocations: 23.98 kB / 0.9364 GB, free: 18.66 MB / 0.5886 GB Notification: Performance of sorting global known variables: time 5.49e-05/0.2128, allocations: 91.27 kB / 0.9365 GB, free: 18.57 MB / 0.5886 GB Notification: Performance of sort global known variables: time 4.1e-07/0.2128, allocations: 0 / 0.9365 GB, free: 18.57 MB / 0.5886 GB Notification: Performance of remove unused functions: time 0.0004903/0.2133, allocations: 87.98 kB / 0.9366 GB, free: 18.48 MB / 0.5886 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 (yI1[1],yI2[1],yI2[2]) * Number of discrete states: 3 (yI2[2],yI2[1],yI1[1]) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.001099/0.2144, allocations: 462.8 kB / 0.9371 GB, free: 18.13 MB / 0.5886 GB Notification: Performance of simCode: created initialization part: time 0.0005315/0.2149, allocations: 291.2 kB / 0.9373 GB, free: 17.84 MB / 0.5886 GB Notification: Performance of simCode: created event and clocks part: time 2.285e-06/0.2149, allocations: 3.938 kB / 0.9373 GB, free: 17.83 MB / 0.5886 GB Notification: Performance of simCode: created simulation system equations: time 0.0002839/0.2152, allocations: 211.3 kB / 0.9375 GB, free: 17.61 MB / 0.5886 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000219/0.2155, allocations: 17.48 kB / 0.9376 GB, free: 17.6 MB / 0.5886 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007728/0.2163, allocations: 294.8 kB / 0.9378 GB, free: 17.28 MB / 0.5886 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001219/0.2164, allocations: 0.685 MB / 0.9385 GB, free: 16.57 MB / 0.5886 GB Notification: Performance of simCode: alias equations: time 0.0001014/0.2165, allocations: 55.88 kB / 0.9386 GB, free: 16.52 MB / 0.5886 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.679e-05/0.2165, allocations: 11.44 kB / 0.9386 GB, free: 16.5 MB / 0.5886 GB Notification: Performance of SimCode: time 8.71e-07/0.2165, allocations: 0 / 0.9386 GB, free: 16.5 MB / 0.5886 GB Notification: Performance of Templates: time 0.009216/0.2258, allocations: 3.843 MB / 0.9423 GB, free: 12.68 MB / 0.5886 GB make -j1 -f Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.makefile (rm -f Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; mkfifo Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe >> ../files/Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.sim & ./Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe 2>&1)