Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.Utilities.IO.Files.Examples.WeeklySchedule7to19.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.WeeklySchedule7to19,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.WeeklySchedule7to19,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001251/0.001251, allocations: 96.27 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001787/0.001787, allocations: 175 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.527/2.527, allocations: 223.2 MB / 240.5 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.231/1.231, allocations: 113.7 MB / 405.3 MB, free: 4.645 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000579/0.000579, allocations: 10.69 kB / 493 MB, free: 8.617 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2715/0.2722, allocations: 77.11 MB / 0.5567 GB, free: 11.71 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.WeeklySchedule7to19): time 0.002365/0.2746, allocations: 1.068 MB / 0.5578 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002306/0.2749, allocations: 43.84 kB / 0.5578 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.63e-05/0.2749, allocations: 0 / 0.5578 GB, free: 10.59 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001861/0.2752, allocations: 11.88 kB / 0.5578 GB, free: 10.58 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001232/0.2753, allocations: 19.91 kB / 0.5578 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 4.759e-06/0.2753, allocations: 0 / 0.5578 GB, free: 10.56 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 7.148e-05/0.2754, allocations: 8 kB / 0.5579 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.325e-05/0.2755, allocations: 4 kB / 0.5579 GB, free: 10.55 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.97e-05/0.2755, allocations: 11.92 kB / 0.5579 GB, free: 10.54 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.61e-05/0.2756, allocations: 7.984 kB / 0.5579 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 1.866e-05/0.2756, allocations: 0 / 0.5579 GB, free: 10.53 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.353e-05/0.2757, allocations: 4 kB / 0.5579 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 4.987e-05/0.2757, allocations: 7.938 kB / 0.5579 GB, free: 10.52 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 3.329e-05/0.2758, allocations: 25.7 kB / 0.5579 GB, free: 10.48 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001158/0.2759, allocations: 23.95 kB / 0.5579 GB, free: 10.46 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.487e-06/0.2759, allocations: 0 / 0.5579 GB, free: 10.46 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.256e-06/0.2759, allocations: 4 kB / 0.5579 GB, free: 10.46 MB / 430.1 MB Notification: Performance of Transformations before backend: time 5.601e-06/0.276, allocations: 0 / 0.5579 GB, free: 10.46 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1 * Number of variables: 1 Notification: Performance of Generate backend data structure: time 0.0004687/0.2764, allocations: 339.5 kB / 0.5583 GB, free: 10.08 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.289e-05/0.2765, allocations: 8.031 kB / 0.5583 GB, free: 10.07 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.172e-05/0.2766, allocations: 30.56 kB / 0.5583 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.091e-05/0.2766, allocations: 0 / 0.5583 GB, free: 10.03 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002606/0.2769, allocations: 175.1 kB / 0.5585 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.222e-05/0.2769, allocations: 0 / 0.5585 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.057e-05/0.2769, allocations: 0 / 0.5585 GB, free: 9.82 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001519/0.2771, allocations: 41.64 kB / 0.5585 GB, free: 9.773 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.668e-06/0.2771, allocations: 3.938 kB / 0.5585 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.899e-06/0.2771, allocations: 0 / 0.5585 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.701e-05/0.2772, allocations: 0 / 0.5585 GB, free: 9.77 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.459e-05/0.2772, allocations: 4 kB / 0.5585 GB, free: 9.766 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002189/0.2774, allocations: 153.7 kB / 0.5587 GB, free: 9.566 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.232e-05/0.2775, allocations: 14.58 kB / 0.5587 GB, free: 9.543 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.519e-05/0.2775, allocations: 0 / 0.5587 GB, free: 9.543 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.114e-05/0.2776, allocations: 42.62 kB / 0.5587 GB, free: 9.492 MB / 430.1 MB Notification: Performance of pre-optimization done (n=1): time 1.172e-06/0.2776, allocations: 0 / 0.5587 GB, free: 9.492 MB / 430.1 MB Notification: Performance of matching and sorting (n=1): time 0.0001769/0.2778, allocations: 45.48 kB / 0.5588 GB, free: 9.441 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.796e-05/0.2778, allocations: 55.41 kB / 0.5588 GB, free: 9.375 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001505/0.278, allocations: 113.8 kB / 0.5589 GB, free: 9.254 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 2.681e-05/0.2781, allocations: 25.7 kB / 0.5589 GB, free: 9.223 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.058e-05/0.2781, allocations: 84.14 kB / 0.559 GB, free: 9.137 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.349e-05/0.2782, allocations: 4.125 kB / 0.559 GB, free: 9.133 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.785e-06/0.2782, allocations: 0 / 0.559 GB, free: 9.133 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.000177/0.2784, allocations: 318.8 kB / 0.5593 GB, free: 8.812 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.198e-05/0.2784, allocations: 4 kB / 0.5593 GB, free: 8.809 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.199e-05/0.2784, allocations: 7.938 kB / 0.5593 GB, free: 8.801 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 1.85e-05/0.2785, allocations: 3.938 kB / 0.5593 GB, free: 8.797 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2785, allocations: 0 / 0.5593 GB, free: 8.797 MB / 430.1 MB Notification: Performance of matching and sorting (n=1) (initialization): time 9.268e-05/0.2786, allocations: 41.55 kB / 0.5594 GB, free: 8.75 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.885e-05/0.2786, allocations: 4 kB / 0.5594 GB, free: 8.746 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.941e-06/0.2786, allocations: 4.094 kB / 0.5594 GB, free: 8.742 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.452e-05/0.2786, allocations: 3.984 kB / 0.5594 GB, free: 8.738 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.098e-05/0.2787, allocations: 7.953 kB / 0.5594 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.132e-06/0.2787, allocations: 0 / 0.5594 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.058e-05/0.2788, allocations: 0 / 0.5594 GB, free: 8.73 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.746e-06/0.2788, allocations: 0 / 0.5594 GB, free: 8.73 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 1 * 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.0001123/0.2789, allocations: 115.7 kB / 0.5595 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.323e-05/0.2789, allocations: 0 / 0.5595 GB, free: 8.609 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001532/0.2791, allocations: 53.16 kB / 0.5596 GB, free: 8.551 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.134e-06/0.2791, allocations: 0 / 0.5596 GB, free: 8.551 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.004e-05/0.2791, allocations: 7.938 kB / 0.5596 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.647e-06/0.2791, allocations: 0 / 0.5596 GB, free: 8.543 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001869/0.2793, allocations: 153.7 kB / 0.5597 GB, free: 8.344 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.43e-06/0.2794, allocations: 8 kB / 0.5597 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.901e-05/0.2794, allocations: 0 / 0.5597 GB, free: 8.336 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.33e-06/0.2794, allocations: 3.984 kB / 0.5597 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.656e-06/0.2794, allocations: 0 / 0.5597 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.883e-06/0.2794, allocations: 0 / 0.5597 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.393e-06/0.2794, allocations: 0 / 0.5597 GB, free: 8.332 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001169/0.2796, allocations: 69.03 kB / 0.5598 GB, free: 8.246 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.287e-05/0.2797, allocations: 85.09 kB / 0.5599 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.825e-05/0.2797, allocations: 0 / 0.5599 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.878e-05/0.2797, allocations: 0 / 0.5599 GB, free: 8.145 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.06e-05/0.2798, allocations: 3.938 kB / 0.5599 GB, free: 8.141 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.679e-06/0.2798, allocations: 0 / 0.5599 GB, free: 8.141 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0001135/0.2799, allocations: 95.27 kB / 0.56 GB, free: 8.047 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.2799, allocations: 4.031 kB / 0.56 GB, free: 8.043 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003819/0.2803, allocations: 7.953 kB / 0.56 GB, free: 8.035 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (1): * Single equations (assignments): 1 * 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 Backend phase and start with SimCode phase: time 0.0007083/0.281, allocations: 0.6166 MB / 0.5606 GB, free: 7.395 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 9.636e-05/0.2811, allocations: 8 kB / 0.5606 GB, free: 7.387 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.2812, allocations: 0 / 0.5606 GB, free: 7.387 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 1.986e-05/0.2812, allocations: 3.938 kB / 0.5606 GB, free: 7.383 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001672/0.2814, allocations: 5.406 kB / 0.5606 GB, free: 7.379 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009303/0.2823, allocations: 371.2 kB / 0.561 GB, free: 6.969 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004412/0.2828, allocations: 0.6809 MB / 0.5616 GB, free: 6.262 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 8.633e-05/0.2829, allocations: 7.984 kB / 0.5616 GB, free: 6.254 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.687e-05/0.283, allocations: 7.438 kB / 0.5616 GB, free: 6.246 MB / 430.1 MB Notification: Performance of SimCode: time 6.31e-07/0.283, allocations: 0 / 0.5616 GB, free: 6.246 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02059/0.3036, allocations: 1.188 MB / 0.5628 GB, free: 5.195 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003395/0.304, allocations: 197.1 kB / 0.563 GB, free: 4.949 MB / 430.1 MB 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_model.h:5: In file included from ./openmodelica.h:71: In file included from ./gc/../openmodelica_types.h:149: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222: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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.c:2: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.h:3: In file included from ./meta/meta_modelica.h:49: ./gc/omc_gc.h:218:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:222:34: warning: expression result unused [-Wunused-value] GC_set_force_unmap_on_gcollect(1); ^ In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_includes.h:4: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Resources/C-Sources/WeeklySchedule.c:20:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_WeeklySchedule7to19_functions.o] Error 1