Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.DC.Sources.Examples.PVSimple.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.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple",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.3/2.3, allocations: 251 MB / 265.9 MB, free: 11.77 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: 177.2 kB / 325.5 MB, free: 2.945 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.445/2.445, allocations: 205.4 MB / 0.5764 GB, free: 20.87 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.001229/0.001228, allocations: 97.92 kB / 0.6809 GB, free: 13.68 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000494/0.000494, allocations: 15.75 kB / 0.795 GB, free: 135.6 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.218/0.2185, allocations: 106.3 MB / 0.8988 GB, free: 65.54 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.416/7.634, allocations: 2.223 GB / 3.122 GB, free: 238.5 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003698/7.635, allocations: 105.5 kB / 3.122 GB, free: 238.5 MB / 0.8855 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Interfaces/Source.mo:30:9-30:50:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.potentialRoot(terminal.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/Transmission/BaseClasses/PartialTwoPortResistance.mo:13:3-13:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 7.0.1/Electrical/DC/Sensors/GeneralizedSensor.mo:39:3-39:57:writable] Warning: Ignoring overconstrained operator applied to array components having size zero: Connections.branch(terminal_p.theta, terminal_n.theta);. Notification: Performance of FrontEnd - DAE generated: time 0.2766/7.911, allocations: 68.68 MB / 3.189 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.635e-06/7.912, allocations: 0 / 3.189 GB, free: 222.4 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0001315/7.912, allocations: 38.5 kB / 3.189 GB, free: 222.4 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: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.00556/7.917, allocations: 1.706 MB / 3.191 GB, free: 221.3 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.118e-05/7.917, allocations: 11.5 kB / 3.191 GB, free: 221.3 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007949/7.918, allocations: 221.6 kB / 3.191 GB, free: 221.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009654/7.928, allocations: 0.8052 MB / 3.192 GB, free: 220.8 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002835/7.931, allocations: 0.8872 MB / 3.193 GB, free: 220.3 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001088/7.931, allocations: 111 kB / 3.193 GB, free: 220.3 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/7.931, allocations: 139.4 kB / 3.193 GB, free: 220.3 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007413/7.939, allocations: 1.927 MB / 3.195 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.22e-05/7.939, allocations: 4 kB / 3.195 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002932/7.939, allocations: 61.66 kB / 3.195 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001015/7.939, allocations: 64.61 kB / 3.195 GB, free: 219.6 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01049/7.95, allocations: 2.352 MB / 3.197 GB, free: 219.1 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01722/7.967, allocations: 6.142 MB / 3.203 GB, free: 215.7 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007579/7.975, allocations: 1.577 MB / 3.205 GB, free: 215.4 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001033/7.976, allocations: 496.9 kB / 3.205 GB, free: 214.9 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003791/7.98, allocations: 0.9207 MB / 3.206 GB, free: 214.5 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=128): time 6.222e-06/7.98, allocations: 0 / 3.206 GB, free: 214.5 MB / 0.8855 GB Notification: Performance of matching and sorting (n=128): time 0.01074/7.99, allocations: 2.17 MB / 3.208 GB, free: 214 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001416/7.991, allocations: 358.9 kB / 3.209 GB, free: 213.6 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001718/7.992, allocations: 0.7792 MB / 3.21 GB, free: 213.3 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.0004225/7.993, allocations: 51.55 kB / 3.21 GB, free: 213.3 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005753/7.993, allocations: 0.5825 MB / 3.21 GB, free: 213 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005579/7.994, allocations: 433.2 kB / 3.211 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001742/7.994, allocations: 25.34 kB / 3.211 GB, free: 212.6 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001114/7.994, allocations: 355.3 kB / 3.211 GB, free: 212.3 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002963/7.997, allocations: 0.5799 MB / 3.212 GB, free: 212.2 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003379/8.001, allocations: 0.7887 MB / 3.212 GB, free: 211.9 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003749/8.004, allocations: 0.6549 MB / 3.213 GB, free: 211.8 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.912e-05/8.004, allocations: 3.938 kB / 3.213 GB, free: 211.8 MB / 0.8855 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.008843/8.013, allocations: 1.597 MB / 3.215 GB, free: 211.5 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003776/8.014, allocations: 1.056 MB / 3.216 GB, free: 210.4 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.499e-05/8.014, allocations: 0 / 3.216 GB, free: 210.4 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002885/8.014, allocations: 31.44 kB / 3.216 GB, free: 210.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003717/8.018, allocations: 333.1 kB / 3.216 GB, free: 210.3 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000461/8.018, allocations: 0.5387 MB / 3.216 GB, free: 209.7 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003016/8.021, allocations: 186.8 kB / 3.217 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004846/8.022, allocations: 62.02 kB / 3.217 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.737e-05/8.022, allocations: 5.781 kB / 3.217 GB, free: 209.6 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.007032/8.029, allocations: 1.466 MB / 3.218 GB, free: 209.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/8.029, allocations: 4 kB / 3.218 GB, free: 209.3 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.679e-05/8.029, allocations: 8 kB / 3.218 GB, free: 209.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003456/8.033, allocations: 338.5 kB / 3.218 GB, free: 208.9 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.402e-05/8.033, allocations: 8 kB / 3.218 GB, free: 208.9 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002693/8.035, allocations: 176.8 kB / 3.219 GB, free: 208.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/8.036, allocations: 58.14 kB / 3.219 GB, free: 208.7 MB / 0.8855 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (147): * Single equations (assignments): 146 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of prepare postOptimizeDAE: time 0.001217/8.037, allocations: 437.7 kB / 3.219 GB, free: 208.4 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004062/8.037, allocations: 114.6 kB / 3.219 GB, free: 208.3 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008693/8.046, allocations: 1.909 MB / 3.221 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.068e-05/8.046, allocations: 12 kB / 3.221 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.175e-05/8.046, allocations: 0 / 3.221 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-05/8.046, allocations: 7.984 kB / 3.221 GB, free: 206.9 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01103/8.057, allocations: 3.58 MB / 3.225 GB, free: 204.3 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.235e-05/8.057, allocations: 4 kB / 3.225 GB, free: 204.3 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003147/8.06, allocations: 303.2 kB / 3.225 GB, free: 204 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001845/8.061, allocations: 35.83 kB / 3.225 GB, free: 204 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001724/8.061, allocations: 38.34 kB / 3.225 GB, free: 204 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00105/8.062, allocations: 1.273 MB / 3.226 GB, free: 202.6 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.865e-06/8.062, allocations: 7.969 kB / 3.226 GB, free: 202.6 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008203/8.07, allocations: 1.721 MB / 3.228 GB, free: 201.3 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001584/8.072, allocations: 417.7 kB / 3.228 GB, free: 201 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000546/8.072, allocations: 30.88 kB / 3.228 GB, free: 201 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002928/8.075, allocations: 134.6 kB / 3.228 GB, free: 200.8 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004933/8.076, allocations: 83.69 kB / 3.229 GB, free: 200.8 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002414/8.076, allocations: 52.14 kB / 3.229 GB, free: 200.7 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.001504/8.078, allocations: 0.6387 MB / 3.229 GB, free: 200.3 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.012e-06/8.078, allocations: 0 / 3.229 GB, free: 200.3 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.003416/8.081, allocations: 0.737 MB / 3.23 GB, free: 199.6 MB / 0.8855 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * 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 (141): * Single equations (assignments): 138 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 1} Notification: Performance of Backend phase and start with SimCode phase: time 0.01009/8.091, allocations: 2.932 MB / 3.233 GB, free: 197.3 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.01101/8.102, allocations: 2.289 MB / 3.235 GB, free: 195.4 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.163e-05/8.102, allocations: 0 / 3.235 GB, free: 195.4 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.003771/8.106, allocations: 0.9005 MB / 3.236 GB, free: 194.5 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00261/8.109, allocations: 279.9 kB / 3.236 GB, free: 194.2 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0264/8.135, allocations: 9.705 MB / 3.246 GB, free: 184.2 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009106/8.136, allocations: 1.265 MB / 3.247 GB, free: 182.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.004431/8.141, allocations: 0.5208 MB / 3.247 GB, free: 182.4 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001747/8.143, allocations: 0.5812 MB / 3.248 GB, free: 181.8 MB / 0.8855 GB Notification: Performance of SimCode: time 1.142e-06/8.143, allocations: 0 / 3.248 GB, free: 181.8 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08619/8.229, allocations: 29.58 MB / 3.277 GB, free: 152.5 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002578/8.229, allocations: 243.3 kB / 3.277 GB, free: 152.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_Electrical_DC_Sources_Examples_PVSimple.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_Electrical_DC_Sources_Examples_PVSimple_functions.o Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c:2: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_Electrical_DC_Sources_Examples_PVSimple_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_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_Electrical_DC_Sources_Examples_PVSimple_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.o] Error 1