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.Exchange.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.Exchange,fileNamePrefix="Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange",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.01179/0.0118, allocations: 106.5 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.001283/0.001283, allocations: 179.3 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.989/1.989, allocations: 194.6 MB / 211.3 MB, free: 11.04 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.332/2.332, allocations: 236.1 MB / 492.6 MB, free: 11.33 MB / 394.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006645/0.0006646, allocations: 19.98 kB / 0.587 GB, free: 2.066 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7167/0.7174, allocations: 98.71 MB / 0.6834 GB, free: 16.76 MB / 0.5261 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.000836/0.7182, allocations: 272.1 kB / 0.6837 GB, free: 16.59 MB / 0.5261 GB Notification: Performance of NFInst.instExpressions: time 0.002257/0.7205, allocations: 1.194 MB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFInst.updateImplicitVariability: time 4.125e-05/0.7206, allocations: 0 / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFTyping.typeComponents: time 0.0001145/0.7208, allocations: 6.875 kB / 0.6849 GB, free: 15.76 MB / 0.5261 GB Notification: Performance of NFTyping.typeBindings: time 4.598e-05/0.7208, allocations: 3.938 kB / 0.6849 GB, free: 15.75 MB / 0.5261 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009429/0.7218, allocations: 251.5 kB / 0.6851 GB, free: 15.64 MB / 0.5261 GB Notification: Performance of NFFlatten.flatten: time 0.0001171/0.7219, allocations: 43.48 kB / 0.6852 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFFlatten.resolveConnections: time 4.676e-05/0.722, allocations: 3.594 kB / 0.6852 GB, free: 15.62 MB / 0.5261 GB Notification: Performance of NFEvalConstants.evaluate: time 7.174e-05/0.722, allocations: 49.34 kB / 0.6852 GB, free: 15.61 MB / 0.5261 GB Notification: Performance of NFSimplifyModel.simplify: time 7.513e-05/0.7221, allocations: 39.28 kB / 0.6852 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFPackage.collectConstants: time 3.076e-05/0.7222, allocations: 2.406 kB / 0.6852 GB, free: 15.6 MB / 0.5261 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006234/0.7228, allocations: 176.3 kB / 0.6854 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of NFScalarize.scalarize: time 2.148e-05/0.7228, allocations: 3.156 kB / 0.6854 GB, free: 15.54 MB / 0.5261 GB Notification: Performance of NFVerifyModel.verify: time 4.052e-05/0.7229, allocations: 30.17 kB / 0.6854 GB, free: 15.51 MB / 0.5261 GB Notification: Performance of NFConvertDAE.convert: time 0.0004277/0.7233, allocations: 200.1 kB / 0.6856 GB, free: 15.46 MB / 0.5261 GB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.7233, allocations: 5.562 kB / 0.6856 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of FrontEnd: time 1.923e-06/0.7233, allocations: 3.938 kB / 0.6856 GB, free: 15.45 MB / 0.5261 GB Notification: Performance of Transformations before backend: time 5.139e-06/0.7234, allocations: 0 / 0.6856 GB, free: 15.45 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004141/0.7238, allocations: 407.3 kB / 0.686 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of prepare preOptimizeDAE: time 4.516e-05/0.7238, allocations: 10 kB / 0.686 GB, free: 15.04 MB / 0.5261 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.923e-05/0.7239, allocations: 43.02 kB / 0.6861 GB, free: 14.99 MB / 0.5261 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.319e-05/0.724, allocations: 13.7 kB / 0.6861 GB, free: 14.98 MB / 0.5261 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001269/0.7241, allocations: 176.7 kB / 0.6863 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.75e-05/0.7241, allocations: 2.734 kB / 0.6863 GB, free: 14.78 MB / 0.5261 GB Notification: Performance of preOpt expandDerOperator (simulation): time 4.089e-05/0.7242, allocations: 9.688 kB / 0.6863 GB, free: 14.77 MB / 0.5261 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003449/0.7245, allocations: 122 kB / 0.6864 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.7246, allocations: 0 / 0.6864 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.86e-05/0.7246, allocations: 3.469 kB / 0.6864 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.779e-06/0.7246, allocations: 0 / 0.6864 GB, free: 14.73 MB / 0.5261 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001889/0.7248, allocations: 63.98 kB / 0.6865 GB, free: 14.72 MB / 0.5261 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001695/0.725, allocations: 170.5 kB / 0.6866 GB, free: 14.52 MB / 0.5261 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000241/0.7252, allocations: 118.5 kB / 0.6867 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt evalFunc (simulation): time 1.052e-05/0.7253, allocations: 0.6562 kB / 0.6867 GB, free: 14.45 MB / 0.5261 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.654e-05/0.7253, allocations: 35.94 kB / 0.6868 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of pre-optimization done (n=6): time 1.613e-06/0.7253, allocations: 5.25 kB / 0.6868 GB, free: 14.41 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6): time 0.0008905/0.7262, allocations: 378.9 kB / 0.6871 GB, free: 14.21 MB / 0.5261 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.328e-05/0.7263, allocations: 88.44 kB / 0.6872 GB, free: 14.11 MB / 0.5261 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001144/0.7264, allocations: 121.8 kB / 0.6873 GB, free: 14 MB / 0.5261 GB Notification: Performance of collectPreVariables (initialization): time 3.026e-05/0.7265, allocations: 28.73 kB / 0.6874 GB, free: 13.97 MB / 0.5261 GB Notification: Performance of collectInitialEqns (initialization): time 3.011e-05/0.7265, allocations: 89.67 kB / 0.6875 GB, free: 13.88 MB / 0.5261 GB Notification: Performance of collectInitialBindings (initialization): time 5.028e-05/0.7265, allocations: 19.59 kB / 0.6875 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.322e-05/0.7266, allocations: 3.312 kB / 0.6875 GB, free: 13.87 MB / 0.5261 GB Notification: Performance of setup shared object (initialization): time 7.862e-05/0.7267, allocations: 320.4 kB / 0.6878 GB, free: 13.55 MB / 0.5261 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001758/0.7269, allocations: 59.19 kB / 0.6878 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001754/0.727, allocations: 59.89 kB / 0.6879 GB, free: 13.54 MB / 0.5261 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001792/0.7272, allocations: 88.38 kB / 0.688 GB, free: 13.49 MB / 0.5261 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.615e-06/0.7272, allocations: 1.281 kB / 0.688 GB, free: 13.49 MB / 0.5261 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005772/0.7278, allocations: 228.6 kB / 0.6882 GB, free: 13.4 MB / 0.5261 GB Notification: Performance of prepare postOptimizeDAE: time 5.549e-05/0.7279, allocations: 45.31 kB / 0.6882 GB, free: 13.37 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.351e-06/0.7279, allocations: 6.297 kB / 0.6882 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.665e-05/0.728, allocations: 0 / 0.6882 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.353e-06/0.728, allocations: 0 / 0.6882 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.58e-06/0.728, allocations: 1.469 kB / 0.6882 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004869/0.7285, allocations: 19.34 kB / 0.6883 GB, free: 13.36 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.006e-05/0.7286, allocations: 18.62 kB / 0.6883 GB, free: 13.36 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: 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.000178/0.7287, allocations: 165.7 kB / 0.6884 GB, free: 13.21 MB / 0.5261 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.571e-05/0.7288, allocations: 20.91 kB / 0.6885 GB, free: 13.2 MB / 0.5261 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.875e-05/0.7288, allocations: 7.188 kB / 0.6885 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.097e-06/0.7288, allocations: 1.062 kB / 0.6885 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.521e-06/0.7289, allocations: 0.8906 kB / 0.6885 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.026e-06/0.7289, allocations: 0 / 0.6885 GB, free: 13.18 MB / 0.5261 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001335/0.729, allocations: 171.8 kB / 0.6886 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.729, allocations: 0 / 0.6886 GB, free: 12.99 MB / 0.5261 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.986e-06/0.729, allocations: 6.125 kB / 0.6886 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.626e-06/0.729, allocations: 0 / 0.6886 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.708e-05/0.7291, allocations: 15.09 kB / 0.6887 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.7291, allocations: 0.9375 kB / 0.6887 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.7291, allocations: 5.188 kB / 0.6887 GB, free: 12.98 MB / 0.5261 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006637/0.7298, allocations: 295 kB / 0.6889 GB, free: 12.84 MB / 0.5261 GB Notification: Performance of postOpt removeConstants (simulation): time 4.554e-05/0.7299, allocations: 94.56 kB / 0.689 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.307e-05/0.7299, allocations: 10.28 kB / 0.689 GB, free: 12.73 MB / 0.5261 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004067/0.7303, allocations: 23.98 kB / 0.6891 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.62e-05/0.7304, allocations: 8.844 kB / 0.6891 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.96e-05/0.7305, allocations: 13.08 kB / 0.6891 GB, free: 12.72 MB / 0.5261 GB Notification: Performance of sorting global known variables: time 6.914e-05/0.7306, allocations: 96.88 kB / 0.6892 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of sort global known variables: time 3.81e-07/0.7306, allocations: 1.25 kB / 0.6892 GB, free: 12.64 MB / 0.5261 GB Notification: Performance of remove unused functions: time 0.0006493/0.7312, allocations: 90.28 kB / 0.6893 GB, free: 12.62 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: 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.001968/0.7332, allocations: 1.11 MB / 0.6903 GB, free: 11.87 MB / 0.5261 GB Notification: Performance of simCode: created initialization part: time 0.0006825/0.7339, allocations: 294.2 kB / 0.6906 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.734, allocations: 0 / 0.6906 GB, free: 11.73 MB / 0.5261 GB Notification: Performance of simCode: created simulation system equations: time 0.0003402/0.7343, allocations: 210.6 kB / 0.6908 GB, free: 11.61 MB / 0.5261 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001764/0.7345, allocations: 10.77 kB / 0.6908 GB, free: 11.6 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.001094/0.7356, allocations: 332.7 kB / 0.6912 GB, free: 11.39 MB / 0.5261 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001434/0.7358, allocations: 0.6853 MB / 0.6918 GB, free: 10.7 MB / 0.5261 GB Notification: Performance of simCode: alias equations: time 0.0001223/0.7359, allocations: 57.02 kB / 0.6919 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.084e-05/0.736, allocations: 9.625 kB / 0.6919 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of SimCode: time 1.022e-06/0.736, allocations: 1.938 kB / 0.6919 GB, free: 10.68 MB / 0.5261 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4655/1.202, allocations: 4.673 MB / 0.6965 GB, free: 9.555 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002886/1.202, allocations: 273.3 kB / 0.6967 GB, free: 9.195 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_Exchange.o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange.c In file included from Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange.c:7: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_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 -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_Exchange_functions.o Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange_functions.c In file included from Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange_functions.c:2: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_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_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange_functions.c:7: In file included from ./Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange_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_Exchange_functions.o' failed make: *** [Buildings_6_0_0_Buildings_Utilities_IO_Python27_Functions_Examples_Exchange_functions.o] Error 1