Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 8.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,fileNamePrefix="Buildings_maint_8_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/package.mo): time 1.403/1.403, allocations: 285.5 MB / 292.8 MB, free: 10.48 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.000968/0.000968, allocations: 181.2 kB / 361.1 MB, free: 7.078 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.174/1.174, allocations: 205.1 MB / 0.6195 GB, free: 10.27 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008078/0.0008078, allocations: 90.59 kB / 0.7325 GB, free: 44.23 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.2173/0.2182, allocations: 121.5 MB / 0.8512 GB, free: 2.859 MB / 0.5886 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4988/0.717, allocations: 115.3 MB / 0.9638 GB, free: 78.17 MB / 0.6667 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.151/0.868, allocations: 140.2 MB / 1.101 GB, free: 15.74 MB / 0.7136 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001909/0.8682, allocations: 92.03 kB / 1.101 GB, free: 15.66 MB / 0.7136 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.0319/0.9001, allocations: 12.33 MB / 1.113 GB, free: 3.402 MB / 0.7136 GB Notification: Performance of prepare preOptimizeDAE: time 3.324e-05/0.9002, allocations: 8 kB / 1.113 GB, free: 3.395 MB / 0.7136 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.296e-05/0.9002, allocations: 9.875 kB / 1.113 GB, free: 3.387 MB / 0.7136 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001233/0.9004, allocations: 175 kB / 1.113 GB, free: 3.176 MB / 0.7136 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.095e-05/0.9004, allocations: 3.938 kB / 1.113 GB, free: 3.172 MB / 0.7136 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.469e-05/0.9004, allocations: 12 kB / 1.113 GB, free: 3.16 MB / 0.7136 GB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000119/0.9005, allocations: 59.95 kB / 1.113 GB, free: 3.102 MB / 0.7136 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001647/0.9007, allocations: 121.6 kB / 1.113 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.57e-06/0.9007, allocations: 0 / 1.113 GB, free: 2.977 MB / 0.7136 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.9008, allocations: 8.938 kB / 1.113 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.306e-06/0.9008, allocations: 0 / 1.113 GB, free: 2.969 MB / 0.7136 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001143/0.9009, allocations: 134.2 kB / 1.113 GB, free: 2.801 MB / 0.7136 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001285/0.901, allocations: 114.6 kB / 1.113 GB, free: 2.68 MB / 0.7136 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001369/0.9012, allocations: 100.9 kB / 1.114 GB, free: 2.578 MB / 0.7136 GB Notification: Performance of preOpt evalFunc (simulation): time 5.911e-06/0.9012, allocations: 4 kB / 1.114 GB, free: 2.574 MB / 0.7136 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.816e-05/0.9012, allocations: 34.5 kB / 1.114 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of pre-optimization done (n=6): time 1.042e-06/0.9012, allocations: 0 / 1.114 GB, free: 2.531 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6): time 0.0004623/0.9017, allocations: 189.5 kB / 1.114 GB, free: 2.34 MB / 0.7136 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.76e-05/0.9017, allocations: 89.09 kB / 1.114 GB, free: 2.234 MB / 0.7136 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.317e-05/0.9018, allocations: 121.8 kB / 1.114 GB, free: 2.109 MB / 0.7136 GB Notification: Performance of collectPreVariables (initialization): time 2.437e-05/0.9018, allocations: 30.58 kB / 1.114 GB, free: 2.074 MB / 0.7136 GB Notification: Performance of collectInitialEqns (initialization): time 2.943e-05/0.9019, allocations: 84.14 kB / 1.114 GB, free: 1.988 MB / 0.7136 GB Notification: Performance of collectInitialBindings (initialization): time 3.542e-05/0.9019, allocations: 23.73 kB / 1.114 GB, free: 1.965 MB / 0.7136 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.556e-05/0.9019, allocations: 4 kB / 1.114 GB, free: 1.961 MB / 0.7136 GB Notification: Performance of setup shared object (initialization): time 9.382e-05/0.902, allocations: 314.8 kB / 1.114 GB, free: 1.645 MB / 0.7136 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.827e-05/0.9021, allocations: 59.95 kB / 1.114 GB, free: 1.586 MB / 0.7136 GB Notification: Performance of partitionIndependentBlocks (initialization): time 8.141e-05/0.9022, allocations: 61.7 kB / 1.114 GB, free: 1.527 MB / 0.7136 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001989/0.9024, allocations: 67.94 kB / 1.115 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.707e-06/0.9024, allocations: 0 / 1.115 GB, free: 1.461 MB / 0.7136 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0003737/0.9028, allocations: 198.2 kB / 1.115 GB, free: 1.262 MB / 0.7136 GB Notification: Performance of prepare postOptimizeDAE: time 1.109e-05/0.9028, allocations: 8 kB / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.466e-06/0.9028, allocations: 0 / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.604e-06/0.9028, allocations: 0 / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.41e-07/0.9028, allocations: 0 / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.815e-06/0.9029, allocations: 0 / 1.115 GB, free: 1.254 MB / 0.7136 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002075/0.9031, allocations: 19.89 kB / 1.115 GB, free: 1.234 MB / 0.7136 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.093e-05/0.9031, allocations: 15.98 kB / 1.115 GB, free: 1.219 MB / 0.7136 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 () * 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.0001295/0.9032, allocations: 155.4 kB / 1.115 GB, free: 1.055 MB / 0.7136 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.702e-05/0.9033, allocations: 11.91 kB / 1.115 GB, free: 1.043 MB / 0.7136 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.539e-05/0.9033, allocations: 12.38 kB / 1.115 GB, free: 1.031 MB / 0.7136 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.947e-06/0.9033, allocations: 5.281 kB / 1.115 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.847e-06/0.9033, allocations: 0 / 1.115 GB, free: 1.027 MB / 0.7136 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.9033, allocations: 3.984 kB / 1.115 GB, free: 1.023 MB / 0.7136 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001027/0.9034, allocations: 150.2 kB / 1.115 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.32e-07/0.9034, allocations: 0 / 1.115 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.623e-06/0.9034, allocations: 1.312 kB / 1.115 GB, free: 0.8398 MB / 0.7136 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.132e-06/0.9035, allocations: 3.938 kB / 1.115 GB, free: 0.8359 MB / 0.7136 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.56e-05/0.9035, allocations: 15.98 kB / 1.115 GB, free: 0.8203 MB / 0.7136 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.414e-06/0.9035, allocations: 3.906 kB / 1.115 GB, free: 0.8164 MB / 0.7136 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.175e-06/0.9035, allocations: 5.219 kB / 1.115 GB, free: 0.8164 MB / 0.7136 GB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004377/0.9039, allocations: 248.8 kB / 1.115 GB, free: 0.5547 MB / 0.7136 GB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005674/0.9045, allocations: 0.6106 MB / 1.116 GB, free: 15.92 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 5.256e-05/0.9046, allocations: 97.06 kB / 1.116 GB, free: 15.81 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.863e-05/0.9047, allocations: 4 kB / 1.116 GB, free: 15.8 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001993/0.9049, allocations: 15.98 kB / 1.116 GB, free: 15.79 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.981e-05/0.9049, allocations: 8 kB / 1.116 GB, free: 15.78 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.182e-05/0.905, allocations: 19.89 kB / 1.116 GB, free: 15.76 MB / 0.7292 GB Notification: Performance of sort global known variables: time 5.294e-05/0.905, allocations: 93.14 kB / 1.116 GB, free: 15.67 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.001013/0.906, allocations: 123.8 kB / 1.116 GB, free: 15.55 MB / 0.7292 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]) * 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 [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Utilities/IO/Python36/Functions/BaseClasses/exchange.mo:2:1-81:13:writable] Warning: Could not find library python3.6m in either of: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.so /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.so [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Utilities/IO/Python36/Functions/BaseClasses/PythonObject.mo:5:5-46:20:writable] Warning: Could not find library python3.6m in either of: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.so /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.so [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Utilities/IO/Python36/Functions/BaseClasses/PythonObject.mo:48:3-78:17:writable] Warning: Could not find library python3.6m in either of: /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib/x86_64-linux-gnu/omc/libpython3.6m.so /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.a /var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OMCompiler/build/lib//libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/binaries/Buildings/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/x86_64-linux/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/linux64/libpython3.6m.so /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.a /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.1-maint.8.0.x/Resources/Library/libpython3.6m.so Notification: Performance of Backend phase and start with SimCode phase: time 0.0007833/0.9068, allocations: 431.8 kB / 1.117 GB, free: 15.24 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002975/0.9071, allocations: 209.6 kB / 1.117 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.9071, allocations: 0 / 1.117 GB, free: 15.03 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001785/0.9073, allocations: 181.6 kB / 1.117 GB, free: 14.85 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001054/0.9074, allocations: 7.938 kB / 1.117 GB, free: 14.84 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009899/0.9084, allocations: 464.8 kB / 1.118 GB, free: 14.37 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002945/0.9087, allocations: 0.6927 MB / 1.118 GB, free: 13.65 MB / 0.7292 GB Notification: Performance of SimCode: time 3.1e-07/0.9088, allocations: 4 kB / 1.118 GB, free: 13.64 MB / 0.7292 GB (rm -f Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; mkfifo Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe ; head -c 1048576 < Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe >> ../files/Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Buildings_maint_8_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_maint_8_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.fmu > Buildings_maint.8.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.pipe 2>&1)