Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.DC.Sources.Examples.PVSimple.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Sources.Examples.PVSimple,fileNamePrefix="Buildings_8_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 8.1.4-maint.8.1.x/package.mo): time 1.746/1.746, allocations: 289.7 MB / 302.3 MB, free: 2.156 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.001208/0.001208, allocations: 177.8 kB / 371.6 MB, free: 3.41 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.783/1.783, allocations: 205.1 MB / 0.6309 GB, free: 11.79 MB / 474.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008975/0.0008975, allocations: 90.36 kB / 0.745 GB, free: 54.56 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 3.821e-05/3.833e-05, allocations: 0 / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2917/0.2918, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.142/6.434, allocations: 2.106 GB / 3.086 GB, free: 134.3 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002873/6.434, allocations: 101.2 kB / 3.086 GB, free: 134.2 MB / 0.948 GB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/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 8.1.4-maint.8.1.x/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 8.1.4-maint.8.1.x/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.1545/6.589, allocations: 68.26 MB / 3.153 GB, free: 65.91 MB / 0.948 GB Notification: Performance of FrontEnd: time 1.913e-06/6.589, allocations: 4 kB / 3.153 GB, free: 65.91 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.974e-05/6.589, allocations: 39.94 kB / 3.153 GB, free: 65.87 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: 372 * Number of variables: 372 Notification: Performance of Generate backend data structure: time 0.002778/6.592, allocations: 1.551 MB / 3.155 GB, free: 64.26 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.189e-05/6.592, allocations: 8.031 kB / 3.155 GB, free: 64.25 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002518/6.592, allocations: 223.3 kB / 3.155 GB, free: 64.02 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005048/6.597, allocations: 0.7939 MB / 3.156 GB, free: 63.23 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001728/6.599, allocations: 0.8953 MB / 3.156 GB, free: 62.29 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.605e-05/6.599, allocations: 110.9 kB / 3.156 GB, free: 62.18 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001987/6.599, allocations: 144 kB / 3.157 GB, free: 62.04 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002677/6.602, allocations: 1.703 MB / 3.158 GB, free: 60.27 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/6.602, allocations: 3.938 kB / 3.158 GB, free: 60.26 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001507/6.602, allocations: 60 kB / 3.158 GB, free: 60.2 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.092e-05/6.602, allocations: 58.75 kB / 3.158 GB, free: 60.14 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002617/6.605, allocations: 1.94 MB / 3.16 GB, free: 58.2 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009284/6.614, allocations: 6.155 MB / 3.166 GB, free: 51.83 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001979/6.616, allocations: 1.295 MB / 3.168 GB, free: 50.53 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000872/6.617, allocations: 0.6151 MB / 3.168 GB, free: 49.91 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006418/6.618, allocations: 482.6 kB / 3.169 GB, free: 49.34 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001124/6.619, allocations: 0.7846 MB / 3.169 GB, free: 48.54 MB / 0.948 GB Notification: Performance of pre-optimization done (n=128): time 3.727e-06/6.619, allocations: 0 / 3.169 GB, free: 48.54 MB / 0.948 GB Notification: Performance of matching and sorting (n=128): time 0.002354/6.621, allocations: 1.235 MB / 3.171 GB, free: 47.29 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001394/6.621, allocations: 351.1 kB / 3.171 GB, free: 46.87 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001048/6.623, allocations: 0.7747 MB / 3.172 GB, free: 46.07 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001078/6.623, allocations: 49.7 kB / 3.172 GB, free: 46.01 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004242/6.623, allocations: 0.5935 MB / 3.172 GB, free: 45.41 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002958/6.623, allocations: 421.8 kB / 3.173 GB, free: 44.99 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 7.478e-05/6.623, allocations: 24 kB / 3.173 GB, free: 44.97 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001087/6.624, allocations: 353.9 kB / 3.173 GB, free: 44.62 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006994/6.624, allocations: 458.5 kB / 3.174 GB, free: 44.17 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008251/6.625, allocations: 0.6571 MB / 3.174 GB, free: 43.45 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008327/6.626, allocations: 0.5242 MB / 3.175 GB, free: 42.93 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.476e-06/6.626, allocations: 0 / 3.175 GB, free: 42.93 MB / 0.948 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.002107/6.628, allocations: 1.332 MB / 3.176 GB, free: 41.58 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002735/6.628, allocations: 1.06 MB / 3.177 GB, free: 40.44 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/6.628, allocations: 4 kB / 3.177 GB, free: 40.44 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001921/6.629, allocations: 28.84 kB / 3.177 GB, free: 40.41 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001632/6.63, allocations: 331.5 kB / 3.177 GB, free: 40.08 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003082/6.631, allocations: 0.5523 MB / 3.178 GB, free: 39.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001355/6.632, allocations: 182.8 kB / 3.178 GB, free: 39.32 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001129/6.632, allocations: 63.94 kB / 3.178 GB, free: 39.26 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 9.708e-06/6.632, allocations: 4 kB / 3.178 GB, free: 39.26 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001817/6.634, allocations: 1.19 MB / 3.179 GB, free: 38.07 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/6.634, allocations: 4 kB / 3.179 GB, free: 38.06 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/6.634, allocations: 8.094 kB / 3.179 GB, free: 38.05 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001539/6.635, allocations: 347.7 kB / 3.18 GB, free: 37.71 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.198e-05/6.635, allocations: 8 kB / 3.18 GB, free: 37.71 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/6.637, allocations: 167 kB / 3.18 GB, free: 37.54 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001077/6.637, allocations: 59.95 kB / 3.18 GB, free: 37.48 MB / 0.948 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 () * 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.0003274/6.637, allocations: 181.9 kB / 3.18 GB, free: 37.3 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002038/6.637, allocations: 126.5 kB / 3.18 GB, free: 37.18 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002962/6.64, allocations: 1.634 MB / 3.182 GB, free: 35.53 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/6.64, allocations: 16 kB / 3.182 GB, free: 35.51 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.943e-06/6.64, allocations: 3.984 kB / 3.182 GB, free: 35.51 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.322e-05/6.64, allocations: 3.984 kB / 3.182 GB, free: 35.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004415/6.645, allocations: 3.475 MB / 3.185 GB, free: 31.95 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.544e-06/6.645, allocations: 0 / 3.185 GB, free: 31.95 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001492/6.646, allocations: 303.7 kB / 3.185 GB, free: 31.65 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001261/6.647, allocations: 28.84 kB / 3.185 GB, free: 31.62 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.629e-05/6.647, allocations: 43.95 kB / 3.186 GB, free: 31.58 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006974/6.647, allocations: 1.272 MB / 3.187 GB, free: 30.17 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.636e-06/6.647, allocations: 8.031 kB / 3.187 GB, free: 30.16 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002121/6.649, allocations: 1.505 MB / 3.188 GB, free: 28.6 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005946/6.65, allocations: 419 kB / 3.189 GB, free: 28.17 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001659/6.65, allocations: 28 kB / 3.189 GB, free: 28.14 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001235/6.651, allocations: 131.9 kB / 3.189 GB, free: 28.02 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001724/6.652, allocations: 93.12 kB / 3.189 GB, free: 27.92 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001033/6.652, allocations: 51.95 kB / 3.189 GB, free: 27.87 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.000774/6.653, allocations: 0.6256 MB / 3.19 GB, free: 27.23 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.41e-07/6.653, allocations: 0 / 3.19 GB, free: 27.23 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.001785/6.654, allocations: 0.7318 MB / 3.19 GB, free: 26.5 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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) * Top-level inputs: 0 Notification: Strong component statistics for simulation (142): * Single equations (assignments): 139 * 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.003456/6.658, allocations: 2.809 MB / 3.193 GB, free: 23.75 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.002894/6.661, allocations: 1.917 MB / 3.195 GB, free: 21.84 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 4.498e-06/6.661, allocations: 1.375 kB / 3.195 GB, free: 21.84 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.0009855/6.662, allocations: 0.7795 MB / 3.196 GB, free: 21.05 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/6.663, allocations: 285.4 kB / 3.196 GB, free: 20.77 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004248/6.667, allocations: 2.327 MB / 3.198 GB, free: 18.39 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005825/6.668, allocations: 1.27 MB / 3.199 GB, free: 17.09 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.002622/6.671, allocations: 0.6261 MB / 3.2 GB, free: 16.46 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007763/6.671, allocations: 0.55 MB / 3.201 GB, free: 15.91 MB / 0.948 GB Notification: Performance of SimCode: time 1.954e-06/6.671, allocations: 0 / 3.201 GB, free: 15.91 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7177/7.389, allocations: 30.97 MB / 3.231 GB, free: 245.9 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001741/7.389, allocations: 219 kB / 3.231 GB, free: 245.6 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple.c:7: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:111: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ 2 warnings generated. clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -DOMC_MINIMAL_RUNTIME=1 -DCMINPACK_NO_DLL=1 -I'/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c/fmi' "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -c -o Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.o Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c:2: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:217:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:221:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/getTimeSpan.c:9:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Electrical_DC_Sources_Examples_PVSimple_functions.o] Error 1