Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_maint.7.0.x_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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 7.0.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,fileNamePrefix="Buildings_maint_7_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_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/package.mo): time 1.341/1.341, allocations: 251.9 MB / 266.9 MB, free: 11.07 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001402/0.001402, allocations: 180 kB / 326.5 MB, free: 2.277 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.646/1.646, allocations: 205.4 MB / 0.5775 GB, free: 20.3 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008147/0.0008148, allocations: 88.61 kB / 0.6821 GB, free: 12.92 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000301/0.000301, allocations: 13.05 kB / 0.7963 GB, free: 135.2 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2106/0.2109, allocations: 106.3 MB / 0.9002 GB, free: 63.9 MB / 0.6042 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.0007101/0.2117, allocations: 273.1 kB / 0.9004 GB, free: 63.64 MB / 0.6042 GB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2131, allocations: 1.208 MB / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.443e-05/0.2131, allocations: 0 / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeComponents: time 8.152e-05/0.2132, allocations: 0 / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeBindings: time 3.751e-05/0.2132, allocations: 4 kB / 0.9016 GB, free: 62.42 MB / 0.6042 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004848/0.2137, allocations: 255.5 kB / 0.9018 GB, free: 62.17 MB / 0.6042 GB Notification: Performance of NFFlatten.flatten: time 7.618e-05/0.2138, allocations: 47.88 kB / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFFlatten.resolveConnections: time 4.781e-05/0.2139, allocations: 3.938 kB / 0.9019 GB, free: 62.12 MB / 0.6042 GB Notification: Performance of NFEvalConstants.evaluate: time 4.409e-05/0.2139, allocations: 51.89 kB / 0.9019 GB, free: 62.07 MB / 0.6042 GB Notification: Performance of NFSimplifyModel.simplify: time 5.087e-05/0.214, allocations: 39.89 kB / 0.902 GB, free: 62.03 MB / 0.6042 GB Notification: Performance of NFPackage.collectConstants: time 1.969e-05/0.214, allocations: 4 kB / 0.902 GB, free: 62.02 MB / 0.6042 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0003389/0.2143, allocations: 167.7 kB / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.2144, allocations: 0 / 0.9021 GB, free: 61.86 MB / 0.6042 GB Notification: Performance of NFVerifyModel.verify: time 3.714e-05/0.2144, allocations: 41.64 kB / 0.9022 GB, free: 61.81 MB / 0.6042 GB Notification: Performance of NFConvertDAE.convert: time 0.0002314/0.2147, allocations: 191.7 kB / 0.9024 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2147, allocations: 4 kB / 0.9024 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of FrontEnd: time 1.883e-06/0.2147, allocations: 0 / 0.9024 GB, free: 61.62 MB / 0.6042 GB Notification: Performance of Transformations before backend: time 4.899e-06/0.2147, allocations: 0 / 0.9024 GB, free: 61.62 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.000352/0.215, allocations: 417 kB / 0.9028 GB, free: 61.16 MB / 0.6042 GB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2151, allocations: 12.03 kB / 0.9028 GB, free: 61.15 MB / 0.6042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.709e-05/0.2151, allocations: 34.56 kB / 0.9028 GB, free: 61.11 MB / 0.6042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.9e-05/0.2152, allocations: 11.86 kB / 0.9028 GB, free: 61.09 MB / 0.6042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001092/0.2153, allocations: 179 kB / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.2153, allocations: 0 / 0.903 GB, free: 60.88 MB / 0.6042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.928e-05/0.2153, allocations: 8 kB / 0.903 GB, free: 60.87 MB / 0.6042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001983/0.2155, allocations: 121.6 kB / 0.9031 GB, free: 60.75 MB / 0.6042 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.637e-06/0.2156, allocations: 4 kB / 0.9031 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.2156, allocations: 4 kB / 0.9031 GB, free: 60.74 MB / 0.6042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.248e-06/0.2156, allocations: 3.938 kB / 0.9031 GB, free: 60.73 MB / 0.6042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.272e-05/0.2157, allocations: 63.94 kB / 0.9032 GB, free: 60.67 MB / 0.6042 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001287/0.2158, allocations: 169.9 kB / 0.9034 GB, free: 60.46 MB / 0.6042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001245/0.216, allocations: 110.6 kB / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt evalFunc (simulation): time 7.534e-06/0.216, allocations: 0 / 0.9035 GB, free: 60.34 MB / 0.6042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.592e-05/0.216, allocations: 34.62 kB / 0.9035 GB, free: 60.3 MB / 0.6042 GB Notification: Performance of pre-optimization done (n=6): time 8.82e-07/0.216, allocations: 4 kB / 0.9035 GB, free: 60.29 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6): time 0.0004854/0.2165, allocations: 376.1 kB / 0.9039 GB, free: 59.89 MB / 0.6042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.273e-05/0.2165, allocations: 89.05 kB / 0.9039 GB, free: 59.79 MB / 0.6042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.588e-05/0.2166, allocations: 125.7 kB / 0.9041 GB, free: 59.66 MB / 0.6042 GB Notification: Performance of collectPreVariables (initialization): time 1.747e-05/0.2166, allocations: 25.7 kB / 0.9041 GB, free: 59.62 MB / 0.6042 GB Notification: Performance of collectInitialEqns (initialization): time 2.743e-05/0.2167, allocations: 88.14 kB / 0.9042 GB, free: 59.54 MB / 0.6042 GB Notification: Performance of collectInitialBindings (initialization): time 4.41e-05/0.2167, allocations: 15.75 kB / 0.9042 GB, free: 59.52 MB / 0.6042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 1.49e-05/0.2167, allocations: 8 kB / 0.9042 GB, free: 59.51 MB / 0.6042 GB Notification: Performance of setup shared object (initialization): time 6.125e-05/0.2168, allocations: 322.8 kB / 0.9045 GB, free: 59.19 MB / 0.6042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 7.926e-05/0.2169, allocations: 63.94 kB / 0.9046 GB, free: 59.12 MB / 0.6042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 7.33e-05/0.217, allocations: 59.95 kB / 0.9046 GB, free: 59.07 MB / 0.6042 GB Notification: Performance of analyzeInitialSystem (initialization): time 8.805e-05/0.2171, allocations: 89.59 kB / 0.9047 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.853e-06/0.2171, allocations: 0 / 0.9047 GB, free: 58.97 MB / 0.6042 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002568/0.2173, allocations: 227.2 kB / 0.9049 GB, free: 58.74 MB / 0.6042 GB Notification: Performance of prepare postOptimizeDAE: time 4.125e-05/0.2174, allocations: 45.69 kB / 0.905 GB, free: 58.69 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.672e-06/0.2174, allocations: 3.984 kB / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.2174, allocations: 0 / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.573e-06/0.2174, allocations: 0 / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.4e-06/0.2174, allocations: 4.062 kB / 0.905 GB, free: 58.68 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.2178, allocations: 23.89 kB / 0.905 GB, free: 58.66 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.502e-05/0.2178, allocations: 15.98 kB / 0.905 GB, free: 58.64 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.0001074/0.2179, allocations: 167.5 kB / 0.9052 GB, free: 58.46 MB / 0.6042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.588e-05/0.218, allocations: 15.89 kB / 0.9052 GB, free: 58.45 MB / 0.6042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.18e-05/0.218, allocations: 4.375 kB / 0.9052 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-06/0.218, allocations: 0 / 0.9052 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.266e-06/0.218, allocations: 0 / 0.9052 GB, free: 58.44 MB / 0.6042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.218, allocations: 8 kB / 0.9052 GB, free: 58.43 MB / 0.6042 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.414e-05/0.2181, allocations: 173.6 kB / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.51e-07/0.2181, allocations: 0 / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.61e-07/0.2181, allocations: 0 / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.984e-06/0.2181, allocations: 4 kB / 0.9054 GB, free: 58.21 MB / 0.6042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.2181, allocations: 11.98 kB / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.232e-06/0.2181, allocations: 256 / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.51e-07/0.2182, allocations: 0 / 0.9054 GB, free: 58.2 MB / 0.6042 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003197/0.2185, allocations: 298.8 kB / 0.9057 GB, free: 57.88 MB / 0.6042 GB Notification: Performance of postOpt removeConstants (simulation): time 2.67e-05/0.2185, allocations: 96.97 kB / 0.9058 GB, free: 57.77 MB / 0.6042 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.438e-05/0.2186, allocations: 11.98 kB / 0.9058 GB, free: 57.76 MB / 0.6042 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.2188, allocations: 15.98 kB / 0.9058 GB, free: 57.74 MB / 0.6042 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.057e-05/0.2188, allocations: 11.92 kB / 0.9058 GB, free: 57.73 MB / 0.6042 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.333e-05/0.2188, allocations: 19.98 kB / 0.9058 GB, free: 57.71 MB / 0.6042 GB Notification: Performance of sorting global known variables: time 3.545e-05/0.2189, allocations: 91.27 kB / 0.9059 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of sort global known variables: time 1.51e-07/0.2189, allocations: 4 kB / 0.9059 GB, free: 57.62 MB / 0.6042 GB Notification: Performance of remove unused functions: time 0.0003203/0.2192, allocations: 87.92 kB / 0.906 GB, free: 57.53 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.001196/0.2204, allocations: 1.113 MB / 0.9071 GB, free: 56.48 MB / 0.6042 GB Notification: Performance of simCode: created initialization part: time 0.0003003/0.2207, allocations: 287.2 kB / 0.9073 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.2207, allocations: 0 / 0.9073 GB, free: 56.19 MB / 0.6042 GB Notification: Performance of simCode: created simulation system equations: time 0.0001493/0.2209, allocations: 215.4 kB / 0.9076 GB, free: 55.97 MB / 0.6042 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001095/0.221, allocations: 10.41 kB / 0.9076 GB, free: 55.96 MB / 0.6042 GB Warning: Could not resolve URI ("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.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.0005675/0.2216, allocations: 328.2 kB / 0.9079 GB, free: 55.6 MB / 0.6042 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001195/0.2217, allocations: 0.6887 MB / 0.9086 GB, free: 54.88 MB / 0.6042 GB Notification: Performance of simCode: alias equations: time 6.254e-05/0.2218, allocations: 51.86 kB / 0.9086 GB, free: 54.83 MB / 0.6042 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.037e-05/0.2218, allocations: 15.5 kB / 0.9086 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of SimCode: time 2.41e-07/0.2218, allocations: 0 / 0.9086 GB, free: 54.82 MB / 0.6042 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2658/0.4876, allocations: 4.655 MB / 0.9132 GB, free: 50.31 MB / 0.6042 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001961/0.4878, allocations: 280.8 kB / 0.9134 GB, free: 49.95 MB / 0.6042 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -c -o Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.o Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.c In file included from Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.c:7: In file included from ./Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources" -c -o Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.o Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c In file included from Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c:2: In file included from ./Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c:7: In file included from ./Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.3-maint.7.0.x/Resources/C-Sources/pythonWrapper.c:22:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_maint_7_0_x_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.o] Error 1