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_N.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_N,fileNamePrefix="Buildings_7_0_0_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 7.0.1/package.mo): time 2.404/2.404, allocations: 251 MB / 265.9 MB, free: 11.68 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002229/0.002229, allocations: 178.3 kB / 325.5 MB, free: 2.898 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.379/2.379, allocations: 205.4 MB / 0.5764 GB, free: 20.83 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.001131/0.00113, allocations: 95.98 kB / 0.6809 GB, free: 13.67 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 0.000629/0.0006292, allocations: 13.31 kB / 0.7951 GB, free: 135.5 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2468/0.2474, allocations: 106.3 MB / 0.8988 GB, free: 65.49 MB / 0.6042 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.327/7.574, allocations: 2.239 GB / 3.137 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003891/7.575, allocations: 111.1 kB / 3.138 GB, free: 230.8 MB / 0.8855 GB Notification: Performance of FrontEnd - DAE generated: time 0.6276/8.202, allocations: 163.5 MB / 3.297 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of FrontEnd: time 2.935e-06/8.203, allocations: 4 kB / 3.297 GB, free: 129.6 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 0.0003898/8.203, allocations: 95.98 kB / 3.297 GB, free: 129.5 MB / 0.8855 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.01581/8.219, allocations: 3.696 MB / 3.301 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/8.219, allocations: 8.031 kB / 3.301 GB, free: 125.7 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002726/8.222, allocations: 0.5592 MB / 3.302 GB, free: 125.2 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.02039/8.242, allocations: 1.723 MB / 3.303 GB, free: 123.4 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007082/8.249, allocations: 2.215 MB / 3.305 GB, free: 121.2 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003788/8.25, allocations: 300.3 kB / 3.306 GB, free: 120.9 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002006/8.252, allocations: 395.8 kB / 3.306 GB, free: 120.5 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0239/8.275, allocations: 5.972 MB / 3.312 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002187/8.276, allocations: 11.88 kB / 3.312 GB, free: 114.3 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001825/8.278, allocations: 168 kB / 3.312 GB, free: 114.1 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002757/8.278, allocations: 198.9 kB / 3.312 GB, free: 113.9 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02713/8.305, allocations: 6.085 MB / 3.318 GB, free: 107.8 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05182/8.357, allocations: 22.86 MB / 3.341 GB, free: 83.64 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01695/8.374, allocations: 3.994 MB / 3.344 GB, free: 79.6 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001306/8.375, allocations: 0.5034 MB / 3.345 GB, free: 79.01 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.008213/8.384, allocations: 2.033 MB / 3.347 GB, free: 76.95 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=240): time 6.783e-06/8.384, allocations: 0 / 3.347 GB, free: 76.95 MB / 0.8855 GB Notification: Performance of matching and sorting (n=243): time 0.02752/8.411, allocations: 6.997 MB / 3.354 GB, free: 69.91 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/8.411, allocations: 449.2 kB / 3.354 GB, free: 69.37 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003372/8.415, allocations: 1.517 MB / 3.356 GB, free: 67.86 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 0.000896/8.416, allocations: 69.7 kB / 3.356 GB, free: 67.78 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 0.001732/8.417, allocations: 1.598 MB / 3.357 GB, free: 66.16 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 0.001523/8.419, allocations: 0.8125 MB / 3.358 GB, free: 65.34 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004772/8.419, allocations: 48 kB / 3.358 GB, free: 65.29 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.000218/8.42, allocations: 411.3 kB / 3.358 GB, free: 64.89 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007133/8.427, allocations: 1.543 MB / 3.36 GB, free: 63.34 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007966/8.435, allocations: 2.262 MB / 3.362 GB, free: 60.78 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007726/8.443, allocations: 1.826 MB / 3.364 GB, free: 58.95 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.226e-05/8.443, allocations: 11.98 kB / 3.364 GB, free: 58.94 MB / 0.8855 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01946/8.462, allocations: 4.11 MB / 3.368 GB, free: 54.82 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 0.001402/8.464, allocations: 7.151 MB / 3.375 GB, free: 47.28 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.947e-05/8.464, allocations: 23.98 kB / 3.375 GB, free: 47.26 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.584e-05/8.464, allocations: 32 kB / 3.375 GB, free: 47.23 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008036/8.472, allocations: 0.7956 MB / 3.376 GB, free: 46.43 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.958e-05/8.472, allocations: 43.86 kB / 3.376 GB, free: 46.39 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006128/8.478, allocations: 374.2 kB / 3.376 GB, free: 46.02 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008359/8.479, allocations: 135.9 kB / 3.376 GB, free: 45.89 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/8.479, allocations: 5.719 kB / 3.376 GB, free: 45.88 MB / 0.8855 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0159/8.495, allocations: 3.678 MB / 3.38 GB, free: 42.2 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.606e-05/8.495, allocations: 20.19 kB / 3.38 GB, free: 42.18 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.874e-05/8.495, allocations: 36 kB / 3.38 GB, free: 42.15 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007642/8.503, allocations: 0.7566 MB / 3.381 GB, free: 41.39 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.575e-05/8.503, allocations: 43.86 kB / 3.381 GB, free: 41.35 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005788/8.509, allocations: 346.2 kB / 3.381 GB, free: 41.01 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000897/8.51, allocations: 135.9 kB / 3.381 GB, free: 40.88 MB / 0.8855 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.003809/8.513, allocations: 1.244 MB / 3.382 GB, free: 39.62 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008937/8.514, allocations: 229.2 kB / 3.383 GB, free: 39.39 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01888/8.533, allocations: 4.116 MB / 3.387 GB, free: 35.26 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.107e-05/8.533, allocations: 31.98 kB / 3.387 GB, free: 35.23 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.288e-05/8.533, allocations: 0 / 3.387 GB, free: 35.23 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.836e-05/8.533, allocations: 11.95 kB / 3.387 GB, free: 35.21 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02713/8.561, allocations: 8.645 MB / 3.395 GB, free: 26.48 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-05/8.561, allocations: 4 kB / 3.395 GB, free: 26.47 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007413/8.568, allocations: 0.71 MB / 3.396 GB, free: 25.76 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.574e-05/8.568, allocations: 12 kB / 3.396 GB, free: 25.75 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0005422/8.569, allocations: 71.94 kB / 3.396 GB, free: 25.68 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.814e-05/8.569, allocations: 8 kB / 3.396 GB, free: 25.67 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.629e-06/8.569, allocations: 4 kB / 3.396 GB, free: 25.67 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01548/8.584, allocations: 4.081 MB / 3.4 GB, free: 21.41 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002622/8.587, allocations: 0.7666 MB / 3.401 GB, free: 20.62 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001163/8.588, allocations: 44 kB / 3.401 GB, free: 20.57 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005878/8.594, allocations: 275.6 kB / 3.401 GB, free: 20.3 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008405/8.595, allocations: 157.7 kB / 3.401 GB, free: 20.15 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004264/8.595, allocations: 91.94 kB / 3.401 GB, free: 20.06 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.002761/8.598, allocations: 1.243 MB / 3.402 GB, free: 18.79 MB / 0.8855 GB Notification: Performance of sort global known variables: time 6.31e-07/8.598, allocations: 0 / 3.402 GB, free: 18.79 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.007567/8.606, allocations: 1.312 MB / 3.404 GB, free: 17.48 MB / 0.8855 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.01815/8.624, allocations: 5.777 MB / 3.409 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.02303/8.647, allocations: 5.671 MB / 3.415 GB, free: 6.066 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 1.249e-05/8.647, allocations: 0 / 3.415 GB, free: 6.066 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.007643/8.655, allocations: 1.823 MB / 3.417 GB, free: 4.242 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004926/8.66, allocations: 0.5186 MB / 3.417 GB, free: 3.723 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.7131/9.373, allocations: 31.99 MB / 3.448 GB, free: 226.7 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005713/9.379, allocations: 2.526 MB / 3.451 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 0.01078/9.389, allocations: 1.253 MB / 3.452 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005273/9.395, allocations: 1.464 MB / 3.454 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of SimCode: time 1.673e-06/9.395, allocations: 0 / 3.454 GB, free: 225.9 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1871/9.582, allocations: 63.19 MB / 3.515 GB, free: 223.1 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002443/9.582, allocations: 258.3 kB / 3.516 GB, free: 222.7 MB / 0.8855 GB Error: Error building simulator. Build log: clang -Os -fPIC -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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N.c:7: In file included from ./Buildings_7_0_0_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 -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 7.0.1/Resources/C-Sources" -c -o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c In file included from Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:2: In file included from ./Buildings_7_0_0_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_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.c:7: In file included from ./Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_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_N_functions.o' failed make: *** [Buildings_7_0_0_Buildings_Electrical_AC_ThreePhasesUnbalanced_Sources_Examples_PVPanels_N_functions.o] Error 1