Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Examples.Tutorial.SpaceCooling.System2.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.System2,fileNamePrefix="Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2",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.172/2.172, allocations: 251 MB / 265.9 MB, free: 11.7 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.001558/0.001558, allocations: 187.3 kB / 325.5 MB, free: 2.902 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.296/2.296, allocations: 205.4 MB / 0.5764 GB, free: 20.78 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.001134/0.001133, allocations: 103.4 kB / 0.6809 GB, free: 13.66 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.0006406/0.0006407, allocations: 12.69 kB / 0.795 GB, free: 135.4 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2119/0.2126, allocations: 106.3 MB / 0.8988 GB, free: 65.48 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 8.311/8.523, allocations: 2.546 GB / 3.445 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002744/8.524, allocations: 95.7 kB / 3.445 GB, free: 222.1 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 23.07/31.6, allocations: 4.044 GB / 7.49 GB, free: 70.37 MB / 1.042 GB Notification: Performance of FrontEnd: time 2.936e-06/31.6, allocations: 0 / 7.49 GB, free: 70.37 MB / 1.042 GB Notification: Performance of Transformations before backend: time 0.002054/31.6, allocations: 230.4 kB / 7.49 GB, free: 70.34 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: 1757 * Number of variables: 1757 Notification: Performance of Generate backend data structure: time 0.05257/31.65, allocations: 10.32 MB / 7.5 GB, free: 66.32 MB / 1.042 GB Notification: Performance of prepare preOptimizeDAE: time 5.482e-05/31.65, allocations: 12.28 kB / 7.5 GB, free: 66.32 MB / 1.042 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005544/31.66, allocations: 0.9235 MB / 7.501 GB, free: 66.24 MB / 1.042 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02842/31.68, allocations: 2.638 MB / 7.503 GB, free: 65.71 MB / 1.042 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.04268/31.73, allocations: 10.06 MB / 7.513 GB, free: 64.47 MB / 1.042 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009921/31.73, allocations: 0.5161 MB / 7.514 GB, free: 64.46 MB / 1.042 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004004/31.73, allocations: 0.6993 MB / 7.514 GB, free: 64.45 MB / 1.042 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03784/31.77, allocations: 8.98 MB / 7.523 GB, free: 63.77 MB / 1.042 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004661/31.77, allocations: 9.172 kB / 7.523 GB, free: 63.77 MB / 1.042 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003171/31.77, allocations: 288.5 kB / 7.523 GB, free: 63.77 MB / 1.042 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004536/31.77, allocations: 305.7 kB / 7.524 GB, free: 63.76 MB / 1.042 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03159/31.81, allocations: 8.307 MB / 7.532 GB, free: 63.7 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.1008/31.91, allocations: 37.34 MB / 7.568 GB, free: 49.45 MB / 1.042 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01597/31.92, allocations: 5.5 MB / 7.574 GB, free: 48.79 MB / 1.042 GB Notification: Performance of preOpt evalFunc (simulation): time 0.002419/31.92, allocations: 1.055 MB / 7.575 GB, free: 47.75 MB / 1.042 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.01162/31.94, allocations: 3.162 MB / 7.578 GB, free: 47.59 MB / 1.042 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006974/31.94, allocations: 398.6 kB / 7.578 GB, free: 47.39 MB / 1.042 GB Notification: Performance of pre-optimization done (n=455): time 2.873e-05/31.94, allocations: 0 / 7.578 GB, free: 47.39 MB / 1.042 GB Notification: Performance of matching and sorting (n=459): time 0.08131/32.02, allocations: 17.81 MB / 7.596 GB, free: 43.1 MB / 1.042 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001851/32.03, allocations: 415.6 kB / 7.596 GB, free: 42.66 MB / 1.042 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01839/32.04, allocations: 5.965 MB / 7.602 GB, free: 42.26 MB / 1.042 GB Notification: Performance of collectPreVariables (initialization): time 0.001688/32.05, allocations: 129.5 kB / 7.602 GB, free: 42.23 MB / 1.042 GB Notification: Performance of collectInitialEqns (initialization): time 0.006561/32.05, allocations: 3.717 MB / 7.606 GB, free: 41.06 MB / 1.042 GB Notification: Performance of collectInitialBindings (initialization): time 0.003323/32.06, allocations: 1.581 MB / 7.607 GB, free: 40.04 MB / 1.042 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008352/32.06, allocations: 91.12 kB / 7.607 GB, free: 40.04 MB / 1.042 GB Notification: Performance of setup shared object (initialization): time 0.0004925/32.06, allocations: 497.5 kB / 7.608 GB, free: 39.73 MB / 1.042 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007807/32.06, allocations: 2.324 MB / 7.61 GB, free: 39.71 MB / 1.042 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.009678/32.07, allocations: 3.577 MB / 7.613 GB, free: 38.44 MB / 1.042 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009584/32.08, allocations: 2.935 MB / 7.616 GB, free: 38.39 MB / 1.042 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.419e-05/32.08, allocations: 9.094 kB / 7.616 GB, free: 38.39 MB / 1.042 GB Notification: Performance of matching and sorting (n=597) (initialization): time 0.02604/32.11, allocations: 6.886 MB / 7.623 GB, free: 37.88 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 0.003609/32.11, allocations: 10.86 MB / 7.634 GB, free: 26.43 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001483/32.11, allocations: 28 kB / 7.634 GB, free: 26.43 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002525/32.12, allocations: 359.5 kB / 7.634 GB, free: 26.4 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01046/32.13, allocations: 1.086 MB / 7.635 GB, free: 26.4 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0114/32.14, allocations: 6.644 MB / 7.642 GB, free: 21.42 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01419/32.15, allocations: 0.7111 MB / 7.642 GB, free: 21.37 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001665/32.15, allocations: 195.7 kB / 7.642 GB, free: 21.37 MB / 1.042 GB Notification: Performance of prepare postOptimizeDAE: time 1.681e-05/32.15, allocations: 1.656 kB / 7.642 GB, free: 21.37 MB / 1.042 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02529/32.18, allocations: 6.309 MB / 7.649 GB, free: 21.14 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001301/32.18, allocations: 27.69 kB / 7.649 GB, free: 21.14 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/32.18, allocations: 352.6 kB / 7.649 GB, free: 21.11 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01004/32.19, allocations: 1.074 MB / 7.65 GB, free: 21.11 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01209/32.2, allocations: 6.978 MB / 7.657 GB, free: 15.89 MB / 1.042 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01442/32.22, allocations: 0.6916 MB / 7.658 GB, free: 15.85 MB / 1.042 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001728/32.22, allocations: 192.5 kB / 7.658 GB, free: 15.85 MB / 1.042 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 96 * 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 (578): * Single equations (assignments): 570 * Array equations: 2 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 1 {1} * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 7} * Non-linear torn systems: 3 {1 4,1 3,1 2} Notification: Performance of prepare postOptimizeDAE: time 0.01115/32.23, allocations: 2.827 MB / 7.66 GB, free: 15.65 MB / 1.042 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003694/32.24, allocations: 0.6977 MB / 7.661 GB, free: 15.29 MB / 1.042 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02721/32.26, allocations: 6.788 MB / 7.668 GB, free: 14.89 MB / 1.042 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.434e-05/32.26, allocations: 51 kB / 7.668 GB, free: 14.89 MB / 1.042 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.278e-05/32.26, allocations: 3.938 kB / 7.668 GB, free: 14.89 MB / 1.042 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0203/32.28, allocations: 5.536 MB / 7.673 GB, free: 14.41 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 postOpt removeSimpleEquations (simulation): time 0.05364/32.34, allocations: 15.48 MB / 7.688 GB, free: 13.26 MB / 1.042 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.583e-05/32.34, allocations: 3.75 kB / 7.688 GB, free: 13.26 MB / 1.042 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.01022/32.35, allocations: 1.018 MB / 7.689 GB, free: 13.25 MB / 1.042 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002225/32.35, allocations: 347 kB / 7.69 GB, free: 13.21 MB / 1.042 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001284/32.35, allocations: 126.1 kB / 7.69 GB, free: 13.21 MB / 1.042 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/32.36, allocations: 9.346 MB / 7.699 GB, free: 21.6 MB / 1.057 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.093e-06/32.36, allocations: 7.641 kB / 7.699 GB, free: 21.59 MB / 1.057 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03329/32.4, allocations: 10.34 MB / 7.709 GB, free: 20.09 MB / 1.057 GB Notification: Performance of postOpt removeConstants (simulation): time 0.008029/32.41, allocations: 1.616 MB / 7.711 GB, free: 19.63 MB / 1.057 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.003788/32.41, allocations: 106.1 kB / 7.711 GB, free: 19.63 MB / 1.057 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.01283/32.42, allocations: 0.6259 MB / 7.711 GB, free: 19.59 MB / 1.057 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001684/32.42, allocations: 292.9 kB / 7.712 GB, free: 19.59 MB / 1.057 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001092/32.43, allocations: 172.6 kB / 7.712 GB, free: 19.59 MB / 1.057 GB Notification: Performance of sorting global known variables: time 0.01517/32.44, allocations: 4.781 MB / 7.716 GB, free: 19.37 MB / 1.057 GB Notification: Performance of sort global known variables: time 5.71e-07/32.44, allocations: 0 / 7.716 GB, free: 19.37 MB / 1.057 GB Notification: Performance of remove unused functions: time 0.02932/32.47, allocations: 4.393 MB / 7.721 GB, free: 19.27 MB / 1.057 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 24 (vol.dynBal.U,vol.dynBal.m,vol.dynBal.mXi[1],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: 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 (461): * Single equations (assignments): 448 * 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: 5 * 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: 3 {(1,100.0%) 7,(1,100.0%) 1,(1,100.0%) 2} * Non-linear torn systems: 2 {1 4,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.0521/32.52, allocations: 19.08 MB / 7.739 GB, free: 13.29 MB / 1.057 GB Notification: Performance of simCode: created initialization part: time 0.03214/32.55, allocations: 9.853 MB / 7.749 GB, free: 10.24 MB / 1.057 GB Notification: Performance of simCode: created event and clocks part: time 1.886e-05/32.55, allocations: 4.125 kB / 7.749 GB, free: 10.24 MB / 1.057 GB Notification: Performance of simCode: created simulation system equations: time 0.01102/32.57, allocations: 3.452 MB / 7.752 GB, free: 8.766 MB / 1.057 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.03549/32.6, allocations: 4.13 MB / 7.756 GB, free: 8.051 MB / 1.057 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 1.098/33.7, allocations: 50.53 MB / 7.806 GB, free: 116 MB / 1.089 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01569/33.71, allocations: 5.694 MB / 7.811 GB, free: 115.1 MB / 1.089 GB Notification: Performance of simCode: alias equations: time 0.0271/33.74, allocations: 3.417 MB / 7.815 GB, free: 115 MB / 1.089 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0131/33.76, allocations: 3.66 MB / 7.818 GB, free: 115 MB / 1.089 GB Notification: Performance of SimCode: time 1.392e-06/33.76, allocations: 0 / 7.818 GB, free: 115 MB / 1.089 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6708/34.43, allocations: 297.4 MB / 8.109 GB, free: 45.12 MB / 1.089 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002923/34.43, allocations: 246.6 kB / 8.109 GB, free: 44.8 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_System2.o Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2.c In file included from Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2.c:7: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_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_System2_functions.o Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_functions.c In file included from Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_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_System2_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_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_System2_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Examples_Tutorial_SpaceCooling_System2_functions.o] Error 1