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.772/1.772, allocations: 289.7 MB / 302.2 MB, free: 2.203 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.001199/0.001199, allocations: 182 kB / 371.6 MB, free: 3.398 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.763/1.763, allocations: 205.2 MB / 0.6309 GB, free: 11.77 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.0009468/0.0009469, allocations: 92.11 kB / 0.745 GB, free: 54.66 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 5.904e-05/5.915e-05, allocations: 0 / 0.8663 GB, free: 14.95 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2908/0.2909, allocations: 116.3 MB / 0.9799 GB, free: 10.48 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 6.612/6.903, allocations: 2.122 GB / 3.102 GB, free: 74.86 MB / 0.948 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003406/6.903, allocations: 104 kB / 3.102 GB, free: 74.81 MB / 0.948 GB Notification: Performance of FrontEnd - DAE generated: time 1.17/8.073, allocations: 162.8 MB / 3.261 GB, free: 228.3 MB / 0.948 GB Notification: Performance of FrontEnd: time 2.575e-06/8.073, allocations: 0 / 3.261 GB, free: 228.3 MB / 0.948 GB Notification: Performance of Transformations before backend: time 0.0004097/8.073, allocations: 94.34 kB / 3.261 GB, free: 228.3 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.01695/8.09, allocations: 3.434 MB / 3.264 GB, free: 226.7 MB / 0.948 GB Notification: Performance of prepare preOptimizeDAE: time 7.853e-05/8.09, allocations: 14.09 kB / 3.264 GB, free: 226.7 MB / 0.948 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003489/8.094, allocations: 0.5456 MB / 3.265 GB, free: 226.7 MB / 0.948 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01938/8.113, allocations: 1.731 MB / 3.266 GB, free: 226.4 MB / 0.948 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009337/8.122, allocations: 2.21 MB / 3.268 GB, free: 225.9 MB / 0.948 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005184/8.123, allocations: 294.3 kB / 3.269 GB, free: 225.9 MB / 0.948 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002819/8.126, allocations: 388.6 kB / 3.269 GB, free: 225.9 MB / 0.948 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/8.146, allocations: 5.536 MB / 3.275 GB, free: 224.7 MB / 0.948 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001519/8.146, allocations: 10.5 kB / 3.275 GB, free: 224.7 MB / 0.948 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009692/8.147, allocations: 179.2 kB / 3.275 GB, free: 224.6 MB / 0.948 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003353/8.147, allocations: 194 kB / 3.275 GB, free: 224.5 MB / 0.948 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01403/8.161, allocations: 5.273 MB / 3.28 GB, free: 222.7 MB / 0.948 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04342/8.205, allocations: 22.85 MB / 3.302 GB, free: 207 MB / 0.948 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007289/8.212, allocations: 3.477 MB / 3.306 GB, free: 205.5 MB / 0.948 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002927/8.215, allocations: 1.594 MB / 3.307 GB, free: 204.9 MB / 0.948 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007869/8.216, allocations: 0.5132 MB / 3.308 GB, free: 204.4 MB / 0.948 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.003201/8.219, allocations: 1.789 MB / 3.31 GB, free: 203.6 MB / 0.948 GB Notification: Performance of pre-optimization done (n=240): time 5.431e-06/8.219, allocations: 0.9688 kB / 3.31 GB, free: 203.6 MB / 0.948 GB Notification: Performance of matching and sorting (n=243): time 0.009891/8.229, allocations: 5.045 MB / 3.314 GB, free: 200.9 MB / 0.948 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001727/8.229, allocations: 446.6 kB / 3.315 GB, free: 200.4 MB / 0.948 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002338/8.231, allocations: 1.506 MB / 3.316 GB, free: 199.8 MB / 0.948 GB Notification: Performance of collectPreVariables (initialization): time 0.0004686/8.232, allocations: 69.23 kB / 3.316 GB, free: 199.7 MB / 0.948 GB Notification: Performance of collectInitialEqns (initialization): time 0.001415/8.233, allocations: 1.603 MB / 3.318 GB, free: 198.5 MB / 0.948 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009034/8.234, allocations: 0.8119 MB / 3.319 GB, free: 197.9 MB / 0.948 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/8.235, allocations: 51 kB / 3.319 GB, free: 197.8 MB / 0.948 GB Notification: Performance of setup shared object (initialization): time 0.0001497/8.235, allocations: 407.9 kB / 3.319 GB, free: 197.5 MB / 0.948 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002037/8.237, allocations: 1.299 MB / 3.321 GB, free: 197 MB / 0.948 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002379/8.239, allocations: 2.01 MB / 3.322 GB, free: 195.6 MB / 0.948 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/8.241, allocations: 1.595 MB / 3.324 GB, free: 194.9 MB / 0.948 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.024e-05/8.241, allocations: 3.875 kB / 3.324 GB, free: 194.9 MB / 0.948 GB Notification: Performance of matching and sorting (n=336) (initialization): time 0.006217/8.248, allocations: 3.612 MB / 3.328 GB, free: 193.5 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 0.001537/8.249, allocations: 7.141 MB / 3.335 GB, free: 186 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.455e-05/8.249, allocations: 27.75 kB / 3.335 GB, free: 186 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 6.508e-05/8.249, allocations: 31.34 kB / 3.335 GB, free: 186 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004131/8.254, allocations: 0.7938 MB / 3.335 GB, free: 186 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.385e-05/8.254, allocations: 44.92 kB / 3.335 GB, free: 185.9 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003656/8.257, allocations: 382.3 kB / 3.336 GB, free: 185.8 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003931/8.258, allocations: 132.5 kB / 3.336 GB, free: 185.8 MB / 0.948 GB Notification: Performance of prepare postOptimizeDAE: time 1.736e-05/8.258, allocations: 3.938 kB / 3.336 GB, free: 185.8 MB / 0.948 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005555/8.263, allocations: 3.193 MB / 3.339 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/8.263, allocations: 19.91 kB / 3.339 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.66e-05/8.263, allocations: 32.88 kB / 3.339 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003687/8.267, allocations: 0.7558 MB / 3.34 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-05/8.267, allocations: 41.95 kB / 3.34 GB, free: 184.5 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003379/8.271, allocations: 344 kB / 3.34 GB, free: 184.3 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003388/8.271, allocations: 137.7 kB / 3.34 GB, free: 184.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 () * 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.0009027/8.272, allocations: 268.6 kB / 3.341 GB, free: 184.1 MB / 0.948 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008131/8.273, allocations: 233.5 kB / 3.341 GB, free: 184 MB / 0.948 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007064/8.28, allocations: 3.647 MB / 3.344 GB, free: 182.5 MB / 0.948 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.398e-05/8.28, allocations: 22.22 kB / 3.344 GB, free: 182.5 MB / 0.948 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.382e-05/8.28, allocations: 3.875 kB / 3.344 GB, free: 182.5 MB / 0.948 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.781e-05/8.28, allocations: 11.39 kB / 3.344 GB, free: 182.5 MB / 0.948 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01372/8.294, allocations: 8.139 MB / 3.352 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.209e-05/8.294, allocations: 3.625 kB / 3.352 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003748/8.297, allocations: 0.7095 MB / 3.353 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.082e-05/8.297, allocations: 12.53 kB / 3.353 GB, free: 178.9 MB / 0.948 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003018/8.298, allocations: 68.27 kB / 3.353 GB, free: 178.8 MB / 0.948 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.514e-05/8.298, allocations: 17.34 kB / 3.353 GB, free: 178.8 MB / 0.948 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.051e-06/8.298, allocations: 11.27 kB / 3.353 GB, free: 178.8 MB / 0.948 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005537/8.303, allocations: 3.598 MB / 3.357 GB, free: 176.9 MB / 0.948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001908/8.305, allocations: 0.7619 MB / 3.357 GB, free: 176.5 MB / 0.948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006283/8.306, allocations: 47.19 kB / 3.357 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002898/8.309, allocations: 269.2 kB / 3.358 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003307/8.309, allocations: 152.9 kB / 3.358 GB, free: 176.4 MB / 0.948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002273/8.309, allocations: 95.42 kB / 3.358 GB, free: 176.3 MB / 0.948 GB Notification: Performance of sorting global known variables: time 0.002052/8.311, allocations: 1.226 MB / 3.359 GB, free: 175.8 MB / 0.948 GB Notification: Performance of sort global known variables: time 2.61e-07/8.311, allocations: 0 / 3.359 GB, free: 175.8 MB / 0.948 GB Notification: Performance of remove unused functions: time 0.006581/8.318, allocations: 1.323 MB / 3.36 GB, free: 175.6 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 (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.00741/8.326, allocations: 5.239 MB / 3.366 GB, free: 172.4 MB / 0.948 GB Notification: Performance of simCode: created initialization part: time 0.009256/8.335, allocations: 4.993 MB / 3.37 GB, free: 170.5 MB / 0.948 GB Notification: Performance of simCode: created event and clocks part: time 1.867e-05/8.335, allocations: 4.062 kB / 3.37 GB, free: 170.5 MB / 0.948 GB Notification: Performance of simCode: created simulation system equations: time 0.00278/8.338, allocations: 1.579 MB / 3.372 GB, free: 169.9 MB / 0.948 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/8.341, allocations: 0.5175 MB / 3.372 GB, free: 169.7 MB / 0.948 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01699/8.358, allocations: 6.536 MB / 3.379 GB, free: 167.2 MB / 0.948 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002389/8.361, allocations: 2.528 MB / 3.381 GB, free: 165.8 MB / 0.948 GB Notification: Performance of simCode: alias equations: time 0.006778/8.368, allocations: 1.393 MB / 3.383 GB, free: 164.7 MB / 0.948 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00288/8.371, allocations: 1.437 MB / 3.384 GB, free: 163.4 MB / 0.948 GB Notification: Performance of SimCode: time 1.423e-06/8.371, allocations: 0 / 3.384 GB, free: 163.4 MB / 0.948 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.12/8.491, allocations: 65.92 MB / 3.448 GB, free: 99.08 MB / 0.948 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000198/8.491, allocations: 222.9 kB / 3.449 GB, free: 98.85 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_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: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_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: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_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