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.254/2.254, allocations: 248.5 MB / 261.1 MB, free: 5.984 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.001407/0.001407, allocations: 174.5 kB / 320.4 MB, free: 15.33 MB / 266.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.947/1.947, allocations: 205.2 MB / 0.571 GB, free: 11.81 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.001145/0.001144, allocations: 92.73 kB / 0.6754 GB, free: 0.8945 MB / 0.5105 GB Notification: Performance of FrontEnd - loaded program: time 4.944e-05/4.967e-05, allocations: 4 kB / 0.7869 GB, free: 97.79 MB / 0.5417 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2185/0.2186, allocations: 106.3 MB / 0.8907 GB, free: 7.441 MB / 0.5573 GB Notification: Performance of FrontEnd - scodeFlatten: time 7.533/7.751, allocations: 2.239 GB / 3.129 GB, free: 95.61 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000336/7.752, allocations: 103.1 kB / 3.129 GB, free: 95.56 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 1.401/9.153, allocations: 162.8 MB / 3.288 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of FrontEnd: time 2.995e-06/9.153, allocations: 0 / 3.288 GB, free: 249.4 MB / 0.8698 GB Notification: Performance of Transformations before backend: time 0.0003459/9.153, allocations: 96.95 kB / 3.288 GB, free: 249.4 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: 1041 * Number of variables: 1041 Notification: Performance of Generate backend data structure: time 0.01426/9.168, allocations: 3.427 MB / 3.292 GB, free: 247.9 MB / 0.8698 GB Notification: Performance of prepare preOptimizeDAE: time 5.378e-05/9.168, allocations: 10.66 kB / 3.292 GB, free: 247.9 MB / 0.8698 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002562/9.17, allocations: 0.5546 MB / 3.292 GB, free: 247.8 MB / 0.8698 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01973/9.19, allocations: 1.733 MB / 3.294 GB, free: 247.6 MB / 0.8698 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007749/9.198, allocations: 2.208 MB / 3.296 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004204/9.198, allocations: 301 kB / 3.297 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002099/9.2, allocations: 384.2 kB / 3.297 GB, free: 247.1 MB / 0.8698 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01982/9.22, allocations: 5.543 MB / 3.302 GB, free: 246 MB / 0.8698 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001852/9.22, allocations: 9.172 kB / 3.302 GB, free: 246 MB / 0.8698 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001411/9.222, allocations: 165.6 kB / 3.302 GB, free: 245.9 MB / 0.8698 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002761/9.222, allocations: 192.3 kB / 3.303 GB, free: 245.8 MB / 0.8698 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01716/9.239, allocations: 5.267 MB / 3.308 GB, free: 244 MB / 0.8698 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05354/9.293, allocations: 22.85 MB / 3.33 GB, free: 228.5 MB / 0.8698 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01/9.303, allocations: 3.473 MB / 3.334 GB, free: 226.9 MB / 0.8698 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004343/9.307, allocations: 1.597 MB / 3.335 GB, free: 226.1 MB / 0.8698 GB Notification: Performance of preOpt evalFunc (simulation): time 0.00134/9.309, allocations: 0.5117 MB / 3.336 GB, free: 225.5 MB / 0.8698 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00519/9.314, allocations: 1.785 MB / 3.337 GB, free: 224.5 MB / 0.8698 GB Notification: Performance of pre-optimization done (n=240): time 6.752e-06/9.314, allocations: 0 / 3.337 GB, free: 224.5 MB / 0.8698 GB Notification: Performance of matching and sorting (n=243): time 0.01375/9.328, allocations: 5.066 MB / 3.342 GB, free: 221.3 MB / 0.8698 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000176/9.328, allocations: 443.5 kB / 3.343 GB, free: 220.8 MB / 0.8698 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003572/9.332, allocations: 1.501 MB / 3.344 GB, free: 220.1 MB / 0.8698 GB Notification: Performance of collectPreVariables (initialization): time 0.0009347/9.333, allocations: 69.14 kB / 3.344 GB, free: 220 MB / 0.8698 GB Notification: Performance of collectInitialEqns (initialization): time 0.001792/9.334, allocations: 1.598 MB / 3.346 GB, free: 218.6 MB / 0.8698 GB Notification: Performance of collectInitialBindings (initialization): time 0.001467/9.336, allocations: 0.8125 MB / 3.347 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003962/9.336, allocations: 50.75 kB / 3.347 GB, free: 217.9 MB / 0.8698 GB Notification: Performance of setup shared object (initialization): time 0.0002455/9.337, allocations: 416.4 kB / 3.347 GB, free: 217.5 MB / 0.8698 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003852/9.341, allocations: 1.295 MB / 3.348 GB, free: 216.6 MB / 0.8698 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004779/9.345, allocations: 2.014 MB / 3.35 GB, free: 214.3 MB / 0.8698 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004983/9.35, allocations: 1.591 MB / 3.352 GB, free: 212.8 MB / 0.8698 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.81e-05/9.35, allocations: 8 kB / 3.352 GB, free: 212.8 MB / 0.8698 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.01311/9.364, allocations: 3.62 MB / 3.355 GB, free: 209.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 0.001698/9.365, allocations: 7.143 MB / 3.362 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.992e-05/9.365, allocations: 20 kB / 3.362 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 7.628e-05/9.366, allocations: 32 kB / 3.362 GB, free: 201.6 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009099/9.375, allocations: 0.7956 MB / 3.363 GB, free: 200.8 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000138/9.375, allocations: 43.86 kB / 3.363 GB, free: 200.7 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007009/9.382, allocations: 378.2 kB / 3.364 GB, free: 200.4 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001043/9.383, allocations: 135.9 kB / 3.364 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of prepare postOptimizeDAE: time 1.965e-05/9.383, allocations: 4 kB / 3.364 GB, free: 200.2 MB / 0.8698 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.01117/9.394, allocations: 3.194 MB / 3.367 GB, free: 197 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.369e-05/9.394, allocations: 16 kB / 3.367 GB, free: 197 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (initialization): time 4.916e-05/9.394, allocations: 36 kB / 3.367 GB, free: 197 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007817/9.402, allocations: 0.7493 MB / 3.368 GB, free: 196.2 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.946e-05/9.402, allocations: 43.86 kB / 3.368 GB, free: 196.2 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00585/9.408, allocations: 338.3 kB / 3.368 GB, free: 195.9 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009691/9.409, allocations: 139.9 kB / 3.368 GB, free: 195.7 MB / 0.8698 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 () * 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.001114/9.41, allocations: 268.1 kB / 3.368 GB, free: 195.5 MB / 0.8698 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000885/9.411, allocations: 237.1 kB / 3.369 GB, free: 195.2 MB / 0.8698 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01276/9.424, allocations: 3.64 MB / 3.372 GB, free: 191.6 MB / 0.8698 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.431e-05/9.424, allocations: 24 kB / 3.372 GB, free: 191.6 MB / 0.8698 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.436e-05/9.424, allocations: 7.938 kB / 3.372 GB, free: 191.6 MB / 0.8698 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.734e-05/9.424, allocations: 15.95 kB / 3.372 GB, free: 191.6 MB / 0.8698 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02248/9.447, allocations: 8.135 MB / 3.38 GB, free: 183.4 MB / 0.8698 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.734e-05/9.447, allocations: 4 kB / 3.38 GB, free: 183.4 MB / 0.8698 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.007599/9.454, allocations: 0.714 MB / 3.381 GB, free: 182.7 MB / 0.8698 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.854e-05/9.455, allocations: 8 kB / 3.381 GB, free: 182.7 MB / 0.8698 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007209/9.455, allocations: 75.89 kB / 3.381 GB, free: 182.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.057e-05/9.455, allocations: 12 kB / 3.381 GB, free: 182.6 MB / 0.8698 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/9.455, allocations: 4 kB / 3.381 GB, free: 182.6 MB / 0.8698 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009492/9.465, allocations: 3.601 MB / 3.384 GB, free: 178.8 MB / 0.8698 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002692/9.468, allocations: 0.7627 MB / 3.385 GB, free: 178 MB / 0.8698 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00115/9.469, allocations: 48 kB / 3.385 GB, free: 178 MB / 0.8698 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00565/9.474, allocations: 267.7 kB / 3.385 GB, free: 177.7 MB / 0.8698 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008095/9.475, allocations: 161.7 kB / 3.386 GB, free: 177.5 MB / 0.8698 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004549/9.476, allocations: 87.94 kB / 3.386 GB, free: 177.4 MB / 0.8698 GB Notification: Performance of sorting global known variables: time 0.00295/9.479, allocations: 1.22 MB / 3.387 GB, free: 176.2 MB / 0.8698 GB Notification: Performance of sort global known variables: time 7.72e-07/9.479, allocations: 0 / 3.387 GB, free: 176.2 MB / 0.8698 GB Notification: Performance of remove unused functions: time 0.008265/9.487, allocations: 1.32 MB / 3.388 GB, free: 174.9 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 (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.01212/9.499, allocations: 5.247 MB / 3.393 GB, free: 169.7 MB / 0.8698 GB Notification: Performance of simCode: created initialization part: time 0.01418/9.513, allocations: 4.993 MB / 3.398 GB, free: 164.7 MB / 0.8698 GB Notification: Performance of simCode: created event and clocks part: time 1.337e-05/9.514, allocations: 4 kB / 3.398 GB, free: 164.7 MB / 0.8698 GB Notification: Performance of simCode: created simulation system equations: time 0.004772/9.518, allocations: 1.582 MB / 3.4 GB, free: 163.1 MB / 0.8698 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00505/9.523, allocations: 0.5117 MB / 3.4 GB, free: 162.6 MB / 0.8698 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02246/9.546, allocations: 6.534 MB / 3.407 GB, free: 156 MB / 0.8698 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003961/9.55, allocations: 2.534 MB / 3.409 GB, free: 153.5 MB / 0.8698 GB Notification: Performance of simCode: alias equations: time 0.01265/9.563, allocations: 1.405 MB / 3.41 GB, free: 152.1 MB / 0.8698 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004353/9.567, allocations: 1.436 MB / 3.412 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of SimCode: time 1.333e-06/9.567, allocations: 0 / 3.412 GB, free: 150.7 MB / 0.8698 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1547/9.722, allocations: 65.91 MB / 3.476 GB, free: 85.21 MB / 0.8698 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002438/9.722, allocations: 225.3 kB / 3.476 GB, free: 84.98 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_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: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_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: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_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