Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Fluid.Sources.Examples.Outside_CpLowRise.conf.json Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Using package Buildings with version 7.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.Sources.Examples.Outside_CpLowRise,fileNamePrefix="Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/package.mo): time 2.19/2.19, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001678/0.001677, allocations: 180.1 kB / 325.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.475/2.475, allocations: 205.4 MB / 0.5764 GB, free: 21.2 MB / 426.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001164/0.001163, allocations: 102.3 kB / 0.6809 GB, free: 14.04 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0004903/0.0004903, allocations: 16.84 kB / 0.795 GB, free: 135.7 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2239/0.2244, allocations: 106.3 MB / 0.8988 GB, free: 65.9 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.54/7.765, allocations: 2.21 GB / 3.108 GB, free: 245.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003144/7.765, allocations: 94.45 kB / 3.109 GB, free: 245.5 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 1.11/8.875, allocations: 307.6 MB / 3.409 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of FrontEnd: time 3.086e-06/8.875, allocations: 0 / 3.409 GB, free: 15.5 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0002106/8.876, allocations: 43.94 kB / 3.409 GB, free: 15.46 MB / 0.8855 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 422 * Number of variables: 422 Notification: Performance of Generate backend data structure: time 0.006434/8.882, allocations: 1.919 MB / 3.411 GB, free: 13.47 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 6.018e-05/8.882, allocations: 8.031 kB / 3.411 GB, free: 13.46 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007284/8.883, allocations: 240.6 kB / 3.411 GB, free: 13.22 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007787/8.891, allocations: 0.4894 MB / 3.412 GB, free: 12.73 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004255/8.895, allocations: 0.9893 MB / 3.413 GB, free: 11.69 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001723/8.895, allocations: 135.2 kB / 3.413 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005709/8.896, allocations: 160 kB / 3.413 GB, free: 11.4 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008164/8.904, allocations: 1.75 MB / 3.415 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.444e-05/8.904, allocations: 0 / 3.415 GB, free: 9.598 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004919/8.905, allocations: 68 kB / 3.415 GB, free: 9.531 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.821e-05/8.905, allocations: 47.94 kB / 3.415 GB, free: 9.484 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006842/8.912, allocations: 1.8 MB / 3.416 GB, free: 7.68 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01254/8.924, allocations: 5.06 MB / 3.421 GB, free: 2.371 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004153/8.928, allocations: 1.323 MB / 3.423 GB, free: 1.039 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001123/8.93, allocations: 0.8078 MB / 3.423 GB, free: 68 kB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.663/9.592, allocations: 0.8187 MB / 3.424 GB, free: 219.7 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=137): time 5.481e-06/9.593, allocations: 1.203 kB / 3.424 GB, free: 219.7 MB / 0.8855 GB Notification: Performance of matching and sorting (n=137): time 0.01071/9.603, allocations: 2.429 MB / 3.427 GB, free: 219.2 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001156/9.603, allocations: 247.7 kB / 3.427 GB, free: 218.9 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001667/9.605, allocations: 0.7452 MB / 3.428 GB, free: 218.8 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004666/9.606, allocations: 59.58 kB / 3.428 GB, free: 218.7 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007172/9.606, allocations: 0.6268 MB / 3.428 GB, free: 218.6 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006992/9.607, allocations: 461.3 kB / 3.429 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001467/9.607, allocations: 22.34 kB / 3.429 GB, free: 218.3 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001237/9.607, allocations: 351.3 kB / 3.429 GB, free: 218 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001692/9.609, allocations: 435 kB / 3.429 GB, free: 218 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0019/9.611, allocations: 0.5916 MB / 3.43 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001935/9.613, allocations: 0.5026 MB / 3.431 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.148e-06/9.613, allocations: 6.438 kB / 3.431 GB, free: 217.9 MB / 0.8855 GB Notification: Performance of matching and sorting (n=145) (initialization): time 0.005898/9.619, allocations: 1.396 MB / 3.432 GB, free: 217.7 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 3.085e-05/9.619, allocations: 5.188 kB / 3.432 GB, free: 217.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.359e-05/9.619, allocations: 1.75 kB / 3.432 GB, free: 217.7 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001746/9.621, allocations: 192.9 kB / 3.432 GB, free: 217.7 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003125/9.624, allocations: 295.9 kB / 3.432 GB, free: 217.7 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007428/9.631, allocations: 6.807 MB / 3.439 GB, free: 211.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002457/9.634, allocations: 156.3 kB / 3.439 GB, free: 211.4 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004728/9.635, allocations: 44.05 kB / 3.439 GB, free: 211.4 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (135): * Single equations (assignments): 130 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00188/9.636, allocations: 365.9 kB / 3.44 GB, free: 211.2 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006662/9.637, allocations: 123 kB / 3.44 GB, free: 211.2 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009214/9.646, allocations: 1.748 MB / 3.441 GB, free: 211 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.582e-05/9.646, allocations: 15 kB / 3.441 GB, free: 211 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.685e-05/9.646, allocations: 4.672 kB / 3.441 GB, free: 211 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.738e-05/9.647, allocations: 8.078 kB / 3.441 GB, free: 211 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004316/9.651, allocations: 1.473 MB / 3.443 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.012e-05/9.651, allocations: 0 / 3.443 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003122/9.654, allocations: 299.8 kB / 3.443 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001517/9.656, allocations: 191.7 kB / 3.443 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003797/9.656, allocations: 42.23 kB / 3.443 GB, free: 210.8 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006925/9.663, allocations: 6.845 MB / 3.45 GB, free: 204.5 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.476e-06/9.663, allocations: 3.953 kB / 3.45 GB, free: 204.5 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006271/9.669, allocations: 1.52 MB / 3.452 GB, free: 204.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001536/9.671, allocations: 428.6 kB / 3.452 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003542/9.671, allocations: 24.91 kB / 3.452 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002275/9.674, allocations: 123.9 kB / 3.452 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003952/9.674, allocations: 103 kB / 3.452 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002663/9.674, allocations: 67.95 kB / 3.452 GB, free: 204.1 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001363/9.676, allocations: 0.5956 MB / 3.453 GB, free: 204 MB / 0.8855 GB Notification: Performance of sort global known variables: time 7.12e-07/9.676, allocations: 2.062 kB / 3.453 GB, free: 204 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003475/9.679, allocations: 0.6742 MB / 3.453 GB, free: 204 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 4 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of discrete states: 2 (weaDat.conTimMin.tNext,weaDat.conTim.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (140): * Single equations (assignments): 133 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0105/9.69, allocations: 3.601 MB / 3.457 GB, free: 203 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.005151/9.695, allocations: 1.729 MB / 3.459 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.155e-05/9.695, allocations: 3.344 kB / 3.459 GB, free: 202.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.003887/9.699, allocations: 1.256 MB / 3.46 GB, free: 201.9 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003977/9.703, allocations: 447.7 kB / 3.46 GB, free: 201.9 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02523/9.728, allocations: 8.271 MB / 3.468 GB, free: 198.9 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00102/9.729, allocations: 1.32 MB / 3.47 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.003319/9.733, allocations: 422.9 kB / 3.47 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/9.734, allocations: 0.6089 MB / 3.471 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of SimCode: time 1.393e-06/9.734, allocations: 0 / 3.471 GB, free: 198.2 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1849/9.919, allocations: 52.37 MB / 3.522 GB, free: 196.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002908/9.92, allocations: 259.8 kB / 3.522 GB, free: 196.2 MB / 0.8855 GB Error: Error building simulator. Build log: clang -Os -fPIC -mfpmath=sse -fno-dollars-in-identifiers -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise.o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise.c In file included from Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' -DOMC_FMI_RUNTIME=1 -DCMINPACK_NO_DLL=1 "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.o Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.c In file included from Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Resources/C-Sources/getTimeSpan.c:6:10: fatal error: 'ModelicaUtilities.h' file not found #include ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. : recipe for target 'Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Fluid_Sources_Examples_Outside_CpLowRise_functions.o] Error 1