Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.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.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter",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.722/1.722, allocations: 289.7 MB / 302.2 MB, free: 2.191 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.001128/0.001128, allocations: 180.8 kB / 371.6 MB, free: 3.402 MB / 298.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.074/2.074, allocations: 205.2 MB / 0.6309 GB, free: 11.75 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.001131/0.001131, allocations: 87.47 kB / 0.745 GB, free: 54.46 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 5.281e-05/5.326e-05, allocations: 0 / 0.8663 GB, free: 14.96 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3529/0.353, allocations: 116.3 MB / 0.9799 GB, free: 10.51 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8985/1.252, allocations: 140.9 MB / 1.117 GB, free: 43.23 MB / 0.7448 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003148/1.252, allocations: 74.81 kB / 1.118 GB, free: 43.2 MB / 0.7448 GB Notification: Performance of FrontEnd - DAE generated: time 0.01022/1.262, allocations: 3.277 MB / 1.121 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of FrontEnd: time 1.763e-06/1.262, allocations: 0 / 1.121 GB, free: 41.41 MB / 0.7448 GB Notification: Performance of Transformations before backend: time 1.693e-05/1.262, allocations: 7.844 kB / 1.121 GB, free: 41.4 MB / 0.7448 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.0004916/1.263, allocations: 430.1 kB / 1.121 GB, free: 40.98 MB / 0.7448 GB Notification: Performance of prepare preOptimizeDAE: time 5.535e-05/1.263, allocations: 8.031 kB / 1.121 GB, free: 40.97 MB / 0.7448 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.692e-05/1.263, allocations: 43.25 kB / 1.121 GB, free: 40.92 MB / 0.7448 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.74e-05/1.263, allocations: 21.47 kB / 1.121 GB, free: 40.9 MB / 0.7448 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000248/1.263, allocations: 228.2 kB / 1.121 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.075e-06/1.263, allocations: 8.203 kB / 1.121 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.757e-05/1.263, allocations: 7.188 kB / 1.121 GB, free: 40.66 MB / 0.7448 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001829/1.263, allocations: 81.8 kB / 1.122 GB, free: 40.6 MB / 0.7448 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/1.263, allocations: 4 kB / 1.122 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.815e-05/1.263, allocations: 0 / 1.122 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.22e-06/1.263, allocations: 0 / 1.122 GB, free: 40.59 MB / 0.7448 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.373e-05/1.264, allocations: 41.28 kB / 1.122 GB, free: 40.57 MB / 0.7448 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007269/1.264, allocations: 401.5 kB / 1.122 GB, free: 40.21 MB / 0.7448 GB Notification: Performance of preOpt comSubExp (simulation): time 6.742e-05/1.264, allocations: 22.58 kB / 1.122 GB, free: 40.18 MB / 0.7448 GB Notification: Performance of preOpt resolveLoops (simulation): time 4.555e-05/1.264, allocations: 12.42 kB / 1.122 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of preOpt evalFunc (simulation): time 2.146e-05/1.264, allocations: 1.219 kB / 1.122 GB, free: 40.17 MB / 0.7448 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000128/1.265, allocations: 90.27 kB / 1.122 GB, free: 40.09 MB / 0.7448 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/1.265, allocations: 0 / 1.122 GB, free: 40.09 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3): time 0.0001634/1.265, allocations: 62.88 kB / 1.122 GB, free: 40.03 MB / 0.7448 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.552e-05/1.265, allocations: 81.11 kB / 1.122 GB, free: 39.93 MB / 0.7448 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001964/1.265, allocations: 228.8 kB / 1.122 GB, free: 39.75 MB / 0.7448 GB Notification: Performance of collectPreVariables (initialization): time 1.403e-05/1.265, allocations: 25.7 kB / 1.122 GB, free: 39.72 MB / 0.7448 GB Notification: Performance of collectInitialEqns (initialization): time 5.548e-05/1.265, allocations: 125.8 kB / 1.123 GB, free: 39.63 MB / 0.7448 GB Notification: Performance of collectInitialBindings (initialization): time 2.005e-05/1.265, allocations: 15.31 kB / 1.123 GB, free: 39.62 MB / 0.7448 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.009e-06/1.265, allocations: 0 / 1.123 GB, free: 39.62 MB / 0.7448 GB Notification: Performance of setup shared object (initialization): time 7.147e-05/1.265, allocations: 324.6 kB / 1.123 GB, free: 39.3 MB / 0.7448 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.422e-05/1.265, allocations: 10.88 kB / 1.123 GB, free: 39.3 MB / 0.7448 GB Notification: Performance of partitionIndependentBlocks (initialization): time 3.194e-05/1.265, allocations: 35.89 kB / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.903e-05/1.265, allocations: 11.91 kB / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/1.265, allocations: 0 / 1.123 GB, free: 39.25 MB / 0.7448 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.782e-05/1.265, allocations: 74.69 kB / 1.123 GB, free: 39.18 MB / 0.7448 GB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/1.266, allocations: 7.953 kB / 1.123 GB, free: 39.17 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.413e-06/1.266, allocations: 4 kB / 1.123 GB, free: 39.17 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.417e-05/1.266, allocations: 4.125 kB / 1.123 GB, free: 39.16 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001165/1.266, allocations: 15.38 kB / 1.123 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/1.266, allocations: 0 / 1.123 GB, free: 39.15 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.849e-05/1.266, allocations: 16.02 kB / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.867e-06/1.266, allocations: 0 / 1.123 GB, free: 39.14 MB / 0.7448 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 5.179e-05/1.266, allocations: 112.3 kB / 1.123 GB, free: 39.03 MB / 0.7448 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.385e-05/1.266, allocations: 20.94 kB / 1.123 GB, free: 39.01 MB / 0.7448 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.597e-05/1.266, allocations: 20.47 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.014e-06/1.266, allocations: 1.312 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.933e-06/1.266, allocations: 4.875 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/1.266, allocations: 3.281 kB / 1.123 GB, free: 39 MB / 0.7448 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001691/1.266, allocations: 217.7 kB / 1.123 GB, free: 38.78 MB / 0.7448 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/1.266, allocations: 0 / 1.123 GB, free: 38.78 MB / 0.7448 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.302e-05/1.266, allocations: 15.47 kB / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.824e-06/1.266, allocations: 4 kB / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/1.266, allocations: 0.5625 kB / 1.123 GB, free: 38.77 MB / 0.7448 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.045e-06/1.266, allocations: 8.438 kB / 1.123 GB, free: 38.76 MB / 0.7448 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.372e-06/1.266, allocations: 0 / 1.123 GB, free: 38.76 MB / 0.7448 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001091/1.266, allocations: 97.52 kB / 1.124 GB, free: 38.66 MB / 0.7448 GB Notification: Performance of postOpt removeConstants (simulation): time 5.456e-05/1.266, allocations: 100.5 kB / 1.124 GB, free: 38.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.183e-05/1.266, allocations: 0.7969 kB / 1.124 GB, free: 38.55 MB / 0.7448 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.892e-05/1.267, allocations: 15.52 kB / 1.124 GB, free: 38.54 MB / 0.7448 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.525e-05/1.267, allocations: 11.28 kB / 1.124 GB, free: 38.53 MB / 0.7448 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.356e-05/1.267, allocations: 4.5 kB / 1.124 GB, free: 38.53 MB / 0.7448 GB Notification: Performance of sorting global known variables: time 0.0001333/1.267, allocations: 178.2 kB / 1.124 GB, free: 38.39 MB / 0.7448 GB Notification: Performance of sort global known variables: time 1.4e-07/1.267, allocations: 1.406 kB / 1.124 GB, free: 38.39 MB / 0.7448 GB Notification: Performance of remove unused functions: time 0.0001986/1.267, allocations: 23.31 kB / 1.124 GB, free: 38.38 MB / 0.7448 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 ($whenCondition1) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.0004181/1.267, allocations: 0.6536 MB / 1.125 GB, free: 37.72 MB / 0.7448 GB Notification: Performance of simCode: created initialization part: time 0.000113/1.268, allocations: 18.56 kB / 1.125 GB, free: 37.71 MB / 0.7448 GB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/1.268, allocations: 3.938 kB / 1.125 GB, free: 37.7 MB / 0.7448 GB Notification: Performance of simCode: created simulation system equations: time 5.304e-05/1.268, allocations: 21.61 kB / 1.125 GB, free: 37.69 MB / 0.7448 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002717/1.268, allocations: 46.02 kB / 1.125 GB, free: 37.66 MB / 0.7448 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000487/1.268, allocations: 234.3 kB / 1.125 GB, free: 37.45 MB / 0.7448 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/1.269, allocations: 0.7195 MB / 1.126 GB, free: 36.73 MB / 0.7448 GB Notification: Performance of simCode: alias equations: time 7.057e-05/1.269, allocations: 23.3 kB / 1.126 GB, free: 36.72 MB / 0.7448 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.521e-05/1.269, allocations: 45.52 kB / 1.126 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of SimCode: time 2.4e-07/1.269, allocations: 0 / 1.126 GB, free: 36.7 MB / 0.7448 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01671/1.285, allocations: 3.216 MB / 1.129 GB, free: 34.89 MB / 0.7448 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002358/1.286, allocations: 166.9 kB / 1.129 GB, free: 34.66 MB / 0.7448 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_Utilities_IO_Files_Examples_JSONWriter.o Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter.c In file included from Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_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_Utilities_IO_Files_Examples_JSONWriter_functions.o Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_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_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources/fileWriterStructure.c:4:10: fatal error: 'ModelicaUtilities.h' file not found #include "ModelicaUtilities.h" ^~~~~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: Buildings_8_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1