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.01163/0.01164, allocations: 107 kB / 15.06 MB, free: 5.555 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.001183/0.001183, allocations: 181.5 kB / 15.95 MB, free: 5.52 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 1.918/1.918, allocations: 194.5 MB / 211.2 MB, free: 10.99 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.437/2.437, allocations: 236.1 MB / 492.6 MB, free: 11.31 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006481/0.0006482, allocations: 16 kB / 0.587 GB, free: 2.051 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.8031/0.8038, allocations: 98.71 MB / 0.6834 GB, free: 16.75 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.ExchangeWithPassPythonObject): time 0.0008401/0.8047, allocations: 265.7 kB / 0.6837 GB, free: 16.58 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.001795/0.8065, allocations: 1.053 MB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.124e-05/0.8066, allocations: 1.438 kB / 0.6847 GB, free: 15.84 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0001023/0.8067, allocations: 5.969 kB / 0.6847 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 4.297e-05/0.8067, allocations: 0 / 0.6847 GB, free: 15.83 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0005634/0.8073, allocations: 142.8 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 4.997e-05/0.8074, allocations: 11.72 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 4.479e-05/0.8074, allocations: 1.703 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 2.826e-05/0.8075, allocations: 7.859 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 5.398e-05/0.8075, allocations: 6.641 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 1.521e-05/0.8076, allocations: 5.188 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004441/0.808, allocations: 144.3 kB / 0.685 GB, free: 15.71 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 3.201e-05/0.8081, allocations: 11.44 kB / 0.685 GB, free: 15.7 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 2.47e-05/0.8081, allocations: 25.7 kB / 0.6851 GB, free: 15.67 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0003093/0.8084, allocations: 139 kB / 0.6852 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 2.525e-06/0.8084, allocations: 0 / 0.6852 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.603e-06/0.8084, allocations: 0 / 0.6852 GB, free: 15.63 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 4.609e-06/0.8085, allocations: 1.219 kB / 0.6852 GB, free: 15.63 MB / 0.5261 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.0003161/0.8088, allocations: 354.3 kB / 0.6855 GB, free: 15.26 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.423e-05/0.8088, allocations: 13.25 kB / 0.6856 GB, free: 15.25 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.763e-05/0.8089, allocations: 35.81 kB / 0.6856 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.961e-05/0.8089, allocations: 5.422 kB / 0.6856 GB, free: 15.21 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 9.849e-05/0.809, allocations: 164.8 kB / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.8091, allocations: 1.125 kB / 0.6857 GB, free: 15.01 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.253e-05/0.8091, allocations: 5.125 kB / 0.6858 GB, free: 15 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001329/0.8092, allocations: 40.5 kB / 0.6858 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.015e-05/0.8092, allocations: 0 / 0.6858 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.171e-05/0.8093, allocations: 3.938 kB / 0.6858 GB, free: 14.97 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.291e-05/0.8093, allocations: 7.359 kB / 0.6858 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.957e-05/0.8093, allocations: 15.78 kB / 0.6858 GB, free: 14.96 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001885/0.8095, allocations: 153 kB / 0.686 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 7.848e-05/0.8096, allocations: 28.81 kB / 0.686 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 5.149e-06/0.8097, allocations: 3.938 kB / 0.686 GB, free: 14.74 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.5e-05/0.8097, allocations: 36.33 kB / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=2): time 1.663e-06/0.8097, allocations: 0 / 0.686 GB, free: 14.7 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2): time 0.0001993/0.8099, allocations: 62.89 kB / 0.6861 GB, free: 14.66 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.603e-05/0.81, allocations: 51.41 kB / 0.6861 GB, free: 14.59 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.153e-05/0.81, allocations: 97.77 kB / 0.6862 GB, free: 14.49 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 1.358e-05/0.81, allocations: 25.7 kB / 0.6863 GB, free: 14.46 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 2.224e-05/0.8101, allocations: 81.58 kB / 0.6863 GB, free: 14.38 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 2.702e-05/0.8101, allocations: 10.05 kB / 0.6863 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.579e-06/0.8101, allocations: 1.344 kB / 0.6863 GB, free: 14.37 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 6.313e-05/0.8102, allocations: 319.8 kB / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.16e-05/0.8102, allocations: 6.562 kB / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.77e-05/0.8103, allocations: 12.47 kB / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 3.752e-05/0.8103, allocations: 7.891 kB / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.8103, allocations: 0 / 0.6867 GB, free: 14.05 MB / 0.5261 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001161/0.8105, allocations: 50.27 kB / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 1.857e-05/0.8105, allocations: 6.562 kB / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.713e-06/0.8105, allocations: 0 / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.8105, allocations: 0 / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.953e-06/0.8105, allocations: 6.266 kB / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.951e-06/0.8106, allocations: 0 / 0.6867 GB, free: 14.01 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.93e-05/0.8106, allocations: 3.906 kB / 0.6867 GB, free: 14 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.698e-05/0.8106, allocations: 2.75 kB / 0.6867 GB, free: 14 MB / 0.5261 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: 2 * Algorithm blocks: 0 * 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 6.859e-05/0.8107, allocations: 117.5 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.433e-05/0.8107, allocations: 5.188 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.217e-05/0.8107, allocations: 5 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.385e-05/0.8108, allocations: 2.703 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.8108, allocations: 1.281 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.737e-06/0.8108, allocations: 4.75 kB / 0.6869 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001104/0.8109, allocations: 158.4 kB / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.8109, allocations: 0 / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.693e-06/0.8109, allocations: 0.6562 kB / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.8109, allocations: 0 / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.137e-05/0.811, allocations: 1.891 kB / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.811, allocations: 1.531 kB / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.005e-06/0.811, allocations: 0.6094 kB / 0.687 GB, free: 13.68 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001329/0.8111, allocations: 84.53 kB / 0.6871 GB, free: 13.6 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 3.609e-05/0.8112, allocations: 79.48 kB / 0.6872 GB, free: 13.51 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.95e-05/0.8112, allocations: 6.188 kB / 0.6872 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000101/0.8113, allocations: 1.797 kB / 0.6872 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.044e-05/0.8114, allocations: 2.734 kB / 0.6872 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.358e-05/0.8114, allocations: 2.656 kB / 0.6872 GB, free: 13.5 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 2.842e-05/0.8114, allocations: 85.27 kB / 0.6873 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.61e-07/0.8114, allocations: 0 / 0.6873 GB, free: 13.42 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0004366/0.8119, allocations: 56.53 kB / 0.6873 GB, free: 13.41 MB / 0.5261 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 (2): * Single equations (assignments): 0 * Array equations: 2 * Algorithm blocks: 0 * 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.00107/0.813, allocations: 0.8347 MB / 0.6881 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0001213/0.8131, allocations: 15.7 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.8131, allocations: 0 / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 3.505e-05/0.8132, allocations: 9.062 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001323/0.8133, allocations: 6.406 kB / 0.6882 GB, free: 12.72 MB / 0.5261 GB Warning: Could not resolve URI ("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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.0007127/0.814, allocations: 158.4 kB / 0.6883 GB, free: 12.56 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001294/0.8142, allocations: 0.682 MB / 0.689 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 8.926e-05/0.8143, allocations: 20.53 kB / 0.689 GB, free: 11.86 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.759e-05/0.8144, allocations: 21 kB / 0.689 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of SimCode: time 2.184e-06/0.8144, allocations: 0 / 0.689 GB, free: 11.85 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5452/1.36, allocations: 2.239 MB / 0.6912 GB, free: 11.52 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002676/1.36, allocations: 296.2 kB / 0.6915 GB, free: 11.16 MB / 0.5261 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: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 -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: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_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