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.01194/0.01194, allocations: 221.2 kB / 15.17 MB, free: 6 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.001116/0.001116, allocations: 178.4 kB / 16.06 MB, free: 5.871 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 3.794/3.794, allocations: 389.1 MB / 405.9 MB, free: 13.31 MB / 346.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 6.0.0/package.mo): time 4.092/4.092, allocations: 472.3 MB / 0.9017 GB, free: 130 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004737/0.000474, allocations: 19.94 kB / 1.008 GB, free: 21.49 MB / 0.5105 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5941/0.5946, allocations: 98.71 MB / 1.104 GB, free: 10.72 MB / 0.5105 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python27.Functions.Examples.Exchange): time 0.0007637/0.5954, allocations: 275 kB / 1.104 GB, free: 10.45 MB / 0.5105 GB Notification: Performance of NFInst.instExpressions: time 0.001896/0.5973, allocations: 1.177 MB / 1.106 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of NFInst.updateImplicitVariability: time 2.083e-05/0.5974, allocations: 0 / 1.106 GB, free: 9.27 MB / 0.5105 GB Notification: Performance of NFTyping.typeComponents: time 9.346e-05/0.5975, allocations: 9.359 kB / 1.106 GB, free: 9.262 MB / 0.5105 GB Notification: Performance of NFTyping.typeBindings: time 3.898e-05/0.5975, allocations: 3.938 kB / 1.106 GB, free: 9.258 MB / 0.5105 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007302/0.5983, allocations: 257.3 kB / 1.106 GB, free: 9.008 MB / 0.5105 GB Notification: Performance of NFFlatten.flatten: time 9.957e-05/0.5984, allocations: 59.86 kB / 1.106 GB, free: 8.949 MB / 0.5105 GB Notification: Performance of NFFlatten.resolveConnections: time 4.474e-05/0.5984, allocations: 6.188 kB / 1.106 GB, free: 8.945 MB / 0.5105 GB Notification: Performance of NFEvalConstants.evaluate: time 5.378e-05/0.5985, allocations: 47.88 kB / 1.106 GB, free: 8.898 MB / 0.5105 GB Notification: Performance of NFSimplifyModel.simplify: time 6.604e-05/0.5986, allocations: 35.92 kB / 1.106 GB, free: 8.863 MB / 0.5105 GB Notification: Performance of NFPackage.collectConstants: time 3.268e-05/0.5986, allocations: 8.766 kB / 1.106 GB, free: 8.855 MB / 0.5105 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0004742/0.5991, allocations: 195.5 kB / 1.106 GB, free: 8.664 MB / 0.5105 GB Notification: Performance of NFScalarize.scalarize: time 1.712e-05/0.5991, allocations: 4.562 kB / 1.106 GB, free: 8.66 MB / 0.5105 GB Notification: Performance of NFVerifyModel.verify: time 3.221e-05/0.5992, allocations: 33.64 kB / 1.106 GB, free: 8.621 MB / 0.5105 GB Notification: Performance of NFConvertDAE.convert: time 0.0003095/0.5995, allocations: 200.6 kB / 1.106 GB, free: 8.426 MB / 0.5105 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.5995, allocations: 4 kB / 1.106 GB, free: 8.422 MB / 0.5105 GB Notification: Performance of FrontEnd: time 1.563e-06/0.5995, allocations: 6.688 kB / 1.106 GB, free: 8.418 MB / 0.5105 GB Notification: Performance of Transformations before backend: time 4.508e-06/0.5995, allocations: 0 / 1.106 GB, free: 8.418 MB / 0.5105 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.0003581/0.5999, allocations: 413 kB / 1.107 GB, free: 7.961 MB / 0.5105 GB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.5999, allocations: 12.03 kB / 1.107 GB, free: 7.949 MB / 0.5105 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.546e-05/0.6, allocations: 34.56 kB / 1.107 GB, free: 7.906 MB / 0.5105 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.874e-05/0.6, allocations: 11.86 kB / 1.107 GB, free: 7.895 MB / 0.5105 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001165/0.6002, allocations: 174.5 kB / 1.107 GB, free: 7.688 MB / 0.5105 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.567e-05/0.6002, allocations: 4 kB / 1.107 GB, free: 7.684 MB / 0.5105 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.622e-05/0.6002, allocations: 4 kB / 1.107 GB, free: 7.68 MB / 0.5105 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002704/0.6005, allocations: 121.6 kB / 1.107 GB, free: 7.555 MB / 0.5105 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.884e-06/0.6005, allocations: 4 kB / 1.107 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.621e-05/0.6006, allocations: 0.9375 kB / 1.107 GB, free: 7.551 MB / 0.5105 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.6006, allocations: 7.938 kB / 1.107 GB, free: 7.543 MB / 0.5105 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001589/0.6008, allocations: 75.02 kB / 1.107 GB, free: 7.473 MB / 0.5105 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001356/0.6009, allocations: 161.6 kB / 1.107 GB, free: 7.266 MB / 0.5105 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002225/0.6011, allocations: 118.5 kB / 1.107 GB, free: 7.141 MB / 0.5105 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001797/0.6013, allocations: 104.9 kB / 1.108 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of preOpt evalFunc (simulation): time 5.079e-06/0.6014, allocations: 0 / 1.108 GB, free: 7.035 MB / 0.5105 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.23e-05/0.6014, allocations: 31.53 kB / 1.108 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of pre-optimization done (n=6): time 1.383e-06/0.6014, allocations: 0 / 1.108 GB, free: 6.996 MB / 0.5105 GB Notification: Performance of matching and sorting (n=6): time 0.0006671/0.6021, allocations: 291.8 kB / 1.108 GB, free: 6.699 MB / 0.5105 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.332e-05/0.6021, allocations: 89.64 kB / 1.108 GB, free: 6.594 MB / 0.5105 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.126e-05/0.6022, allocations: 130.6 kB / 1.108 GB, free: 6.457 MB / 0.5105 GB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.6023, allocations: 25.7 kB / 1.108 GB, free: 6.426 MB / 0.5105 GB Notification: Performance of collectInitialEqns (initialization): time 2.841e-05/0.6023, allocations: 89.17 kB / 1.108 GB, free: 6.336 MB / 0.5105 GB Notification: Performance of collectInitialBindings (initialization): time 4.675e-05/0.6024, allocations: 19.75 kB / 1.108 GB, free: 6.316 MB / 0.5105 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.136e-05/0.6024, allocations: 4 kB / 1.108 GB, free: 6.312 MB / 0.5105 GB Notification: Performance of setup shared object (initialization): time 5.713e-05/0.6025, allocations: 315.9 kB / 1.109 GB, free: 5.996 MB / 0.5105 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001512/0.6026, allocations: 60.61 kB / 1.109 GB, free: 5.938 MB / 0.5105 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001454/0.6028, allocations: 63.94 kB / 1.109 GB, free: 5.875 MB / 0.5105 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001408/0.6029, allocations: 86.22 kB / 1.109 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.6029, allocations: 0.9375 kB / 1.109 GB, free: 5.785 MB / 0.5105 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0004491/0.6034, allocations: 235.5 kB / 1.109 GB, free: 5.543 MB / 0.5105 GB Notification: Performance of prepare postOptimizeDAE: time 4.753e-05/0.6035, allocations: 41.69 kB / 1.109 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.6035, allocations: 0.6875 kB / 1.109 GB, free: 5.496 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.6035, allocations: 4.703 kB / 1.109 GB, free: 5.492 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.523e-06/0.6035, allocations: 3.938 kB / 1.109 GB, free: 5.488 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.11e-06/0.6035, allocations: 0.5938 kB / 1.109 GB, free: 5.488 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004552/0.604, allocations: 21.52 kB / 1.109 GB, free: 5.469 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.185e-05/0.6041, allocations: 19.94 kB / 1.109 GB, free: 5.449 MB / 0.5105 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.0001437/0.6042, allocations: 169.5 kB / 1.109 GB, free: 5.27 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.853e-05/0.6043, allocations: 13.06 kB / 1.109 GB, free: 5.258 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.714e-05/0.6043, allocations: 8.375 kB / 1.109 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.6043, allocations: 0.5938 kB / 1.109 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.197e-06/0.6043, allocations: 0 / 1.109 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.6043, allocations: 0.5312 kB / 1.109 GB, free: 5.242 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000114/0.6044, allocations: 175 kB / 1.109 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-06/0.6045, allocations: 0 / 1.109 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.112e-06/0.6045, allocations: 0 / 1.109 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.284e-06/0.6045, allocations: 0 / 1.109 GB, free: 5.023 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.245e-05/0.6045, allocations: 12.95 kB / 1.109 GB, free: 5.012 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.6045, allocations: 4 kB / 1.109 GB, free: 5.008 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.6045, allocations: 4.969 kB / 1.109 GB, free: 5.004 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000533/0.6051, allocations: 295.1 kB / 1.11 GB, free: 4.691 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 3.366e-05/0.6051, allocations: 97.52 kB / 1.11 GB, free: 4.578 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.751e-05/0.6052, allocations: 11.98 kB / 1.11 GB, free: 4.566 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003627/0.6056, allocations: 16.86 kB / 1.11 GB, free: 4.551 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.71e-05/0.6056, allocations: 17.3 kB / 1.11 GB, free: 4.535 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.09e-05/0.6057, allocations: 15.98 kB / 1.11 GB, free: 4.52 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 5.299e-05/0.6057, allocations: 91.27 kB / 1.11 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of sort global known variables: time 4.21e-07/0.6057, allocations: 1.625 kB / 1.11 GB, free: 4.43 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.0004703/0.6062, allocations: 91.98 kB / 1.11 GB, free: 4.34 MB / 0.5105 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.001607/0.6078, allocations: 1.121 MB / 1.111 GB, free: 3.293 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.0005111/0.6084, allocations: 287.2 kB / 1.111 GB, free: 3 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 3.376e-06/0.6084, allocations: 4 kB / 1.111 GB, free: 2.996 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.0002753/0.6087, allocations: 207.3 kB / 1.112 GB, free: 2.781 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002151/0.6089, allocations: 8.125 kB / 1.112 GB, free: 2.773 MB / 0.5105 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.0009732/0.6099, allocations: 376.8 kB / 1.112 GB, free: 2.363 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001265/0.61, allocations: 0.6848 MB / 1.113 GB, free: 1.652 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 8.719e-05/0.6101, allocations: 55.81 kB / 1.113 GB, free: 1.598 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.7e-05/0.6102, allocations: 19.42 kB / 1.113 GB, free: 1.582 MB / 0.5105 GB Notification: Performance of SimCode: time 6.22e-07/0.6102, allocations: 4 kB / 1.113 GB, free: 1.578 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3482/0.9584, allocations: 4.683 MB / 1.117 GB, free: 13.03 MB / 0.5261 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004073/0.9588, allocations: 277.8 kB / 1.118 GB, free: 12.68 MB / 0.5261 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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 -Wno-parentheses-equality -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:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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