Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.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.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange") translateModel(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.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.452/2.452, allocations: 254.9 MB / 269.9 MB, free: 9.645 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.001365/0.001365, allocations: 191.4 kB / 329.5 MB, free: 1.152 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.314/2.314, allocations: 225.6 MB / 0.6001 GB, free: 3.668 MB / 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.001006/0.001005, allocations: 98.94 kB / 0.7074 GB, free: 11.04 MB / 0.5261 GB Notification: Performance of FrontEnd - loaded program: time 0.0004923/0.0004925, allocations: 9.969 kB / 0.8242 GB, free: 129.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2332/0.2337, allocations: 109.1 MB / 0.9308 GB, free: 43.41 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0008371/0.2347, allocations: 266.3 kB / 0.931 GB, free: 43.15 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.002134/0.2368, allocations: 1.199 MB / 0.9322 GB, free: 41.94 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.823e-05/0.2369, allocations: 0 / 0.9322 GB, free: 41.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 0.0001261/0.237, allocations: 0 / 0.9322 GB, free: 41.94 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 4.683e-05/0.2371, allocations: 0 / 0.9322 GB, free: 41.94 MB / 0.6042 GB [/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Buildings 7.0.1/Obsolete/Utilities/IO/Python27/Functions/exchange.mo:2:1-109:13:writable] Warning: Pure function ‘Buildings.Obsolete.Utilities.IO.Python27.Functions.exchange‘ contains a call to impure function ‘Modelica.Utilities.System.getEnvironmentVariable‘. Notification: Performance of NFTyping.typeClassSections: time 0.0008881/0.238, allocations: 263.5 kB / 0.9325 GB, free: 41.68 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 0.0001121/0.2381, allocations: 59.86 kB / 0.9325 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 5.283e-05/0.2382, allocations: 7.984 kB / 0.9325 GB, free: 41.62 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 5.837e-05/0.2383, allocations: 43.91 kB / 0.9326 GB, free: 41.57 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 7.111e-05/0.2383, allocations: 43.78 kB / 0.9326 GB, free: 41.53 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 3.39e-05/0.2384, allocations: 4 kB / 0.9326 GB, free: 41.53 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000571/0.239, allocations: 199.6 kB / 0.9328 GB, free: 41.33 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 2.316e-05/0.239, allocations: 15.91 kB / 0.9328 GB, free: 41.32 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.785e-05/0.2391, allocations: 29.7 kB / 0.9328 GB, free: 41.28 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0003364/0.2394, allocations: 191.7 kB / 0.933 GB, free: 41.09 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.2394, allocations: 3.938 kB / 0.933 GB, free: 41.09 MB / 0.6042 GB Notification: Performance of FrontEnd: time 2.265e-06/0.2394, allocations: 0 / 0.933 GB, free: 41.09 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.83e-06/0.2394, allocations: 0 / 0.933 GB, free: 41.09 MB / 0.6042 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.0003898/0.2398, allocations: 417.2 kB / 0.9334 GB, free: 40.63 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.855e-05/0.2399, allocations: 8.031 kB / 0.9334 GB, free: 40.62 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.109e-05/0.24, allocations: 8.844 kB / 0.9334 GB, free: 40.61 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001193/0.2401, allocations: 192.5 kB / 0.9336 GB, free: 40.39 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.537e-05/0.2401, allocations: 8.312 kB / 0.9336 GB, free: 40.38 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.852e-05/0.2402, allocations: 4.375 kB / 0.9336 GB, free: 40.38 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002856/0.2405, allocations: 125.7 kB / 0.9338 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.466e-06/0.2405, allocations: 0 / 0.9338 GB, free: 40.25 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.863e-05/0.2405, allocations: 4 kB / 0.9338 GB, free: 40.24 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.512e-06/0.2406, allocations: 0 / 0.9338 GB, free: 40.24 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001563/0.2407, allocations: 59.94 kB / 0.9338 GB, free: 40.18 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001416/0.2409, allocations: 161.7 kB / 0.934 GB, free: 39.98 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002081/0.2411, allocations: 118.5 kB / 0.9341 GB, free: 39.85 MB / 0.6042 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001795/0.2413, allocations: 100.9 kB / 0.9342 GB, free: 39.75 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 1.034e-05/0.2413, allocations: 0 / 0.9342 GB, free: 39.75 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.426e-05/0.2413, allocations: 38.5 kB / 0.9342 GB, free: 39.7 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 1.332e-06/0.2414, allocations: 0 / 0.9342 GB, free: 39.7 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0006933/0.2421, allocations: 291.1 kB / 0.9345 GB, free: 39.41 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.2421, allocations: 89.11 kB / 0.9346 GB, free: 39.3 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001019/0.2422, allocations: 125.8 kB / 0.9347 GB, free: 39.17 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 2.964e-05/0.2423, allocations: 29.7 kB / 0.9347 GB, free: 39.13 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.89e-05/0.2423, allocations: 88.08 kB / 0.9348 GB, free: 39.04 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 5.191e-05/0.2424, allocations: 23.73 kB / 0.9348 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.095e-05/0.2424, allocations: 0 / 0.9348 GB, free: 39.02 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 5.931e-05/0.2425, allocations: 318.8 kB / 0.9351 GB, free: 38.7 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001468/0.2426, allocations: 60.31 kB / 0.9352 GB, free: 38.64 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001423/0.2428, allocations: 55.95 kB / 0.9353 GB, free: 38.59 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001481/0.2429, allocations: 97.94 kB / 0.9353 GB, free: 38.48 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.866e-06/0.243, allocations: 0 / 0.9353 GB, free: 38.48 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004663/0.2434, allocations: 239.1 kB / 0.9356 GB, free: 38.24 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 5.126e-05/0.2435, allocations: 45.69 kB / 0.9356 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.961e-06/0.2435, allocations: 0 / 0.9356 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.2435, allocations: 0 / 0.9356 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.583e-06/0.2436, allocations: 0 / 0.9356 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.2436, allocations: 0 / 0.9356 GB, free: 38.19 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004868/0.2441, allocations: 23.89 kB / 0.9356 GB, free: 38.16 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.387e-05/0.2441, allocations: 11.98 kB / 0.9356 GB, free: 38.15 MB / 0.6042 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.0001614/0.2443, allocations: 175.4 kB / 0.9358 GB, free: 37.96 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.241e-05/0.2444, allocations: 23.78 kB / 0.9358 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.866e-05/0.2444, allocations: 4.375 kB / 0.9358 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.367e-06/0.2444, allocations: 0 / 0.9358 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.2444, allocations: 0 / 0.9358 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.735e-06/0.2444, allocations: 0 / 0.9358 GB, free: 37.94 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.2446, allocations: 173.6 kB / 0.936 GB, free: 37.72 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.773e-06/0.2446, allocations: 0 / 0.936 GB, free: 37.72 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.284e-06/0.2446, allocations: 3.938 kB / 0.936 GB, free: 37.71 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.975e-06/0.2446, allocations: 4 kB / 0.936 GB, free: 37.71 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.293e-05/0.2446, allocations: 11.98 kB / 0.936 GB, free: 37.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.2447, allocations: 0 / 0.936 GB, free: 37.7 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.743e-06/0.2447, allocations: 4 kB / 0.936 GB, free: 37.7 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000553/0.2452, allocations: 290.6 kB / 0.9363 GB, free: 37.39 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 3.83e-05/0.2453, allocations: 96.92 kB / 0.9364 GB, free: 37.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.961e-05/0.2453, allocations: 8 kB / 0.9364 GB, free: 37.27 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003964/0.2457, allocations: 16.02 kB / 0.9364 GB, free: 37.25 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.152e-05/0.2458, allocations: 11.98 kB / 0.9364 GB, free: 37.24 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.339e-05/0.2459, allocations: 19.98 kB / 0.9365 GB, free: 37.22 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 5.87e-05/0.2459, allocations: 95.2 kB / 0.9365 GB, free: 37.12 MB / 0.6042 GB Notification: Performance of sort global known variables: time 3.61e-07/0.2459, allocations: 0 / 0.9365 GB, free: 37.12 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0004851/0.2464, allocations: 87.98 kB / 0.9366 GB, free: 37.04 MB / 0.6042 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.001064/0.2475, allocations: 464.1 kB / 0.9371 GB, free: 36.69 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0005187/0.2481, allocations: 287.2 kB / 0.9373 GB, free: 36.39 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 3.707e-06/0.2481, allocations: 4.281 kB / 0.9374 GB, free: 36.39 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0002729/0.2483, allocations: 207.3 kB / 0.9375 GB, free: 36.18 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002383/0.2486, allocations: 24 kB / 0.9376 GB, free: 36.15 MB / 0.6042 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007259/0.2493, allocations: 302.7 kB / 0.9379 GB, free: 35.83 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001248/0.2495, allocations: 0.6809 MB / 0.9385 GB, free: 35.12 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 9.948e-05/0.2496, allocations: 59.86 kB / 0.9386 GB, free: 35.06 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.523e-05/0.2496, allocations: 7.438 kB / 0.9386 GB, free: 35.05 MB / 0.6042 GB Notification: Performance of SimCode: time 6.32e-07/0.2496, allocations: 4 kB / 0.9386 GB, free: 35.05 MB / 0.6042 GB Notification: Performance of Templates: time 0.009064/0.2587, allocations: 3.879 MB / 0.9424 GB, free: 31.21 MB / 0.6042 GB make -j1 -f Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.makefile (rm -f Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; mkfifo Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe >> ../files/Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.sim & ./Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange -abortSlowSimulation -alarm=480 -lv LOG_STATS > Buildings_7.0.0_Buildings.Obsolete.Utilities.IO.Python27.Functions.Examples.Exchange.pipe 2>&1)