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.229/2.229, allocations: 248.5 MB / 261.1 MB, free: 6.047 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001492/0.001492, allocations: 178.7 kB / 320.4 MB, free: 15.34 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.914/1.914, allocations: 205.2 MB / 0.571 GB, free: 11.82 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.001144/0.001144, allocations: 97.97 kB / 0.6754 GB, free: 0.918 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 3.88e-05/3.899e-05, allocations: 8 kB / 0.7869 GB, free: 97.82 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2004/0.2005, allocations: 106.2 MB / 0.8907 GB, free: 7.484 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.025/7.225, allocations: 2.223 GB / 3.114 GB, free: 110.3 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/7.226, allocations: 99.62 kB / 3.114 GB, free: 110.2 MB / 0.8698 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.2773/7.503, allocations: 68.27 MB / 3.181 GB, free: 44.82 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.405e-06/7.503, allocations: 0 / 3.181 GB, free: 44.82 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.000155/7.503, allocations: 40 kB / 3.181 GB, free: 44.79 MB / 0.8698 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.005045/7.508, allocations: 1.552 MB / 3.182 GB, free: 43.18 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.175e-05/7.508, allocations: 12.03 kB / 3.182 GB, free: 43.16 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006456/7.509, allocations: 219.3 kB / 3.183 GB, free: 42.94 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009356/7.518, allocations: 0.7978 MB / 3.183 GB, free: 42.14 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002749/7.521, allocations: 0.8883 MB / 3.184 GB, free: 41.21 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001224/7.521, allocations: 106.9 kB / 3.184 GB, free: 41.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004653/7.522, allocations: 144 kB / 3.184 GB, free: 40.96 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00527/7.527, allocations: 1.707 MB / 3.186 GB, free: 39.18 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.56e-05/7.527, allocations: 0 / 3.186 GB, free: 39.18 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003504/7.528, allocations: 71.92 kB / 3.186 GB, free: 39.11 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001034/7.528, allocations: 66.7 kB / 3.186 GB, free: 39.04 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005774/7.533, allocations: 1.943 MB / 3.188 GB, free: 37.09 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01867/7.552, allocations: 6.13 MB / 3.194 GB, free: 30.74 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003812/7.556, allocations: 1.3 MB / 3.195 GB, free: 29.43 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001885/7.558, allocations: 0.6173 MB / 3.196 GB, free: 28.8 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001098/7.559, allocations: 482.6 kB / 3.196 GB, free: 28.24 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.002143/7.561, allocations: 0.7846 MB / 3.197 GB, free: 27.43 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=128): time 4.81e-06/7.561, allocations: 0 / 3.197 GB, free: 27.43 MB / 0.8698 GB Notification: Performance of matching and sorting (n=128): time 0.004113/7.565, allocations: 1.231 MB / 3.198 GB, free: 26.19 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001387/7.566, allocations: 351.1 kB / 3.199 GB, free: 25.77 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001813/7.568, allocations: 0.7747 MB / 3.199 GB, free: 24.97 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0004702/7.568, allocations: 49.7 kB / 3.2 GB, free: 24.91 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006388/7.569, allocations: 0.5935 MB / 3.2 GB, free: 24.31 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006871/7.569, allocations: 421.8 kB / 3.201 GB, free: 23.89 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000151/7.57, allocations: 24 kB / 3.201 GB, free: 23.87 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0001204/7.57, allocations: 349.9 kB / 3.201 GB, free: 23.52 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001444/7.571, allocations: 462.5 kB / 3.201 GB, free: 23.07 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/7.573, allocations: 0.6532 MB / 3.202 GB, free: 22.35 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001602/7.574, allocations: 0.5242 MB / 3.202 GB, free: 21.83 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.096e-05/7.574, allocations: 3.953 kB / 3.202 GB, free: 21.83 MB / 0.8698 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00437/7.579, allocations: 1.332 MB / 3.204 GB, free: 20.48 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002861/7.579, allocations: 1.056 MB / 3.205 GB, free: 19.35 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.656e-05/7.579, allocations: 4 kB / 3.205 GB, free: 19.34 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002761/7.58, allocations: 32.84 kB / 3.205 GB, free: 19.31 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003593/7.583, allocations: 323.5 kB / 3.205 GB, free: 18.99 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004377/7.584, allocations: 0.5522 MB / 3.206 GB, free: 18.41 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002863/7.587, allocations: 178.9 kB / 3.206 GB, free: 18.24 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003782/7.587, allocations: 59.95 kB / 3.206 GB, free: 18.18 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.428e-05/7.587, allocations: 4 kB / 3.206 GB, free: 18.18 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.00346/7.59, allocations: 1.198 MB / 3.207 GB, free: 16.98 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.363e-05/7.59, allocations: 0 / 3.207 GB, free: 16.98 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.086e-05/7.591, allocations: 11.98 kB / 3.207 GB, free: 16.96 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003548/7.594, allocations: 327.8 kB / 3.207 GB, free: 16.64 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.915e-05/7.594, allocations: 23.91 kB / 3.207 GB, free: 16.62 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002779/7.597, allocations: 174.9 kB / 3.208 GB, free: 16.45 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003851/7.597, allocations: 59.95 kB / 3.208 GB, free: 16.39 MB / 0.8698 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.0005121/7.598, allocations: 185.5 kB / 3.208 GB, free: 16.2 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004538/7.598, allocations: 114.6 kB / 3.208 GB, free: 16.09 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005616/7.604, allocations: 1.63 MB / 3.21 GB, free: 14.45 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-05/7.604, allocations: 19.94 kB / 3.21 GB, free: 14.43 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/7.604, allocations: 96 / 3.21 GB, free: 14.43 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.421e-05/7.604, allocations: 15.91 kB / 3.21 GB, free: 14.41 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008915/7.613, allocations: 3.468 MB / 3.213 GB, free: 10.86 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.214e-05/7.613, allocations: 4 kB / 3.213 GB, free: 10.85 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003245/7.616, allocations: 303.7 kB / 3.213 GB, free: 10.55 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001945/7.617, allocations: 32.78 kB / 3.213 GB, free: 10.52 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003093/7.617, allocations: 35.97 kB / 3.213 GB, free: 10.48 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009542/7.618, allocations: 1.284 MB / 3.215 GB, free: 9.07 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.549e-06/7.618, allocations: 7.891 kB / 3.215 GB, free: 9.062 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004126/7.622, allocations: 1.497 MB / 3.216 GB, free: 7.508 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001298/7.623, allocations: 422.9 kB / 3.216 GB, free: 7.074 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004464/7.624, allocations: 27.94 kB / 3.216 GB, free: 7.047 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002684/7.627, allocations: 135.9 kB / 3.217 GB, free: 6.914 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004219/7.627, allocations: 93.14 kB / 3.217 GB, free: 6.82 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002248/7.627, allocations: 51.95 kB / 3.217 GB, free: 6.77 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.001362/7.629, allocations: 0.6295 MB / 3.217 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.12e-07/7.629, allocations: 0 / 3.217 GB, free: 6.125 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.003919/7.633, allocations: 0.7281 MB / 3.218 GB, free: 5.395 MB / 0.8698 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.006084/7.639, allocations: 2.8 MB / 3.221 GB, free: 2.684 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.005878/7.645, allocations: 1.925 MB / 3.223 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/7.645, allocations: 0 / 3.223 GB, free: 0.7578 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.5977/8.243, allocations: 0.7705 MB / 3.223 GB, free: 274.3 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002944/8.246, allocations: 282.9 kB / 3.224 GB, free: 274.3 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008917/8.254, allocations: 2.327 MB / 3.226 GB, free: 273.7 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001342/8.256, allocations: 1.265 MB / 3.227 GB, free: 273 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.005843/8.262, allocations: 0.6206 MB / 3.228 GB, free: 273 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001883/8.264, allocations: 0.5534 MB / 3.228 GB, free: 273 MB / 0.8698 GB Notification: Performance of SimCode: time 1.653e-06/8.264, allocations: 0 / 3.228 GB, free: 273 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/8.374, allocations: 30.99 MB / 3.259 GB, free: 271.3 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002866/8.374, allocations: 226.4 kB / 3.259 GB, free: 271.1 MB / 0.8698 GB Error: Error building simulator. Build log: clang -Os -fPIC -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 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: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 -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 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: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_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