Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_6.0.0_Buildings.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject.conf.json Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo): time 0.01092/0.01092, allocations: 109.7 kB / 15.05 MB, free: 5.934 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo): time 0.001202/0.001202, allocations: 183.1 kB / 15.94 MB, free: 5.898 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo): time 2.012/2.012, allocations: 194.6 MB / 211.3 MB, free: 11.08 MB / 170.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 2.239/2.239, allocations: 236.2 MB / 492.6 MB, free: 11.34 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004756/0.0004756, allocations: 12 kB / 0.587 GB, free: 2.078 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7407/0.7412, allocations: 98.72 MB / 0.6834 GB, free: 16.66 MB / 0.5261 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2439/0.9852, allocations: 126 MB / 0.8065 GB, free: 168 kB / 0.6198 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003552/0.9856, allocations: 87.94 kB / 0.8066 GB, free: 80 kB / 0.6198 GB Notification: Performance of FrontEnd - DAE generated: time 0.02294/1.009, allocations: 4.64 MB / 0.8111 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of FrontEnd: time 2.244e-06/1.009, allocations: 4 kB / 0.8111 GB, free: 11.41 MB / 0.6355 GB Notification: Performance of Transformations before backend: time 1.112e-05/1.009, allocations: 4 kB / 0.8111 GB, free: 11.4 MB / 0.6355 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.0005246/1.009, allocations: 375.3 kB / 0.8115 GB, free: 10.99 MB / 0.6355 GB Notification: Performance of prepare preOptimizeDAE: time 5.132e-05/1.009, allocations: 8.031 kB / 0.8115 GB, free: 10.98 MB / 0.6355 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.06e-05/1.009, allocations: 34.56 kB / 0.8115 GB, free: 10.94 MB / 0.6355 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.932e-05/1.009, allocations: 11.94 kB / 0.8115 GB, free: 10.93 MB / 0.6355 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000135/1.01, allocations: 159.1 kB / 0.8117 GB, free: 10.73 MB / 0.6355 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.408e-05/1.01, allocations: 3.984 kB / 0.8117 GB, free: 10.73 MB / 0.6355 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.668e-05/1.01, allocations: 4 kB / 0.8117 GB, free: 10.72 MB / 0.6355 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001512/1.01, allocations: 45.69 kB / 0.8117 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.736e-06/1.01, allocations: 0 / 0.8117 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.34e-05/1.01, allocations: 0 / 0.8117 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.412e-06/1.01, allocations: 0 / 0.8117 GB, free: 10.67 MB / 0.6355 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.511e-05/1.01, allocations: 15.88 kB / 0.8117 GB, free: 10.66 MB / 0.6355 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00023/1.01, allocations: 157.7 kB / 0.8119 GB, free: 10.45 MB / 0.6355 GB Notification: Performance of preOpt comSubExp (simulation): time 8.413e-05/1.01, allocations: 22.61 kB / 0.8119 GB, free: 10.42 MB / 0.6355 GB Notification: Performance of preOpt evalFunc (simulation): time 3.791e-05/1.01, allocations: 12.05 kB / 0.8119 GB, free: 10.41 MB / 0.6355 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.655e-05/1.01, allocations: 30.56 kB / 0.812 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of pre-optimization done (n=2): time 1.643e-06/1.01, allocations: 0 / 0.812 GB, free: 10.37 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2): time 0.0002331/1.011, allocations: 61.62 kB / 0.812 GB, free: 10.3 MB / 0.6355 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.57e-05/1.011, allocations: 55.34 kB / 0.8121 GB, free: 10.24 MB / 0.6355 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.346e-05/1.011, allocations: 85 kB / 0.8121 GB, free: 10.15 MB / 0.6355 GB Notification: Performance of collectPreVariables (initialization): time 2.431e-05/1.011, allocations: 33.95 kB / 0.8122 GB, free: 10.11 MB / 0.6355 GB Notification: Performance of collectInitialEqns (initialization): time 4.305e-05/1.011, allocations: 88.12 kB / 0.8123 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of collectInitialBindings (initialization): time 2.725e-05/1.011, allocations: 3.906 kB / 0.8123 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.012e-06/1.011, allocations: 0 / 0.8123 GB, free: 10.02 MB / 0.6355 GB Notification: Performance of setup shared object (initialization): time 0.0001186/1.011, allocations: 314.8 kB / 0.8126 GB, free: 9.699 MB / 0.6355 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.052e-05/1.011, allocations: 7.938 kB / 0.8126 GB, free: 9.691 MB / 0.6355 GB Notification: Performance of partitionIndependentBlocks (initialization): time 5.958e-05/1.011, allocations: 15.98 kB / 0.8126 GB, free: 9.676 MB / 0.6355 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.768e-05/1.011, allocations: 4 kB / 0.8126 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/1.011, allocations: 0 / 0.8126 GB, free: 9.672 MB / 0.6355 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.000132/1.011, allocations: 57.69 kB / 0.8126 GB, free: 9.609 MB / 0.6355 GB Notification: Performance of prepare postOptimizeDAE: time 2.103e-05/1.011, allocations: 4 kB / 0.8127 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.032e-05/1.011, allocations: 0 / 0.8127 GB, free: 9.605 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/1.011, allocations: 7.984 kB / 0.8127 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.563e-06/1.011, allocations: 0 / 0.8127 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.582e-06/1.011, allocations: 0 / 0.8127 GB, free: 9.598 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.422e-05/1.011, allocations: 11.91 kB / 0.8127 GB, free: 9.586 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.67e-05/1.011, allocations: 4 kB / 0.8127 GB, free: 9.582 MB / 0.6355 GB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (2): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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 9.635e-05/1.012, allocations: 109.8 kB / 0.8128 GB, free: 9.465 MB / 0.6355 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.938e-05/1.012, allocations: 8.031 kB / 0.8128 GB, free: 9.457 MB / 0.6355 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002218/1.012, allocations: 61.66 kB / 0.8128 GB, free: 9.383 MB / 0.6355 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/1.012, allocations: 0 / 0.8128 GB, free: 9.383 MB / 0.6355 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/1.012, allocations: 4 kB / 0.8128 GB, free: 9.379 MB / 0.6355 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/1.012, allocations: 0 / 0.8128 GB, free: 9.379 MB / 0.6355 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001631/1.012, allocations: 161.6 kB / 0.813 GB, free: 9.172 MB / 0.6355 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.263e-06/1.012, allocations: 3.938 kB / 0.813 GB, free: 9.168 MB / 0.6355 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.312e-06/1.012, allocations: 0 / 0.813 GB, free: 9.168 MB / 0.6355 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.951e-06/1.012, allocations: 4 kB / 0.813 GB, free: 9.164 MB / 0.6355 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.001e-05/1.012, allocations: 8.016 kB / 0.813 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/1.012, allocations: 0 / 0.813 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/1.012, allocations: 0 / 0.813 GB, free: 9.156 MB / 0.6355 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/1.012, allocations: 69.08 kB / 0.8131 GB, free: 9.07 MB / 0.6355 GB Notification: Performance of postOpt removeConstants (simulation): time 5.211e-05/1.012, allocations: 77.11 kB / 0.8132 GB, free: 8.977 MB / 0.6355 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.865e-05/1.012, allocations: 4 kB / 0.8132 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.228e-05/1.012, allocations: 0 / 0.8132 GB, free: 8.973 MB / 0.6355 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.169e-05/1.012, allocations: 7.969 kB / 0.8132 GB, free: 8.965 MB / 0.6355 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.792e-05/1.012, allocations: 7.984 kB / 0.8132 GB, free: 8.957 MB / 0.6355 GB Notification: Performance of sorting global known variables: time 6.179e-05/1.013, allocations: 79.28 kB / 0.8133 GB, free: 8.879 MB / 0.6355 GB Notification: Performance of sort global known variables: time 4.01e-07/1.013, allocations: 0 / 0.8133 GB, free: 8.879 MB / 0.6355 GB Notification: Performance of remove unused functions: time 0.0004701/1.013, allocations: 67.92 kB / 0.8133 GB, free: 8.812 MB / 0.6355 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 (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.001311/1.014, allocations: 0.856 MB / 0.8142 GB, free: 8 MB / 0.6355 GB Notification: Performance of simCode: created initialization part: time 0.0002008/1.015, allocations: 67.39 kB / 0.8142 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of simCode: created event and clocks part: time 5.35e-06/1.015, allocations: 0 / 0.8142 GB, free: 7.922 MB / 0.6355 GB Notification: Performance of simCode: created simulation system equations: time 3.895e-05/1.015, allocations: 29.7 kB / 0.8142 GB, free: 7.887 MB / 0.6355 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001697/1.015, allocations: 8.125 kB / 0.8143 GB, free: 7.879 MB / 0.6355 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001322/1.016, allocations: 293.4 kB / 0.8145 GB, free: 7.551 MB / 0.6355 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003237/1.017, allocations: 0.677 MB / 0.8152 GB, free: 6.848 MB / 0.6355 GB Notification: Performance of simCode: alias equations: time 6.893e-05/1.017, allocations: 4 kB / 0.8152 GB, free: 6.844 MB / 0.6355 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.472e-05/1.017, allocations: 11.44 kB / 0.8152 GB, free: 6.832 MB / 0.6355 GB Notification: Performance of SimCode: time 1.402e-06/1.017, allocations: 0 / 0.8152 GB, free: 6.832 MB / 0.6355 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03325/1.05, allocations: 2.359 MB / 0.8175 GB, free: 4.602 MB / 0.6355 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004302/1.05, allocations: 299.7 kB / 0.8178 GB, free: 4.234 MB / 0.6355 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources" -c -o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject.o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject.c In file included from Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject.c:7: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources" -c -o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.c In file included from Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.c:2: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.c:7: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_includes.h:4: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/Resources/C-Sources/python27Wrapper.c:21:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_ExchangeWithPassPythonObject_functions.o] Error 1