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.795/1.795, allocations: 292.6 MB / 307.5 MB, free: 5.191 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.001089/0.001089, allocations: 180 kB / 377.1 MB, free: 1.531 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.535/1.535, allocations: 205.4 MB / 0.6366 GB, free: 8.555 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.0009747/0.0009747, allocations: 96.03 kB / 0.7509 GB, free: 63.06 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0003424/0.0003424, allocations: 8 kB / 0.8749 GB, free: 11.1 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2959/0.2962, allocations: 116.3 MB / 0.9884 GB, free: 6.645 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.335/6.631, allocations: 2.106 GB / 3.095 GB, free: 74.72 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003225/6.632, allocations: 109.2 kB / 3.095 GB, free: 74.62 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.1603/6.792, allocations: 68.67 MB / 3.162 GB, free: 5.898 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.134e-06/6.792, allocations: 0 / 3.162 GB, free: 5.898 MB / 0.948 GB Notification: Performance of Transformations before backend: time 9.731e-05/6.792, allocations: 39.98 kB / 3.162 GB, free: 5.859 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.003181/6.795, allocations: 1.707 MB / 3.164 GB, free: 4.09 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.701e-05/6.795, allocations: 12.02 kB / 3.164 GB, free: 4.078 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002404/6.795, allocations: 215.3 kB / 3.164 GB, free: 3.855 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004977/6.8, allocations: 0.7978 MB / 3.165 GB, free: 3.055 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001469/6.802, allocations: 0.9032 MB / 3.166 GB, free: 2.113 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.107e-05/6.802, allocations: 102.9 kB / 3.166 GB, free: 2.012 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/6.802, allocations: 136 kB / 3.166 GB, free: 1.879 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.7558/7.558, allocations: 1.929 MB / 3.168 GB, free: 250 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001001/7.558, allocations: 1.953 kB / 3.168 GB, free: 250 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006349/7.559, allocations: 62.12 kB / 3.168 GB, free: 250 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001425/7.559, allocations: 65.36 kB / 3.168 GB, free: 250 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006979/7.566, allocations: 2.356 MB / 3.17 GB, free: 250 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01145/7.577, allocations: 6.157 MB / 3.176 GB, free: 248.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003902/7.581, allocations: 1.566 MB / 3.178 GB, free: 248 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0006383/7.582, allocations: 491.3 kB / 3.178 GB, free: 247.6 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001945/7.584, allocations: 0.9225 MB / 3.179 GB, free: 247.4 MB / 0.948 GB Notification: Performance of pre-optimization done (n=128): time 3.266e-06/7.584, allocations: 0 / 3.179 GB, free: 247.4 MB / 0.948 GB Notification: Performance of matching and sorting (n=128): time 0.006237/7.59, allocations: 2.171 MB / 3.181 GB, free: 247.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001313/7.59, allocations: 351.5 kB / 3.181 GB, free: 246.8 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001555/7.592, allocations: 0.7814 MB / 3.182 GB, free: 246.7 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0001604/7.592, allocations: 55.36 kB / 3.182 GB, free: 246.6 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006469/7.593, allocations: 0.5906 MB / 3.183 GB, free: 246.4 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004247/7.593, allocations: 426.6 kB / 3.183 GB, free: 246.2 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.458e-05/7.593, allocations: 20.22 kB / 3.183 GB, free: 246.2 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001269/7.594, allocations: 353.6 kB / 3.184 GB, free: 245.9 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002015/7.596, allocations: 0.5824 MB / 3.184 GB, free: 245.9 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002065/7.598, allocations: 0.7869 MB / 3.185 GB, free: 245.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002053/7.6, allocations: 0.6514 MB / 3.186 GB, free: 245.7 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.785e-06/7.6, allocations: 4.844 kB / 3.186 GB, free: 245.7 MB / 0.948 GB Notification: Performance of matching and sorting (n=148) (initialization): time 0.00541/7.605, allocations: 1.603 MB / 3.187 GB, free: 245.6 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003859/7.606, allocations: 1.057 MB / 3.188 GB, free: 244.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/7.606, allocations: 3.156 kB / 3.188 GB, free: 244.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002624/7.606, allocations: 30.64 kB / 3.188 GB, free: 244.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002003/7.608, allocations: 332 kB / 3.189 GB, free: 244.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003791/7.608, allocations: 0.536 MB / 3.189 GB, free: 244 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001791/7.61, allocations: 183.9 kB / 3.189 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/7.61, allocations: 61.73 kB / 3.189 GB, free: 243.9 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.557e-05/7.61, allocations: 5.812 kB / 3.189 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.004485/7.615, allocations: 1.461 MB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.202e-05/7.615, allocations: 2.719 kB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.708e-05/7.615, allocations: 8.297 kB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002049/7.617, allocations: 333.9 kB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.515e-05/7.617, allocations: 12.89 kB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001787/7.619, allocations: 183.2 kB / 3.191 GB, free: 243.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001757/7.619, allocations: 59.52 kB / 3.191 GB, free: 243.9 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 () * 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.001399/7.62, allocations: 440.8 kB / 3.192 GB, free: 243.7 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004134/7.621, allocations: 122.3 kB / 3.192 GB, free: 243.6 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005834/7.627, allocations: 1.894 MB / 3.194 GB, free: 243.4 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.361e-05/7.627, allocations: 14.31 kB / 3.194 GB, free: 243.4 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.217e-05/7.627, allocations: 5.812 kB / 3.194 GB, free: 243.4 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.818e-05/7.627, allocations: 8.438 kB / 3.194 GB, free: 243.4 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008755/7.635, allocations: 3.572 MB / 3.197 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.265e-06/7.635, allocations: 0 / 3.197 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001795/7.637, allocations: 305.5 kB / 3.198 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001794/7.637, allocations: 31.36 kB / 3.198 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001623/7.638, allocations: 40.56 kB / 3.198 GB, free: 242.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001092/7.639, allocations: 1.288 MB / 3.199 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.943e-06/7.639, allocations: 4.344 kB / 3.199 GB, free: 241.5 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004848/7.644, allocations: 1.72 MB / 3.201 GB, free: 241.2 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001408/7.645, allocations: 412.2 kB / 3.201 GB, free: 241.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005745/7.646, allocations: 34.08 kB / 3.201 GB, free: 241.1 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001879/7.648, allocations: 138 kB / 3.201 GB, free: 241 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002953/7.648, allocations: 84.64 kB / 3.201 GB, free: 241 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001526/7.648, allocations: 54.31 kB / 3.201 GB, free: 241 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.00171/7.65, allocations: 0.6361 MB / 3.202 GB, free: 240.9 MB / 0.948 GB Notification: Performance of sort global known variables: time 3.11e-07/7.65, allocations: 0 / 3.202 GB, free: 240.9 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.003972/7.654, allocations: 0.7369 MB / 3.203 GB, free: 240.8 MB / 0.948 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.007244/7.661, allocations: 2.926 MB / 3.205 GB, free: 239.8 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.006519/7.668, allocations: 2.28 MB / 3.208 GB, free: 239.7 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.087e-05/7.668, allocations: 6.062 kB / 3.208 GB, free: 239.7 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002197/7.67, allocations: 0.9011 MB / 3.209 GB, free: 239.6 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001799/7.672, allocations: 286.8 kB / 3.209 GB, free: 239.6 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01871/7.69, allocations: 9.709 MB / 3.218 GB, free: 235.3 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001085/7.692, allocations: 1.265 MB / 3.22 GB, free: 234.6 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.003082/7.695, allocations: 0.5257 MB / 3.22 GB, free: 234.4 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001145/7.696, allocations: 0.5872 MB / 3.221 GB, free: 234.4 MB / 0.948 GB Notification: Performance of SimCode: time 1.583e-06/7.696, allocations: 0 / 3.221 GB, free: 234.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06892/7.765, allocations: 29.56 MB / 3.249 GB, free: 232.6 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002019/7.765, allocations: 246.9 kB / 3.25 GB, free: 232.3 MB / 0.948 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -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.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: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 -falign-functions -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.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: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_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