Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8.0.0_Buildings.Fluid.SolarCollectors.Examples.FlatPlate.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) 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 8.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo) Running command: "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.SolarCollectors.Examples.FlatPlate,fileNamePrefix="Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/package.mo): time 2.554/2.554, allocations: 287.3 MB / 302.3 MB, free: 8.309 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00159/0.00159, allocations: 183.3 kB / 370.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.128/2.128, allocations: 205.4 MB / 0.6295 GB, free: 10.64 MB / 458.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001162/0.001161, allocations: 94.41 kB / 0.7428 GB, free: 6.648 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0006658/0.0006658, allocations: 16.3 kB / 0.8657 GB, free: 140.3 MB / 0.6198 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2342/0.235, allocations: 115.3 MB / 0.9783 GB, free: 28.34 MB / 0.6198 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.963/7.198, allocations: 2.11 GB / 3.088 GB, free: 163.6 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003054/7.199, allocations: 100.5 kB / 3.088 GB, free: 163.5 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 7.921/15.12, allocations: 1.414 GB / 4.502 GB, free: 141.2 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.956e-06/15.12, allocations: 0 / 4.502 GB, free: 141.2 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0009386/15.12, allocations: 125 kB / 4.502 GB, free: 141.2 MB / 0.948 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.02864/15.15, allocations: 6.355 MB / 4.508 GB, free: 138.4 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.897e-05/15.15, allocations: 7.562 kB / 4.508 GB, free: 138.4 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003298/15.15, allocations: 0.5293 MB / 4.509 GB, free: 138.3 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01923/15.17, allocations: 1.598 MB / 4.51 GB, free: 138.1 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02142/15.19, allocations: 5.26 MB / 4.516 GB, free: 137.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004517/15.19, allocations: 282 kB / 4.516 GB, free: 137.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001964/15.2, allocations: 375 kB / 4.516 GB, free: 137.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02191/15.22, allocations: 5.446 MB / 4.522 GB, free: 136.8 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001991/15.22, allocations: 8.125 kB / 4.522 GB, free: 136.8 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001716/15.22, allocations: 163.2 kB / 4.522 GB, free: 136.8 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001849/15.22, allocations: 161.7 kB / 4.522 GB, free: 136.8 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02271/15.24, allocations: 5.328 MB / 4.527 GB, free: 136.8 MB / 0.948 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.05681/15.3, allocations: 19.21 MB / 4.546 GB, free: 130.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01532/15.32, allocations: 3.812 MB / 4.55 GB, free: 128.7 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.003551/15.32, allocations: 2.532 MB / 4.552 GB, free: 125.9 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00921/15.33, allocations: 2.128 MB / 4.554 GB, free: 125.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=284): time 7.714e-06/15.33, allocations: 0 / 4.554 GB, free: 125.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=284): time 0.0329/15.36, allocations: 6.818 MB / 4.561 GB, free: 122.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001358/15.36, allocations: 292.9 kB / 4.561 GB, free: 121.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0105/15.37, allocations: 3.354 MB / 4.564 GB, free: 120.6 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.001102/15.37, allocations: 82.95 kB / 4.564 GB, free: 120.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.003112/15.38, allocations: 1.954 MB / 4.566 GB, free: 119.1 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.002111/15.38, allocations: 0.9616 MB / 4.567 GB, free: 118.3 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005155/15.38, allocations: 58.91 kB / 4.567 GB, free: 118.3 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0003096/15.38, allocations: 430 kB / 4.568 GB, free: 117.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007059/15.39, allocations: 1.601 MB / 4.569 GB, free: 117.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.008198/15.39, allocations: 2.242 MB / 4.571 GB, free: 116.1 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008173/15.4, allocations: 1.94 MB / 4.573 GB, free: 115.3 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.539e-05/15.4, allocations: 3.188 kB / 4.573 GB, free: 115.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=380) (initialization): time 0.02404/15.43, allocations: 4.47 MB / 4.578 GB, free: 113.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001959/15.43, allocations: 6.549 MB / 4.584 GB, free: 106.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.823e-05/15.43, allocations: 15.25 kB / 4.584 GB, free: 106.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001587/15.43, allocations: 112.6 kB / 4.584 GB, free: 106.7 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01159/15.44, allocations: 0.7923 MB / 4.585 GB, free: 106.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004547/15.45, allocations: 2.174 MB / 4.587 GB, free: 104.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01323/15.46, allocations: 0.5332 MB / 4.588 GB, free: 104.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001509/15.46, allocations: 163 kB / 4.588 GB, free: 104.2 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 2.041e-05/15.46, allocations: 4 kB / 4.588 GB, free: 104.2 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.02748/15.49, allocations: 4.129 MB / 4.592 GB, free: 100.7 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.658e-05/15.49, allocations: 19.53 kB / 4.592 GB, free: 100.7 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.001578/15.49, allocations: 109.4 kB / 4.592 GB, free: 100.6 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01185/15.5, allocations: 0.7851 MB / 4.593 GB, free: 99.95 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003996/15.51, allocations: 1.57 MB / 4.594 GB, free: 98.32 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01304/15.52, allocations: 0.4921 MB / 4.595 GB, free: 97.93 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001576/15.52, allocations: 159.1 kB / 4.595 GB, free: 97.8 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 67 * 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 (378): * Single equations (assignments): 376 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 1 * 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: 0 * Non-linear torn systems: 1 {1 2} Notification: Performance of prepare postOptimizeDAE: time 0.007441/15.53, allocations: 1.522 MB / 4.596 GB, free: 96.49 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003084/15.53, allocations: 390.5 kB / 4.597 GB, free: 96.11 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03736/15.57, allocations: 5.141 MB / 4.602 GB, free: 91.98 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.294e-05/15.57, allocations: 31.81 kB / 4.602 GB, free: 91.95 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.161e-05/15.57, allocations: 0 / 4.602 GB, free: 91.95 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.02692/15.6, allocations: 4.07 MB / 4.606 GB, free: 88.43 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03765/15.63, allocations: 9.946 MB / 4.616 GB, free: 79.06 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.552e-05/15.63, allocations: 0 / 4.616 GB, free: 79.06 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006961/15.64, allocations: 0.6177 MB / 4.616 GB, free: 78.45 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004962/15.65, allocations: 0.6672 MB / 4.617 GB, free: 77.79 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009453/15.65, allocations: 95.91 kB / 4.617 GB, free: 77.7 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006822/15.65, allocations: 7.563 MB / 4.624 GB, free: 69.77 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.607e-06/15.65, allocations: 4.031 kB / 4.624 GB, free: 69.76 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02798/15.68, allocations: 6.79 MB / 4.631 GB, free: 62.92 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004484/15.69, allocations: 1.136 MB / 4.632 GB, free: 61.76 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00199/15.69, allocations: 59.98 kB / 4.632 GB, free: 61.7 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008076/15.7, allocations: 323.2 kB / 4.632 GB, free: 61.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001/15.7, allocations: 186.1 kB / 4.633 GB, free: 61.22 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007031/15.7, allocations: 135.8 kB / 4.633 GB, free: 61.09 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.007579/15.71, allocations: 2.647 MB / 4.635 GB, free: 58.46 MB / 0.948 GB Notification: Performance of sort global known variables: time 7.91e-07/15.71, allocations: 2.719 kB / 4.635 GB, free: 58.46 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.01684/15.72, allocations: 2.868 MB / 4.638 GB, free: 55.59 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 11 (solCol.vol[1].dynBal.U,solCol.vol[2].dynBal.U,solCol.vol[3].dynBal.U,solCol.vol[4].dynBal.U,solCol.vol[5].dynBal.U,solCol.vol[6].dynBal.U,solCol.vol[7].dynBal.U,solCol.vol[8].dynBal.U,solCol.vol[9].dynBal.U,TOut.T,TIn.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 (272): * Single equations (assignments): 257 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 1 * Torn equation systems: 10 * 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: 0 * Non-linear torn systems: 10 {1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3,1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.03235/15.76, allocations: 8.996 MB / 4.647 GB, free: 47 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.02465/15.78, allocations: 6.285 MB / 4.653 GB, free: 40.66 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.263e-05/15.78, allocations: 0.5625 kB / 4.653 GB, free: 40.66 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00906/15.79, allocations: 2.16 MB / 4.655 GB, free: 38.49 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01591/15.81, allocations: 1.945 MB / 4.657 GB, free: 36.61 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04533/15.85, allocations: 25.09 MB / 4.682 GB, free: 10.5 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005552/15.86, allocations: 3.147 MB / 4.685 GB, free: 7.32 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.01575/15.87, allocations: 2.417 MB / 4.687 GB, free: 5.023 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.006432/15.88, allocations: 1.939 MB / 4.689 GB, free: 3.098 MB / 0.948 GB Notification: Performance of SimCode: time 1.833e-06/15.88, allocations: 0 / 4.689 GB, free: 3.098 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.096/16.98, allocations: 132.7 MB / 4.818 GB, free: 155.4 MB / 0.9792 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.00025/16.98, allocations: 253.4 kB / 4.819 GB, free: 155.1 MB / 0.9792 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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c In file included from Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate.c:7: In file included from ./Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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 8.0.0/Resources/C-Sources" -c -o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c In file included from Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:2: In file included from ./Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_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_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.c:7: In file included from ./Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.0.0/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_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o' failed make: *** [Buildings_8_0_0_Buildings_Fluid_SolarCollectors_Examples_FlatPlate_functions.o] Error 1