Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.Tutorial.SpaceCooling.System3.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.Examples.Tutorial.SpaceCooling.System3,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3",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.143/2.143, allocations: 251 MB / 265.9 MB, free: 11.67 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.001562/0.001562, allocations: 187.9 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.289/2.289, allocations: 205.4 MB / 0.5764 GB, free: 20.75 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.001143/0.001143, allocations: 95.78 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0005014/0.0005014, allocations: 11.66 kB / 0.795 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2273/0.2279, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.301/8.529, allocations: 2.547 GB / 3.446 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/8.529, allocations: 97.77 kB / 3.446 GB, free: 222.3 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 22.72/31.25, allocations: 4.045 GB / 7.491 GB, free: 70.75 MB / 1.042 GB Notification: Performance of FrontEnd: time 4.037e-06/31.25, allocations: 3.375 kB / 7.491 GB, free: 70.75 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.002113/31.25, allocations: 226.9 kB / 7.491 GB, free: 70.71 MB / 1.042 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1766 * Number of variables: 1766 Notification: Performance of Generate backend data structure: time 0.05302/31.3, allocations: 10.36 MB / 7.501 GB, free: 66.68 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.135e-05/31.3, allocations: 8.469 kB / 7.501 GB, free: 66.68 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005529/31.31, allocations: 0.9295 MB / 7.502 GB, free: 66.6 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02809/31.33, allocations: 2.644 MB / 7.505 GB, free: 66.07 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04385/31.38, allocations: 10.07 MB / 7.515 GB, free: 64.83 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001095/31.38, allocations: 0.5178 MB / 7.515 GB, free: 64.82 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004452/31.38, allocations: 0.701 MB / 7.516 GB, free: 64.81 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03893/31.42, allocations: 9.012 MB / 7.525 GB, free: 64.13 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000583/31.42, allocations: 12.56 kB / 7.525 GB, free: 64.13 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003573/31.43, allocations: 291.8 kB / 7.525 GB, free: 64.13 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004752/31.43, allocations: 303 kB / 7.525 GB, free: 64.12 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03249/31.46, allocations: 8.333 MB / 7.533 GB, free: 64.05 MB / 1.042 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.104/31.56, allocations: 37.48 MB / 7.57 GB, free: 49.8 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01746/31.58, allocations: 5.808 MB / 7.576 GB, free: 49.05 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002522/31.58, allocations: 1.064 MB / 7.577 GB, free: 48.02 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01197/31.6, allocations: 3.227 MB / 7.58 GB, free: 47.88 MB / 1.042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007177/31.6, allocations: 389.7 kB / 7.58 GB, free: 47.69 MB / 1.042 GB Notification: Performance of pre-optimization done (n=462): time 2.738e-05/31.6, allocations: 3.094 kB / 7.58 GB, free: 47.69 MB / 1.042 GB Notification: Performance of matching and sorting (n=473): time 0.07595/31.68, allocations: 16.13 MB / 7.596 GB, free: 45.3 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001563/31.68, allocations: 336 kB / 7.596 GB, free: 44.95 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01929/31.7, allocations: 5.895 MB / 7.602 GB, free: 44.56 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.00179/31.7, allocations: 128.5 kB / 7.602 GB, free: 44.53 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.007214/31.71, allocations: 3.736 MB / 7.606 GB, free: 43.34 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.003476/31.71, allocations: 1.626 MB / 7.607 GB, free: 42.29 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001056/31.71, allocations: 96.75 kB / 7.607 GB, free: 42.29 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0005503/31.71, allocations: 499.4 kB / 7.608 GB, free: 41.98 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.008665/31.72, allocations: 2.398 MB / 7.61 GB, free: 41.96 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0109/31.73, allocations: 3.652 MB / 7.614 GB, free: 40.7 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01121/31.74, allocations: 3.009 MB / 7.617 GB, free: 40.65 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.652e-05/31.74, allocations: 6.375 kB / 7.617 GB, free: 40.65 MB / 1.042 GB Notification: Performance of matching and sorting (n=608) (initialization): time 0.02631/31.77, allocations: 7.137 MB / 7.624 GB, free: 40.14 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.003776/31.77, allocations: 10.84 MB / 7.634 GB, free: 28.69 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001413/31.77, allocations: 22.09 kB / 7.634 GB, free: 28.69 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003632/31.78, allocations: 0.6019 MB / 7.635 GB, free: 28.64 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009653/31.79, allocations: 1.073 MB / 7.636 GB, free: 28.64 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01764/31.81, allocations: 9.745 MB / 7.646 GB, free: 22.85 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01416/31.82, allocations: 0.738 MB / 7.646 GB, free: 22.81 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001646/31.82, allocations: 201.5 kB / 7.646 GB, free: 22.81 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.485e-05/31.82, allocations: 3.531 kB / 7.646 GB, free: 22.81 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02296/31.84, allocations: 6.553 MB / 7.653 GB, free: 22.58 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001034/31.84, allocations: 25.72 kB / 7.653 GB, free: 22.58 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003331/31.85, allocations: 0.6021 MB / 7.653 GB, free: 22.54 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009495/31.86, allocations: 1.066 MB / 7.654 GB, free: 22.53 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02053/31.88, allocations: 10.67 MB / 7.665 GB, free: 31.92 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01396/31.89, allocations: 0.7254 MB / 7.666 GB, free: 31.88 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001562/31.89, allocations: 199.8 kB / 7.666 GB, free: 31.88 MB / 1.057 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,$PRE.weaDat.conTimMin.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTim.tNext,$PRE.con.y,con.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (565): * Single equations (assignments): 557 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * 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: 1 {(1,100.0%) 7} * Non-linear torn systems: 4 {3 22,1 4,1 3,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.00942/31.9, allocations: 2.842 MB / 7.669 GB, free: 31.68 MB / 1.057 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002721/31.91, allocations: 0.6898 MB / 7.669 GB, free: 31.32 MB / 1.057 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02698/31.93, allocations: 7.076 MB / 7.676 GB, free: 30.91 MB / 1.057 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.898e-05/31.93, allocations: 49.39 kB / 7.676 GB, free: 30.91 MB / 1.057 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.546e-05/31.93, allocations: 2.719 kB / 7.676 GB, free: 30.91 MB / 1.057 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02078/31.95, allocations: 5.8 MB / 7.682 GB, free: 30.41 MB / 1.057 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05485/32.01, allocations: 15.92 MB / 7.697 GB, free: 29.19 MB / 1.057 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.347e-05/32.01, allocations: 5.812 kB / 7.697 GB, free: 29.19 MB / 1.057 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01057/32.02, allocations: 1.043 MB / 7.698 GB, free: 29.19 MB / 1.057 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002509/32.02, allocations: 398.8 kB / 7.699 GB, free: 29.14 MB / 1.057 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001411/32.02, allocations: 135.4 kB / 7.699 GB, free: 29.14 MB / 1.057 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01445/32.04, allocations: 10.84 MB / 7.71 GB, free: 20.27 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.765e-06/32.04, allocations: 0 / 7.71 GB, free: 20.27 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03445/32.07, allocations: 10.24 MB / 7.72 GB, free: 19.27 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008068/32.08, allocations: 1.626 MB / 7.721 GB, free: 18.81 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003781/32.08, allocations: 102.6 kB / 7.721 GB, free: 18.81 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01311/32.1, allocations: 0.6736 MB / 7.722 GB, free: 18.78 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001741/32.1, allocations: 303 kB / 7.722 GB, free: 18.77 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0009669/32.1, allocations: 183.8 kB / 7.722 GB, free: 18.77 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.01447/32.11, allocations: 4.612 MB / 7.727 GB, free: 18.55 MB / 1.057 GB Notification: Performance of sort global known variables: time 7.12e-07/32.11, allocations: 0 / 7.727 GB, free: 18.55 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.03256/32.15, allocations: 4.51 MB / 7.731 GB, free: 18.39 MB / 1.057 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 24 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,fan.filter.x[1],fan.filter.x[2],cooCoi.ele[1].vol1.dynBal.U,cooCoi.ele[1].vol2.dynBal.U,cooCoi.ele[1].vol2.dynBal.mXi[1],cooCoi.ele[1].mas.T,cooCoi.ele[2].vol1.dynBal.U,cooCoi.ele[2].vol2.dynBal.U,cooCoi.ele[2].vol2.dynBal.mXi[1],cooCoi.ele[2].mas.T,cooCoi.ele[3].vol1.dynBal.U,cooCoi.ele[3].vol2.dynBal.U,cooCoi.ele[3].vol2.dynBal.mXi[1],cooCoi.ele[3].mas.T,cooCoi.ele[4].vol1.dynBal.U,cooCoi.ele[4].vol2.dynBal.U,cooCoi.ele[4].vol2.dynBal.m,cooCoi.ele[4].vol2.dynBal.mXi[1],cooCoi.ele[4].mas.T,senTemHXOut.T,senTemSupAir.T) * Number of discrete variables: 5 ($whenCondition2,$whenCondition1,weaDat.conTimMin.tNext,weaDat.conTim.tNext,con.y) * Number of discrete states: 3 (weaDat.conTimMin.tNext,weaDat.conTim.tNext,con.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (476): * Single equations (assignments): 462 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 2 {1,1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 4 {(1,100.0%) 1,(1,100.0%) 2,(1,100.0%) 7,(1,100.0%) 1} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.05226/32.2, allocations: 18.8 MB / 7.75 GB, free: 9.586 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.03494/32.23, allocations: 10.56 MB / 7.76 GB, free: 5.426 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.711e-05/32.23, allocations: 7.281 kB / 7.76 GB, free: 5.426 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.01187/32.25, allocations: 3.725 MB / 7.764 GB, free: 3.793 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0337/32.28, allocations: 3.974 MB / 7.767 GB, free: 3.094 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.11/33.39, allocations: 50.72 MB / 7.817 GB, free: 110.2 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01691/33.41, allocations: 5.738 MB / 7.823 GB, free: 109.3 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.02625/33.43, allocations: 3.385 MB / 7.826 GB, free: 109.2 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.013/33.45, allocations: 3.71 MB / 7.83 GB, free: 109.2 MB / 1.089 GB Notification: Performance of SimCode: time 1.813e-06/33.45, allocations: 1.641 kB / 7.83 GB, free: 109.2 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6476/34.09, allocations: 299.5 MB / 8.122 GB, free: 35.16 MB / 1.089 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003112/34.09, allocations: 252.8 kB / 8.122 GB, free: 34.83 MB / 1.089 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_Examples_Tutorial_SpaceCooling_System3.o Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3.c In file included from Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3.c:7: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_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_Examples_Tutorial_SpaceCooling_System3_functions.o Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_functions.c In file included from Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_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_Examples_Tutorial_SpaceCooling_System3_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_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_Examples_Tutorial_SpaceCooling_System3_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System3_functions.o] Error 1