Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_7.0.0_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels.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.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.404/2.404, allocations: 248.5 MB / 261.1 MB, free: 5.965 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.001573/0.001572, allocations: 188 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 2/2, 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.001135/0.001135, allocations: 86.48 kB / 0.6754 GB, free: 0.9141 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.791e-05/4.809e-05, allocations: 11.98 kB / 0.7869 GB, free: 97.8 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2089/0.209, allocations: 106.3 MB / 0.8907 GB, free: 7.445 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.468/7.677, allocations: 2.238 GB / 3.129 GB, free: 111.1 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000369/7.677, allocations: 99.38 kB / 3.129 GB, free: 111 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.356/9.034, allocations: 185.6 MB / 3.31 GB, free: 240.1 MB / 0.8698 GB Notification: Performance of FrontEnd: time 3.166e-06/9.034, allocations: 7.719 kB / 3.31 GB, free: 240.1 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003945/9.034, allocations: 100.9 kB / 3.31 GB, free: 240.1 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: 1124 * Number of variables: 1124 Notification: Performance of Generate backend data structure: time 0.01539/9.049, allocations: 3.639 MB / 3.314 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.153e-05/9.05, allocations: 11.31 kB / 3.314 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002413/9.052, allocations: 0.5957 MB / 3.314 GB, free: 238.4 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02032/9.072, allocations: 1.804 MB / 3.316 GB, free: 238.1 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007651/9.08, allocations: 2.4 MB / 3.318 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003615/9.08, allocations: 318.2 kB / 3.319 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001948/9.082, allocations: 424.2 kB / 3.319 GB, free: 237.6 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01978/9.102, allocations: 6.018 MB / 3.325 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000219/9.102, allocations: 18.39 kB / 3.325 GB, free: 236.6 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001755/9.104, allocations: 180 kB / 3.325 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003468/9.105, allocations: 216.7 kB / 3.325 GB, free: 236.4 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02502/9.13, allocations: 5.626 MB / 3.331 GB, free: 234.4 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06705/9.197, allocations: 26.19 MB / 3.356 GB, free: 216.2 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01057/9.207, allocations: 3.752 MB / 3.36 GB, free: 214.4 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005059/9.213, allocations: 1.83 MB / 3.362 GB, free: 213.5 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001309/9.214, allocations: 0.5089 MB / 3.362 GB, free: 213 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.005584/9.219, allocations: 1.982 MB / 3.364 GB, free: 211.8 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=254): time 8.176e-06/9.22, allocations: 0 / 3.364 GB, free: 211.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=257): time 0.01632/9.236, allocations: 5.596 MB / 3.37 GB, free: 208.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001806/9.236, allocations: 447.8 kB / 3.37 GB, free: 207.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003814/9.24, allocations: 1.57 MB / 3.372 GB, free: 206.5 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0009728/9.241, allocations: 69.7 kB / 3.372 GB, free: 206.4 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.002199/9.243, allocations: 1.712 MB / 3.374 GB, free: 204.7 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001731/9.245, allocations: 0.8621 MB / 3.374 GB, free: 203.8 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006092/9.246, allocations: 56 kB / 3.374 GB, free: 203.8 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002879/9.246, allocations: 411.5 kB / 3.375 GB, free: 203.3 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004358/9.25, allocations: 1.407 MB / 3.376 GB, free: 201.9 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004803/9.255, allocations: 2.136 MB / 3.378 GB, free: 199.5 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004727/9.26, allocations: 1.696 MB / 3.38 GB, free: 197.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.986e-05/9.26, allocations: 8 kB / 3.38 GB, free: 197.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=346) (initialization): time 0.01136/9.271, allocations: 3.86 MB / 3.384 GB, free: 193.9 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001421/9.273, allocations: 6.833 MB / 3.39 GB, free: 186.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.542e-05/9.273, allocations: 20 kB / 3.39 GB, free: 186.4 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.137e-05/9.273, allocations: 32 kB / 3.39 GB, free: 186.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008518/9.282, allocations: 0.8346 MB / 3.391 GB, free: 185.5 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.968e-05/9.282, allocations: 39.92 kB / 3.391 GB, free: 185.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006326/9.288, allocations: 398.1 kB / 3.392 GB, free: 185.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009189/9.289, allocations: 143.8 kB / 3.392 GB, free: 185 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.499e-05/9.289, allocations: 4 kB / 3.392 GB, free: 185 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01207/9.301, allocations: 3.334 MB / 3.395 GB, free: 181.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.672e-05/9.301, allocations: 16 kB / 3.395 GB, free: 181.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.702e-05/9.301, allocations: 36 kB / 3.395 GB, free: 181.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007927/9.309, allocations: 0.7764 MB / 3.396 GB, free: 180.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.443e-05/9.309, allocations: 43.86 kB / 3.396 GB, free: 180.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005909/9.315, allocations: 346.2 kB / 3.396 GB, free: 180.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006317/9.316, allocations: 139.9 kB / 3.396 GB, free: 180.2 MB / 0.8698 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.0011/9.317, allocations: 278.3 kB / 3.397 GB, free: 180 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008589/9.318, allocations: 241 kB / 3.397 GB, free: 179.7 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01201/9.33, allocations: 4.033 MB / 3.401 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.149e-05/9.33, allocations: 28 kB / 3.401 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.451e-05/9.33, allocations: 3.984 kB / 3.401 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.12e-05/9.33, allocations: 19.77 kB / 3.401 GB, free: 175.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02216/9.352, allocations: 9.004 MB / 3.41 GB, free: 166.5 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.848e-05/9.352, allocations: 7.984 kB / 3.41 GB, free: 166.5 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.008154/9.361, allocations: 0.7762 MB / 3.41 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-05/9.361, allocations: 8 kB / 3.41 GB, free: 165.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007614/9.361, allocations: 75.94 kB / 3.41 GB, free: 165.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.908e-05/9.361, allocations: 12 kB / 3.41 GB, free: 165.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.978e-06/9.361, allocations: 0 / 3.41 GB, free: 165.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009914/9.371, allocations: 3.967 MB / 3.414 GB, free: 161.5 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002879/9.374, allocations: 0.8288 MB / 3.415 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001177/9.376, allocations: 48 kB / 3.415 GB, free: 160.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005658/9.381, allocations: 287.7 kB / 3.415 GB, free: 160.3 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000738/9.382, allocations: 173.8 kB / 3.416 GB, free: 160.1 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004864/9.382, allocations: 91.94 kB / 3.416 GB, free: 160 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.003/9.385, allocations: 1.279 MB / 3.417 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of sort global known variables: time 6.71e-07/9.386, allocations: 0 / 3.417 GB, free: 158.7 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.008363/9.394, allocations: 1.41 MB / 3.418 GB, free: 157.3 MB / 0.8698 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.01206/9.406, allocations: 5.606 MB / 3.424 GB, free: 151.8 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01506/9.421, allocations: 5.382 MB / 3.429 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.441e-05/9.421, allocations: 4 kB / 3.429 GB, free: 146.4 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.004744/9.426, allocations: 1.759 MB / 3.431 GB, free: 144.6 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005516/9.431, allocations: 0.5765 MB / 3.431 GB, free: 144 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02303/9.455, allocations: 7.142 MB / 3.438 GB, free: 136.8 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003746/9.458, allocations: 2.692 MB / 3.441 GB, free: 134.1 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.01139/9.47, allocations: 1.421 MB / 3.442 GB, free: 132.7 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004581/9.474, allocations: 1.569 MB / 3.444 GB, free: 131.1 MB / 0.8698 GB Notification: Performance of SimCode: time 1.453e-06/9.474, allocations: 3.938 kB / 3.444 GB, free: 131.1 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1833/9.658, allocations: 71.14 MB / 3.513 GB, free: 60.45 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002441/9.658, allocations: 219.5 kB / 3.514 GB, free: 60.23 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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels.c:7: In file included from ./Buildings_7_0_0_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 -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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_functions.o] Error 1