Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Utilities.IO.Python36.Functions.Examples.Exchange.conf.json Using package Buildings with version 7.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.3/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange,fileNamePrefix="Buildings_7_0_0_Buildings_Utilities_IO_Python36_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.3/package.mo): time 0.01032/0.01032, allocations: 87.55 kB / 15.04 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.3.mo): time 0.001455/0.001455, allocations: 171 kB / 15.92 MB, free: 5.555 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.3/package.mo): time 2.104/2.104, allocations: 205.5 MB / 222.2 MB, free: 13.72 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/package.mo): time 2.475/2.475, allocations: 252.8 MB / 0.511 GB, free: 8.355 MB / 426.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008008/0.0008011, allocations: 11.28 kB / 0.6243 GB, free: 21.12 MB / 490.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.26/0.2608, allocations: 106.2 MB / 0.7281 GB, free: 8.16 MB / 0.5574 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Python36.Functions.Examples.Exchange): time 0.0009366/0.2618, allocations: 281.8 kB / 0.7283 GB, free: 7.887 MB / 0.5574 GB Notification: Performance of NFInst.instExpressions: time 0.002434/0.2643, allocations: 1.203 MB / 0.7295 GB, free: 6.676 MB / 0.5574 GB Notification: Performance of NFInst.updateImplicitVariability: time 3.128e-05/0.2644, allocations: 0 / 0.7295 GB, free: 6.676 MB / 0.5574 GB Notification: Performance of NFTyping.typeComponents: time 9.838e-05/0.2645, allocations: 4 kB / 0.7295 GB, free: 6.672 MB / 0.5574 GB Notification: Performance of NFTyping.typeBindings: time 4.426e-05/0.2645, allocations: 0 / 0.7295 GB, free: 6.672 MB / 0.5574 GB Notification: Performance of NFTyping.typeClassSections: time 0.0009811/0.2655, allocations: 275.3 kB / 0.7298 GB, free: 6.402 MB / 0.5574 GB Notification: Performance of NFFlatten.flatten: time 0.0001197/0.2657, allocations: 39.94 kB / 0.7298 GB, free: 6.363 MB / 0.5574 GB Notification: Performance of NFFlatten.resolveConnections: time 5.382e-05/0.2657, allocations: 4 kB / 0.7298 GB, free: 6.359 MB / 0.5574 GB Notification: Performance of NFEvalConstants.evaluate: time 7.273e-05/0.2658, allocations: 43.89 kB / 0.7299 GB, free: 6.316 MB / 0.5574 GB Notification: Performance of NFSimplifyModel.simplify: time 9.274e-05/0.2659, allocations: 47.83 kB / 0.7299 GB, free: 6.27 MB / 0.5574 GB Notification: Performance of NFPackage.collectConstants: time 2.962e-05/0.266, allocations: 0 / 0.7299 GB, free: 6.27 MB / 0.5574 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0005843/0.2665, allocations: 167.7 kB / 0.7301 GB, free: 6.105 MB / 0.5574 GB Notification: Performance of NFScalarize.scalarize: time 2.439e-05/0.2666, allocations: 15.92 kB / 0.7301 GB, free: 6.09 MB / 0.5574 GB Notification: Performance of NFVerifyModel.verify: time 4.876e-05/0.2667, allocations: 29.7 kB / 0.7301 GB, free: 6.055 MB / 0.5574 GB Notification: Performance of NFConvertDAE.convert: time 0.0004508/0.2671, allocations: 199.7 kB / 0.7303 GB, free: 5.859 MB / 0.5574 GB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2671, allocations: 0 / 0.7303 GB, free: 5.859 MB / 0.5574 GB Notification: Performance of FrontEnd: time 1.764e-06/0.2671, allocations: 0 / 0.7303 GB, free: 5.859 MB / 0.5574 GB Notification: Performance of Transformations before backend: time 5.21e-06/0.2672, allocations: 0 / 0.7303 GB, free: 5.859 MB / 0.5574 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.0005211/0.2677, allocations: 409 kB / 0.7307 GB, free: 5.406 MB / 0.5574 GB Notification: Performance of prepare preOptimizeDAE: time 5.598e-05/0.2678, allocations: 12.03 kB / 0.7307 GB, free: 5.395 MB / 0.5574 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.526e-05/0.2678, allocations: 38.56 kB / 0.7307 GB, free: 5.348 MB / 0.5574 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.096e-05/0.2679, allocations: 11.86 kB / 0.7307 GB, free: 5.336 MB / 0.5574 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.2681, allocations: 191.2 kB / 0.7309 GB, free: 5.109 MB / 0.5574 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.89e-05/0.2681, allocations: 4 kB / 0.7309 GB, free: 5.105 MB / 0.5574 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.856e-05/0.2682, allocations: 4 kB / 0.7309 GB, free: 5.102 MB / 0.5574 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003439/0.2685, allocations: 121.6 kB / 0.7311 GB, free: 4.977 MB / 0.5574 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.677e-06/0.2686, allocations: 0 / 0.7311 GB, free: 4.977 MB / 0.5574 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.608e-05/0.2686, allocations: 0 / 0.7311 GB, free: 4.977 MB / 0.5574 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.2686, allocations: 3.984 kB / 0.7311 GB, free: 4.973 MB / 0.5574 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001825/0.2688, allocations: 67.89 kB / 0.7311 GB, free: 4.906 MB / 0.5574 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002025/0.269, allocations: 161.7 kB / 0.7313 GB, free: 4.699 MB / 0.5574 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000269/0.2693, allocations: 118.5 kB / 0.7314 GB, free: 4.574 MB / 0.5574 GB Notification: Performance of preOpt evalFunc (simulation): time 9.988e-06/0.2693, allocations: 0 / 0.7314 GB, free: 4.574 MB / 0.5574 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.476e-05/0.2694, allocations: 30.56 kB / 0.7314 GB, free: 4.535 MB / 0.5574 GB Notification: Performance of pre-optimization done (n=6): time 1.513e-06/0.2694, allocations: 0 / 0.7314 GB, free: 4.535 MB / 0.5574 GB Notification: Performance of matching and sorting (n=6): time 0.0008852/0.2703, allocations: 376.3 kB / 0.7318 GB, free: 4.137 MB / 0.5574 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.925e-05/0.2704, allocations: 85.11 kB / 0.7319 GB, free: 4.035 MB / 0.5574 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001554/0.2706, allocations: 137.6 kB / 0.732 GB, free: 3.891 MB / 0.5574 GB Notification: Performance of collectPreVariables (initialization): time 4.301e-05/0.2706, allocations: 29.7 kB / 0.732 GB, free: 3.855 MB / 0.5574 GB Notification: Performance of collectInitialEqns (initialization): time 5.473e-05/0.2707, allocations: 84.14 kB / 0.7321 GB, free: 3.77 MB / 0.5574 GB Notification: Performance of collectInitialBindings (initialization): time 5.697e-05/0.2707, allocations: 15.75 kB / 0.7321 GB, free: 3.754 MB / 0.5574 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.402e-05/0.2708, allocations: 4 kB / 0.7321 GB, free: 3.75 MB / 0.5574 GB Notification: Performance of setup shared object (initialization): time 0.0001558/0.2709, allocations: 322.8 kB / 0.7324 GB, free: 3.426 MB / 0.5574 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001749/0.2711, allocations: 59.95 kB / 0.7325 GB, free: 3.367 MB / 0.5574 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001655/0.2713, allocations: 59.94 kB / 0.7325 GB, free: 3.309 MB / 0.5574 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.2715, allocations: 89.66 kB / 0.7326 GB, free: 3.215 MB / 0.5574 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.408e-06/0.2715, allocations: 4.031 kB / 0.7326 GB, free: 3.211 MB / 0.5574 GB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0005847/0.2721, allocations: 227.2 kB / 0.7328 GB, free: 2.977 MB / 0.5574 GB Notification: Performance of prepare postOptimizeDAE: time 6.859e-05/0.2722, allocations: 41.69 kB / 0.7329 GB, free: 2.93 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.382e-06/0.2722, allocations: 0 / 0.7329 GB, free: 2.93 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.16e-05/0.2722, allocations: 3.984 kB / 0.7329 GB, free: 2.926 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.593e-06/0.2723, allocations: 0 / 0.7329 GB, free: 2.926 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.118e-06/0.2723, allocations: 7.938 kB / 0.7329 GB, free: 2.918 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004931/0.2728, allocations: 19.89 kB / 0.7329 GB, free: 2.898 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.651e-05/0.2729, allocations: 19.98 kB / 0.7329 GB, free: 2.879 MB / 0.5574 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.0002077/0.2731, allocations: 171.5 kB / 0.7331 GB, free: 2.695 MB / 0.5574 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.932e-05/0.2731, allocations: 11.91 kB / 0.7331 GB, free: 2.684 MB / 0.5574 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.929e-05/0.2732, allocations: 4.375 kB / 0.7331 GB, free: 2.68 MB / 0.5574 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.687e-06/0.2732, allocations: 256 / 0.7331 GB, free: 2.68 MB / 0.5574 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.478e-06/0.2732, allocations: 4 kB / 0.7331 GB, free: 2.676 MB / 0.5574 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.152e-06/0.2732, allocations: 4 kB / 0.7331 GB, free: 2.672 MB / 0.5574 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001847/0.2734, allocations: 173.5 kB / 0.7333 GB, free: 2.453 MB / 0.5574 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.713e-06/0.2734, allocations: 0 / 0.7333 GB, free: 2.453 MB / 0.5574 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.418e-06/0.2735, allocations: 4 kB / 0.7333 GB, free: 2.449 MB / 0.5574 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.2735, allocations: 0 / 0.7333 GB, free: 2.449 MB / 0.5574 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.263e-05/0.2735, allocations: 19.98 kB / 0.7333 GB, free: 2.43 MB / 0.5574 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-06/0.2735, allocations: 0 / 0.7333 GB, free: 2.43 MB / 0.5574 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.753e-06/0.2735, allocations: 0 / 0.7333 GB, free: 2.43 MB / 0.5574 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007635/0.2743, allocations: 290.5 kB / 0.7336 GB, free: 2.121 MB / 0.5574 GB Notification: Performance of postOpt removeConstants (simulation): time 5.837e-05/0.2744, allocations: 89 kB / 0.7337 GB, free: 2.016 MB / 0.5574 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.575e-05/0.2745, allocations: 11.98 kB / 0.7337 GB, free: 2.004 MB / 0.5574 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000405/0.2749, allocations: 16.36 kB / 0.7337 GB, free: 1.988 MB / 0.5574 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.627e-05/0.2749, allocations: 15.95 kB / 0.7337 GB, free: 1.973 MB / 0.5574 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.037e-05/0.275, allocations: 15.98 kB / 0.7337 GB, free: 1.957 MB / 0.5574 GB Notification: Performance of sorting global known variables: time 8.533e-05/0.2751, allocations: 99.2 kB / 0.7338 GB, free: 1.859 MB / 0.5574 GB Notification: Performance of sort global known variables: time 3.8e-07/0.2751, allocations: 0 / 0.7338 GB, free: 1.859 MB / 0.5574 GB Notification: Performance of remove unused functions: time 0.0005216/0.2756, allocations: 91.92 kB / 0.7339 GB, free: 1.77 MB / 0.5574 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.002003/0.2777, allocations: 1.122 MB / 0.735 GB, free: 0.7148 MB / 0.5574 GB Notification: Performance of simCode: created initialization part: time 0.0006311/0.2783, allocations: 295.2 kB / 0.7353 GB, free: 424 kB / 0.5574 GB Notification: Performance of simCode: created event and clocks part: time 3.246e-06/0.2783, allocations: 0 / 0.7353 GB, free: 424 kB / 0.5574 GB Notification: Performance of simCode: created simulation system equations: time 0.0003383/0.2787, allocations: 207.6 kB / 0.7355 GB, free: 204 kB / 0.5574 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001524/0.2788, allocations: 7.938 kB / 0.7355 GB, free: 196 kB / 0.5574 GB Warning: Could not resolve URI ("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.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.0009995/0.2799, allocations: 336.5 kB / 0.7358 GB, free: 15.82 MB / 0.573 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003124/0.2802, allocations: 0.6848 MB / 0.7365 GB, free: 15.11 MB / 0.573 GB Notification: Performance of simCode: alias equations: time 0.0001027/0.2803, allocations: 47.88 kB / 0.7365 GB, free: 15.06 MB / 0.573 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.442e-05/0.2803, allocations: 15.42 kB / 0.7365 GB, free: 15.05 MB / 0.573 GB Notification: Performance of SimCode: time 7.52e-07/0.2804, allocations: 0 / 0.7365 GB, free: 15.05 MB / 0.573 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4259/0.7063, allocations: 4.66 MB / 0.7411 GB, free: 10.49 MB / 0.573 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004046/0.7067, allocations: 283.7 kB / 0.7414 GB, free: 10.12 MB / 0.573 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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.o Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.c In file included from Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange.c:7: In file included from ./Buildings_7_0_0_Buildings_Utilities_IO_Python36_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 7.0.0/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.o Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c In file included from Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Utilities_IO_Python36_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_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_includes.h:4: /var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Buildings 7.0.0/Resources/C-Sources/pythonWrapper.c:21:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Utilities_IO_Python36_Functions_Examples_Exchange_functions.o] Error 1