Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N.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_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Sources.Examples.PVPanels_N,fileNamePrefix="Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N",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.648/1.648, allocations: 292.6 MB / 307.5 MB, free: 5.195 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.001193/0.001193, allocations: 193 kB / 377.1 MB, free: 1.512 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.626/1.626, allocations: 205.4 MB / 0.6366 GB, free: 8.578 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.0009258/0.0009257, allocations: 93.69 kB / 0.7509 GB, free: 62.93 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005722/0.0005723, allocations: 8 kB / 0.8749 GB, free: 11.07 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3701/0.3708, allocations: 116.3 MB / 0.9884 GB, free: 6.605 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.383/6.754, allocations: 2.122 GB / 3.11 GB, free: 57.93 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002772/6.754, allocations: 109.4 kB / 3.11 GB, free: 57.82 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 0.9414/7.695, allocations: 163.5 MB / 3.27 GB, free: 236 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.294e-06/7.695, allocations: 0 / 3.27 GB, free: 236 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0003307/7.696, allocations: 94.56 kB / 3.27 GB, free: 236 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: 1041 * Number of variables: 1041 Notification: Performance of Generate backend data structure: time 0.01331/7.709, allocations: 3.698 MB / 3.274 GB, free: 234 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 6.619e-05/7.709, allocations: 9.219 kB / 3.274 GB, free: 234 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002833/7.712, allocations: 0.5645 MB / 3.274 GB, free: 233.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01296/7.725, allocations: 1.723 MB / 3.276 GB, free: 233.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007393/7.732, allocations: 2.215 MB / 3.278 GB, free: 232.2 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003863/7.733, allocations: 295.7 kB / 3.278 GB, free: 232.1 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001881/7.735, allocations: 398.7 kB / 3.279 GB, free: 231.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01863/7.753, allocations: 5.972 MB / 3.285 GB, free: 229.4 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001285/7.753, allocations: 13 kB / 3.285 GB, free: 229.4 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006473/7.754, allocations: 169.7 kB / 3.285 GB, free: 229.3 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000256/7.754, allocations: 193.5 kB / 3.285 GB, free: 229.3 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01977/7.774, allocations: 6.092 MB / 3.291 GB, free: 227.4 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03604/7.81, allocations: 22.86 MB / 3.313 GB, free: 210.1 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.008416/7.819, allocations: 4.006 MB / 3.317 GB, free: 208 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007583/7.82, allocations: 0.5125 MB / 3.318 GB, free: 207.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003976/7.824, allocations: 2.021 MB / 3.32 GB, free: 206.2 MB / 0.948 GB Notification: Performance of pre-optimization done (n=240): time 4.378e-06/7.824, allocations: 0 / 3.32 GB, free: 206.2 MB / 0.948 GB Notification: Performance of matching and sorting (n=243): time 0.01477/7.838, allocations: 7.009 MB / 3.326 GB, free: 202.1 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001579/7.839, allocations: 446.1 kB / 3.327 GB, free: 201.6 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002496/7.841, allocations: 1.514 MB / 3.328 GB, free: 200.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0007354/7.842, allocations: 68.14 kB / 3.328 GB, free: 200.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001379/7.843, allocations: 1.604 MB / 3.33 GB, free: 199.3 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009178/7.844, allocations: 0.8077 MB / 3.331 GB, free: 198.6 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002049/7.844, allocations: 50.5 kB / 3.331 GB, free: 198.6 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001435/7.844, allocations: 417.9 kB / 3.331 GB, free: 198.2 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003415/7.848, allocations: 1.535 MB / 3.333 GB, free: 197.4 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003765/7.852, allocations: 2.261 MB / 3.335 GB, free: 195.7 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003724/7.855, allocations: 1.836 MB / 3.337 GB, free: 194.8 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.171e-05/7.855, allocations: 7.656 kB / 3.337 GB, free: 194.8 MB / 0.948 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.009116/7.865, allocations: 4.11 MB / 3.341 GB, free: 192.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001371/7.866, allocations: 7.142 MB / 3.348 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.653e-05/7.866, allocations: 18.28 kB / 3.348 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 5.388e-05/7.866, allocations: 31.91 kB / 3.348 GB, free: 185.2 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00418/7.87, allocations: 0.8009 MB / 3.348 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.418e-05/7.87, allocations: 41.45 kB / 3.349 GB, free: 184.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003651/7.874, allocations: 384.2 kB / 3.349 GB, free: 184.7 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000375/7.874, allocations: 137.2 kB / 3.349 GB, free: 184.7 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.346e-05/7.874, allocations: 3.906 kB / 3.349 GB, free: 184.7 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.008052/7.882, allocations: 3.689 MB / 3.353 GB, free: 182.8 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.972e-05/7.882, allocations: 15.44 kB / 3.353 GB, free: 182.8 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.591e-05/7.883, allocations: 34.69 kB / 3.353 GB, free: 182.8 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003739/7.886, allocations: 0.7562 MB / 3.353 GB, free: 182.6 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.393e-05/7.886, allocations: 43.17 kB / 3.353 GB, free: 182.6 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003354/7.89, allocations: 330.6 kB / 3.354 GB, free: 182.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003189/7.89, allocations: 138.3 kB / 3.354 GB, free: 182.3 MB / 0.948 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 80 * 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 (336): * Single equations (assignments): 336 * 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.002991/7.893, allocations: 1.237 MB / 3.355 GB, free: 181.5 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007139/7.894, allocations: 237.5 kB / 3.355 GB, free: 181.4 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009505/7.903, allocations: 4.131 MB / 3.359 GB, free: 179 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.529e-05/7.903, allocations: 23.38 kB / 3.359 GB, free: 179 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.198e-05/7.903, allocations: 0 / 3.359 GB, free: 179 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.693e-05/7.903, allocations: 15.86 kB / 3.359 GB, free: 179 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01725/7.921, allocations: 8.627 MB / 3.368 GB, free: 171.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.748e-05/7.921, allocations: 4 kB / 3.368 GB, free: 171.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003806/7.925, allocations: 0.7139 MB / 3.369 GB, free: 171.2 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.788e-05/7.925, allocations: 8 kB / 3.369 GB, free: 171.2 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002784/7.925, allocations: 71.94 kB / 3.369 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.401e-05/7.925, allocations: 15.98 kB / 3.369 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.091e-06/7.925, allocations: 11.89 kB / 3.369 GB, free: 171.1 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008283/7.933, allocations: 4.073 MB / 3.373 GB, free: 166.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002019/7.935, allocations: 0.7665 MB / 3.373 GB, free: 166.1 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005555/7.936, allocations: 47.98 kB / 3.373 GB, free: 166 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002892/7.939, allocations: 263.7 kB / 3.374 GB, free: 165.8 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/7.939, allocations: 161.7 kB / 3.374 GB, free: 165.6 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002371/7.939, allocations: 91.89 kB / 3.374 GB, free: 165.5 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.001995/7.941, allocations: 1.239 MB / 3.375 GB, free: 164.3 MB / 0.948 GB Notification: Performance of sort global known variables: time 1.4e-07/7.941, allocations: 3.938 kB / 3.375 GB, free: 164.3 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.005836/7.947, allocations: 1.32 MB / 3.376 GB, free: 162.9 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) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (262): * Single equations (assignments): 260 * 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.01046/7.958, allocations: 5.774 MB / 3.382 GB, free: 157.2 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.01375/7.971, allocations: 5.666 MB / 3.388 GB, free: 151.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.142e-05/7.971, allocations: 4 kB / 3.388 GB, free: 151.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.003896/7.975, allocations: 1.823 MB / 3.389 GB, free: 149.7 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003277/7.979, allocations: 0.5136 MB / 3.39 GB, free: 149.2 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04196/8.021, allocations: 32 MB / 3.421 GB, free: 115.9 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002383/8.023, allocations: 2.529 MB / 3.424 GB, free: 113.3 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.006421/8.03, allocations: 1.256 MB / 3.425 GB, free: 112.1 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003462/8.033, allocations: 1.456 MB / 3.426 GB, free: 110.6 MB / 0.948 GB Notification: Performance of SimCode: time 2.435e-06/8.033, allocations: 8 kB / 3.426 GB, free: 110.6 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1572/8.19, allocations: 63.19 MB / 3.488 GB, free: 47.73 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002308/8.191, allocations: 249.5 kB / 3.488 GB, free: 47.42 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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.o Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c In file included from Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:2: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_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_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:7: In file included from ./Buildings_8_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_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_N_functions.o] Error 1