Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.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.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels",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.745/1.745, allocations: 289.7 MB / 302.2 MB, free: 2.176 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.001111/0.001111, allocations: 182.5 kB / 371.6 MB, free: 3.414 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.725/1.725, allocations: 205.2 MB / 0.6309 GB, free: 11.78 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.0009296/0.0009295, allocations: 95.64 kB / 0.745 GB, free: 54.65 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 4.824e-05/4.826e-05, allocations: 4 kB / 0.8663 GB, free: 14.97 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3054/0.3055, allocations: 116.3 MB / 0.9799 GB, free: 10.52 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.42/6.726, allocations: 2.121 GB / 3.101 GB, free: 118.4 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003605/6.726, allocations: 101.6 kB / 3.101 GB, free: 118.3 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.218/7.944, allocations: 185.5 MB / 3.282 GB, free: 213 MB / 0.948 GB Notification: Performance of FrontEnd: time 3.327e-06/7.944, allocations: 4.328 kB / 3.282 GB, free: 213 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003161/7.944, allocations: 102.3 kB / 3.282 GB, free: 213 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: 1124 * Number of variables: 1124 Notification: Performance of Generate backend data structure: time 0.01253/7.957, allocations: 3.643 MB / 3.286 GB, free: 211.3 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 5.144e-05/7.957, allocations: 13.36 kB / 3.286 GB, free: 211.3 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002544/7.959, allocations: 0.6049 MB / 3.287 GB, free: 211.2 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01345/7.973, allocations: 1.807 MB / 3.288 GB, free: 211 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007883/7.981, allocations: 2.395 MB / 3.291 GB, free: 210.4 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003066/7.981, allocations: 321.5 kB / 3.291 GB, free: 210.4 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/7.983, allocations: 418.8 kB / 3.291 GB, free: 210.4 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01324/7.996, allocations: 6.01 MB / 3.297 GB, free: 209.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000118/7.996, allocations: 9.734 kB / 3.297 GB, free: 209.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006333/7.997, allocations: 182.2 kB / 3.297 GB, free: 209.7 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002398/7.997, allocations: 224.1 kB / 3.298 GB, free: 209.7 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01245/8.009, allocations: 5.639 MB / 3.303 GB, free: 209.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0454/8.055, allocations: 26.18 MB / 3.329 GB, free: 193.8 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007932/8.063, allocations: 3.769 MB / 3.332 GB, free: 192.3 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003264/8.066, allocations: 1.816 MB / 3.334 GB, free: 191.6 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000849/8.067, allocations: 0.512 MB / 3.335 GB, free: 191.1 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003307/8.07, allocations: 1.983 MB / 3.337 GB, free: 190.3 MB / 0.948 GB Notification: Performance of pre-optimization done (n=254): time 4.989e-06/8.07, allocations: 0 / 3.337 GB, free: 190.3 MB / 0.948 GB Notification: Performance of matching and sorting (n=257): time 0.01091/8.081, allocations: 5.588 MB / 3.342 GB, free: 187.2 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/8.082, allocations: 455.6 kB / 3.342 GB, free: 186.7 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002699/8.084, allocations: 1.566 MB / 3.344 GB, free: 186.1 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0003218/8.085, allocations: 70.05 kB / 3.344 GB, free: 186 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001626/8.086, allocations: 1.721 MB / 3.346 GB, free: 184.7 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008111/8.087, allocations: 0.8522 MB / 3.347 GB, free: 184 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002059/8.087, allocations: 54 kB / 3.347 GB, free: 184 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001672/8.087, allocations: 411.8 kB / 3.347 GB, free: 183.7 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002488/8.09, allocations: 1.408 MB / 3.348 GB, free: 183.1 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003053/8.093, allocations: 2.127 MB / 3.35 GB, free: 181.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002922/8.096, allocations: 1.704 MB / 3.352 GB, free: 180.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/8.096, allocations: 5.562 kB / 3.352 GB, free: 180.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.006897/8.103, allocations: 3.864 MB / 3.356 GB, free: 179.4 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001541/8.104, allocations: 6.835 MB / 3.363 GB, free: 172 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.109e-05/8.104, allocations: 15.66 kB / 3.363 GB, free: 172 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.81e-05/8.105, allocations: 34.33 kB / 3.363 GB, free: 172 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004167/8.109, allocations: 0.8315 MB / 3.363 GB, free: 172 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.847e-05/8.109, allocations: 38.3 kB / 3.363 GB, free: 172 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003682/8.112, allocations: 402.1 kB / 3.364 GB, free: 171.9 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000305/8.113, allocations: 140.7 kB / 3.364 GB, free: 171.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.741e-05/8.113, allocations: 3.969 kB / 3.364 GB, free: 171.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005371/8.118, allocations: 3.335 MB / 3.367 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.394e-05/8.118, allocations: 17.38 kB / 3.367 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.101e-05/8.118, allocations: 30.59 kB / 3.367 GB, free: 170.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003727/8.122, allocations: 0.777 MB / 3.368 GB, free: 170.4 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.378e-05/8.122, allocations: 45.78 kB / 3.368 GB, free: 170.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003609/8.126, allocations: 353.8 kB / 3.368 GB, free: 170.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003167/8.126, allocations: 135.2 kB / 3.369 GB, free: 170.2 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 76 * 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 (346): * Single equations (assignments): 346 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001053/8.127, allocations: 274.2 kB / 3.369 GB, free: 170 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008023/8.128, allocations: 242.2 kB / 3.369 GB, free: 169.9 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00746/8.135, allocations: 4.041 MB / 3.373 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.636e-05/8.135, allocations: 29.44 kB / 3.373 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.45e-05/8.135, allocations: 3.438 kB / 3.373 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.065e-05/8.135, allocations: 14.02 kB / 3.373 GB, free: 168.2 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01394/8.149, allocations: 8.994 MB / 3.382 GB, free: 164.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.134e-05/8.15, allocations: 3.094 kB / 3.382 GB, free: 164.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003886/8.153, allocations: 0.7809 MB / 3.383 GB, free: 164.1 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.521e-05/8.153, allocations: 11.25 kB / 3.383 GB, free: 164.1 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002208/8.154, allocations: 78.14 kB / 3.383 GB, free: 164.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.509e-05/8.154, allocations: 13.81 kB / 3.383 GB, free: 164.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.188e-06/8.154, allocations: 7.656 kB / 3.383 GB, free: 164.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005792/8.16, allocations: 3.961 MB / 3.387 GB, free: 162 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001591/8.161, allocations: 0.8233 MB / 3.387 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004285/8.162, allocations: 53.25 kB / 3.387 GB, free: 161.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00279/8.164, allocations: 290.9 kB / 3.388 GB, free: 161.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003187/8.165, allocations: 163.4 kB / 3.388 GB, free: 161.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002238/8.165, allocations: 93.58 kB / 3.388 GB, free: 161.4 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.002018/8.167, allocations: 1.277 MB / 3.389 GB, free: 160.8 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.292e-06/8.167, allocations: 0 / 3.389 GB, free: 160.8 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005203/8.172, allocations: 1.407 MB / 3.391 GB, free: 160.7 MB / 0.948 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * 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 (276): * Single equations (assignments): 274 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.006833/8.179, allocations: 5.623 MB / 3.396 GB, free: 157.3 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.008362/8.187, allocations: 5.38 MB / 3.401 GB, free: 155.2 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.068e-05/8.187, allocations: 4.531 kB / 3.401 GB, free: 155.2 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.002491/8.19, allocations: 1.763 MB / 3.403 GB, free: 154.5 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003298/8.193, allocations: 0.5729 MB / 3.404 GB, free: 154.4 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01481/8.208, allocations: 7.142 MB / 3.411 GB, free: 151.6 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002256/8.21, allocations: 2.693 MB / 3.413 GB, free: 150.5 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.006176/8.217, allocations: 1.416 MB / 3.415 GB, free: 150.2 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002299/8.219, allocations: 1.57 MB / 3.416 GB, free: 149 MB / 0.948 GB Notification: Performance of SimCode: time 1.372e-06/8.219, allocations: 0 / 3.416 GB, free: 149 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1133/8.332, allocations: 71.14 MB / 3.486 GB, free: 95.24 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000189/8.333, allocations: 213 kB / 3.486 GB, free: 95.02 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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.o Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c:2: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o] Error 1