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 ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 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 Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Using package Buildings with version 6.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/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 loadModel(Buildings): time 4.466/4.466, allocations: 432.6 MB / 445.2 MB, free: 15.83 MB / 362.7 MB Notification: Performance of FrontEnd - loaded program: time 4.952e-05/4.966e-05, allocations: 3.391 kB / 0.5383 GB, free: 10.27 MB / 442.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.2348, allocations: 98.73 MB / 0.6347 GB, free: 1.898 MB / 0.5105 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.2827/0.5176, allocations: 125.9 MB / 0.7577 GB, free: 3.812 MB / 0.6355 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004358/0.5181, allocations: 87.92 kB / 0.7578 GB, free: 3.727 MB / 0.6355 GB Notification: Performance of FrontEnd - DAE generated: time 0.02534/0.5434, allocations: 4.447 MB / 0.7621 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of FrontEnd: time 1.984e-06/0.5435, allocations: 0 / 0.7621 GB, free: 15.25 MB / 0.6511 GB Notification: Performance of Transformations before backend: time 8.075e-06/0.5435, allocations: 0 / 0.7621 GB, free: 15.25 MB / 0.6511 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.0005995/0.5441, allocations: 370.4 kB / 0.7625 GB, free: 14.84 MB / 0.6511 GB Notification: Performance of prepare preOptimizeDAE: time 6.475e-05/0.5442, allocations: 12.03 kB / 0.7625 GB, free: 14.83 MB / 0.6511 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.544e-05/0.5443, allocations: 34.56 kB / 0.7625 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.065e-05/0.5444, allocations: 3.953 kB / 0.7625 GB, free: 14.79 MB / 0.6511 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001769/0.5445, allocations: 159.1 kB / 0.7627 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.029e-05/0.5446, allocations: 4 kB / 0.7627 GB, free: 14.59 MB / 0.6511 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.802e-05/0.5446, allocations: 4 kB / 0.7627 GB, free: 14.58 MB / 0.6511 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001823/0.5448, allocations: 45.62 kB / 0.7627 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.23e-05/0.5448, allocations: 3.984 kB / 0.7627 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.564e-05/0.5449, allocations: 0 / 0.7627 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.105e-05/0.5449, allocations: 0 / 0.7627 GB, free: 14.53 MB / 0.6511 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.006e-05/0.545, allocations: 11.95 kB / 0.7627 GB, free: 14.52 MB / 0.6511 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002742/0.5452, allocations: 149.7 kB / 0.7629 GB, free: 14.32 MB / 0.6511 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001078/0.5454, allocations: 34.61 kB / 0.7629 GB, free: 14.28 MB / 0.6511 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.981e-05/0.5454, allocations: 12.91 kB / 0.7629 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of preOpt evalFunc (simulation): time 3.59e-05/0.5455, allocations: 4 kB / 0.7629 GB, free: 14.26 MB / 0.6511 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.531e-05/0.5456, allocations: 34.5 kB / 0.763 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of pre-optimization done (n=2): time 2.535e-06/0.5456, allocations: 0 / 0.763 GB, free: 14.21 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2): time 0.0002182/0.5458, allocations: 49.69 kB / 0.763 GB, free: 14.16 MB / 0.6511 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.15e-05/0.5459, allocations: 55.41 kB / 0.7631 GB, free: 14.09 MB / 0.6511 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.453e-05/0.546, allocations: 92.98 kB / 0.7631 GB, free: 14 MB / 0.6511 GB Notification: Performance of collectPreVariables (initialization): time 2.739e-05/0.546, allocations: 29.64 kB / 0.7632 GB, free: 13.96 MB / 0.6511 GB Notification: Performance of collectInitialEqns (initialization): time 5.842e-05/0.5461, allocations: 92.12 kB / 0.7633 GB, free: 13.87 MB / 0.6511 GB Notification: Performance of collectInitialBindings (initialization): time 3.035e-05/0.5462, allocations: 7.891 kB / 0.7633 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.543e-06/0.5462, allocations: 0 / 0.7633 GB, free: 13.86 MB / 0.6511 GB Notification: Performance of setup shared object (initialization): time 0.0001591/0.5464, allocations: 310.8 kB / 0.7636 GB, free: 13.55 MB / 0.6511 GB Notification: Performance of preBalanceInitialSystem (initialization): time 3.979e-05/0.5464, allocations: 4 kB / 0.7636 GB, free: 13.54 MB / 0.6511 GB Notification: Performance of partitionIndependentBlocks (initialization): time 4.106e-05/0.5465, allocations: 12.12 kB / 0.7636 GB, free: 13.53 MB / 0.6511 GB Notification: Performance of analyzeInitialSystem (initialization): time 5.569e-05/0.5465, allocations: 11.98 kB / 0.7636 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.891e-06/0.5466, allocations: 0 / 0.7636 GB, free: 13.52 MB / 0.6511 GB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001706/0.5467, allocations: 53.62 kB / 0.7636 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of prepare postOptimizeDAE: time 2.479e-05/0.5468, allocations: 4 kB / 0.7636 GB, free: 13.46 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.157e-05/0.5468, allocations: 3.938 kB / 0.7637 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.5469, allocations: 4 kB / 0.7637 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.094e-06/0.5469, allocations: 0 / 0.7637 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.873e-06/0.5469, allocations: 0 / 0.7637 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.289e-05/0.5469, allocations: 4.078 kB / 0.7637 GB, free: 13.45 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.12e-05/0.547, allocations: 11.95 kB / 0.7637 GB, free: 13.43 MB / 0.6511 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 () * 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.904e-05/0.5471, allocations: 101 kB / 0.7638 GB, free: 13.33 MB / 0.6511 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.528e-05/0.5471, allocations: 7.906 kB / 0.7638 GB, free: 13.32 MB / 0.6511 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002649/0.5474, allocations: 81.47 kB / 0.7639 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.874e-06/0.5474, allocations: 4 kB / 0.7639 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.5475, allocations: 0 / 0.7639 GB, free: 13.23 MB / 0.6511 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.758e-06/0.5475, allocations: 4 kB / 0.7639 GB, free: 13.22 MB / 0.6511 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002004/0.5477, allocations: 153.6 kB / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.088e-06/0.5477, allocations: 4.031 kB / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.493e-06/0.5477, allocations: 0 / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.115e-06/0.5477, allocations: 0 / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.371e-05/0.5478, allocations: 4 kB / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.5478, allocations: 0 / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.364e-06/0.5478, allocations: 0 / 0.764 GB, free: 13.02 MB / 0.6511 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001561/0.548, allocations: 69.08 kB / 0.7641 GB, free: 12.93 MB / 0.6511 GB Notification: Performance of postOpt removeConstants (simulation): time 6.722e-05/0.5481, allocations: 81.09 kB / 0.7642 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.076e-05/0.5481, allocations: 4.031 kB / 0.7642 GB, free: 12.83 MB / 0.6511 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001127/0.5482, allocations: 4 kB / 0.7642 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.171e-05/0.5483, allocations: 3.938 kB / 0.7642 GB, free: 12.82 MB / 0.6511 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.5483, allocations: 8 kB / 0.7642 GB, free: 12.81 MB / 0.6511 GB Notification: Performance of sorting global known variables: time 7.582e-05/0.5484, allocations: 87.25 kB / 0.7643 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of sort global known variables: time 5.41e-07/0.5484, allocations: 0 / 0.7643 GB, free: 12.73 MB / 0.6511 GB Notification: Performance of remove unused functions: time 0.000654/0.5491, allocations: 67.92 kB / 0.7643 GB, free: 12.66 MB / 0.6511 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 () * 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.001526/0.5506, allocations: 0.8165 MB / 0.7651 GB, free: 11.86 MB / 0.6511 GB Notification: Performance of simCode: created initialization part: time 0.0001913/0.5508, allocations: 79.33 kB / 0.7652 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.5509, allocations: 0 / 0.7652 GB, free: 11.77 MB / 0.6511 GB Notification: Performance of simCode: created simulation system equations: time 5.488e-05/0.5509, allocations: 37.69 kB / 0.7652 GB, free: 11.73 MB / 0.6511 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001835/0.5511, allocations: 7.875 kB / 0.7652 GB, free: 11.72 MB / 0.6511 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001374/0.5525, allocations: 246.8 kB / 0.7655 GB, free: 11.45 MB / 0.6511 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003439/0.5529, allocations: 0.6809 MB / 0.7661 GB, free: 10.74 MB / 0.6511 GB Notification: Performance of simCode: alias equations: time 7.516e-05/0.553, allocations: 12.11 kB / 0.7662 GB, free: 10.73 MB / 0.6511 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.378e-05/0.553, allocations: 7.438 kB / 0.7662 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of SimCode: time 1.223e-06/0.553, allocations: 0 / 0.7662 GB, free: 10.72 MB / 0.6511 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08188/0.6349, allocations: 2.375 MB / 0.7685 GB, free: 8.449 MB / 0.6511 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000301/0.6353, allocations: 259.9 kB / 0.7687 GB, free: 8.117 MB / 0.6511 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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 -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-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:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221: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