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.919/1.919, allocations: 292.6 MB / 307.5 MB, free: 5.211 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.001244/0.001244, allocations: 186.8 kB / 377.1 MB, free: 1.535 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.08/2.08, allocations: 205.4 MB / 0.6366 GB, free: 8.559 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.001124/0.001124, allocations: 96.5 kB / 0.7509 GB, free: 63.11 MB / 0.5573 GB Notification: Performance of FrontEnd - loaded program: time 0.0005339/0.000534, allocations: 8 kB / 0.8749 GB, free: 11.11 MB / 0.6042 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3391/0.3397, allocations: 116.3 MB / 0.9884 GB, free: 6.652 MB / 0.7136 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.915/1.255, allocations: 141 MB / 1.126 GB, free: 34.09 MB / 0.7292 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001992/1.255, allocations: 74.83 kB / 1.126 GB, free: 34.02 MB / 0.7292 GB Notification: Performance of FrontEnd - DAE generated: time 0.008108/1.263, allocations: 3.289 MB / 1.129 GB, free: 31.78 MB / 0.7292 GB Notification: Performance of FrontEnd: time 2.304e-06/1.263, allocations: 0 / 1.129 GB, free: 31.78 MB / 0.7292 GB Notification: Performance of Transformations before backend: time 1.597e-05/1.263, allocations: 4 kB / 1.129 GB, free: 31.77 MB / 0.7292 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.0004996/1.264, allocations: 463 kB / 1.13 GB, free: 31.3 MB / 0.7292 GB Notification: Performance of prepare preOptimizeDAE: time 4.598e-05/1.264, allocations: 15.53 kB / 1.13 GB, free: 31.29 MB / 0.7292 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.097e-05/1.264, allocations: 34.56 kB / 1.13 GB, free: 31.24 MB / 0.7292 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.557e-05/1.264, allocations: 26.33 kB / 1.13 GB, free: 31.22 MB / 0.7292 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/1.264, allocations: 240.3 kB / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.142e-05/1.264, allocations: 4 kB / 1.13 GB, free: 30.96 MB / 0.7292 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.728e-05/1.264, allocations: 11.44 kB / 1.13 GB, free: 30.95 MB / 0.7292 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002925/1.264, allocations: 103 kB / 1.13 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.327e-06/1.264, allocations: 0 / 1.13 GB, free: 30.86 MB / 0.7292 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.511e-05/1.264, allocations: 8 kB / 1.13 GB, free: 30.85 MB / 0.7292 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/1.265, allocations: 0 / 1.13 GB, free: 30.85 MB / 0.7292 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002131/1.265, allocations: 82.36 kB / 1.13 GB, free: 30.79 MB / 0.7292 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005386/1.265, allocations: 393.7 kB / 1.131 GB, free: 30.41 MB / 0.7292 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001277/1.265, allocations: 49.41 kB / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of preOpt evalFunc (simulation): time 1.672e-05/1.265, allocations: 0 / 1.131 GB, free: 30.36 MB / 0.7292 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000206/1.266, allocations: 118.9 kB / 1.131 GB, free: 30.24 MB / 0.7292 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/1.266, allocations: 0 / 1.131 GB, free: 30.24 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3): time 0.0004115/1.266, allocations: 142.7 kB / 1.131 GB, free: 30.11 MB / 0.7292 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.562e-05/1.266, allocations: 77.11 kB / 1.131 GB, free: 30.02 MB / 0.7292 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000194/1.266, allocations: 225 kB / 1.131 GB, free: 29.82 MB / 0.7292 GB Notification: Performance of collectPreVariables (initialization): time 1.422e-05/1.266, allocations: 25.7 kB / 1.131 GB, free: 29.79 MB / 0.7292 GB Notification: Performance of collectInitialEqns (initialization): time 5.276e-05/1.266, allocations: 128.3 kB / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of collectInitialBindings (initialization): time 1.563e-05/1.266, allocations: 11.28 kB / 1.131 GB, free: 29.66 MB / 0.7292 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.638e-06/1.266, allocations: 4 kB / 1.131 GB, free: 29.65 MB / 0.7292 GB Notification: Performance of setup shared object (initialization): time 6.208e-05/1.267, allocations: 322.4 kB / 1.132 GB, free: 29.33 MB / 0.7292 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001037/1.267, allocations: 31.03 kB / 1.132 GB, free: 29.31 MB / 0.7292 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001036/1.267, allocations: 54.56 kB / 1.132 GB, free: 29.25 MB / 0.7292 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000105/1.267, allocations: 39.2 kB / 1.132 GB, free: 29.22 MB / 0.7292 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/1.267, allocations: 0.9375 kB / 1.132 GB, free: 29.22 MB / 0.7292 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000248/1.267, allocations: 119.4 kB / 1.132 GB, free: 29.11 MB / 0.7292 GB Notification: Performance of prepare postOptimizeDAE: time 1.713e-05/1.267, allocations: 12.72 kB / 1.132 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.461e-06/1.267, allocations: 3.953 kB / 1.132 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.331e-05/1.267, allocations: 0 / 1.132 GB, free: 29.1 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001105/1.267, allocations: 15.47 kB / 1.132 GB, free: 29.09 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.612e-06/1.267, allocations: 3.938 kB / 1.132 GB, free: 29.08 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.201e-05/1.267, allocations: 23.8 kB / 1.132 GB, free: 29.06 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.067e-06/1.267, allocations: 0.9375 kB / 1.132 GB, free: 29.06 MB / 0.7292 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 () * Number of clocked 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 8.361e-05/1.267, allocations: 132.6 kB / 1.132 GB, free: 28.93 MB / 0.7292 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.501e-05/1.268, allocations: 21.92 kB / 1.132 GB, free: 28.91 MB / 0.7292 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.534e-05/1.268, allocations: 20.58 kB / 1.132 GB, free: 28.89 MB / 0.7292 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/1.268, allocations: 3.953 kB / 1.132 GB, free: 28.89 MB / 0.7292 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.411e-06/1.268, allocations: 0.5 kB / 1.132 GB, free: 28.89 MB / 0.7292 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/1.268, allocations: 0 / 1.132 GB, free: 28.89 MB / 0.7292 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001279/1.268, allocations: 213.7 kB / 1.132 GB, free: 28.66 MB / 0.7292 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.255e-06/1.268, allocations: 8.172 kB / 1.132 GB, free: 28.65 MB / 0.7292 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.36e-05/1.268, allocations: 11.47 kB / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/1.268, allocations: 0.9375 kB / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.418e-06/1.268, allocations: 8 kB / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.052e-06/1.268, allocations: 0 / 1.132 GB, free: 28.64 MB / 0.7292 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/1.268, allocations: 4.578 kB / 1.132 GB, free: 28.63 MB / 0.7292 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000254/1.268, allocations: 137.4 kB / 1.133 GB, free: 28.5 MB / 0.7292 GB Notification: Performance of postOpt removeConstants (simulation): time 4.909e-05/1.268, allocations: 101 kB / 1.133 GB, free: 28.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.558e-05/1.268, allocations: 0 / 1.133 GB, free: 28.38 MB / 0.7292 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.187e-05/1.268, allocations: 15.52 kB / 1.133 GB, free: 28.37 MB / 0.7292 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.917e-05/1.268, allocations: 12.03 kB / 1.133 GB, free: 28.36 MB / 0.7292 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.204e-05/1.268, allocations: 4 kB / 1.133 GB, free: 28.36 MB / 0.7292 GB Notification: Performance of sorting global known variables: time 0.0001266/1.269, allocations: 186.1 kB / 1.133 GB, free: 28.2 MB / 0.7292 GB Notification: Performance of sort global known variables: time 1.5e-07/1.269, allocations: 0 / 1.133 GB, free: 28.2 MB / 0.7292 GB Notification: Performance of remove unused functions: time 0.0002054/1.269, allocations: 23.94 kB / 1.133 GB, free: 28.18 MB / 0.7292 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 () * Number of clocked 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.0005756/1.269, allocations: 0.6989 MB / 1.134 GB, free: 27.48 MB / 0.7292 GB Notification: Performance of simCode: created initialization part: time 0.0002632/1.27, allocations: 72.66 kB / 1.134 GB, free: 27.43 MB / 0.7292 GB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/1.27, allocations: 0 / 1.134 GB, free: 27.43 MB / 0.7292 GB Notification: Performance of simCode: created simulation system equations: time 0.0001031/1.27, allocations: 38.55 kB / 1.134 GB, free: 27.39 MB / 0.7292 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002333/1.27, allocations: 28.45 kB / 1.134 GB, free: 27.38 MB / 0.7292 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001334/1.271, allocations: 1.227 MB / 1.135 GB, free: 26.2 MB / 0.7292 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001535/1.271, allocations: 0.7246 MB / 1.136 GB, free: 25.47 MB / 0.7292 GB Notification: Performance of simCode: alias equations: time 7.238e-05/1.272, allocations: 21.53 kB / 1.136 GB, free: 25.46 MB / 0.7292 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.878e-05/1.272, allocations: 38.95 kB / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of SimCode: time 2.21e-07/1.272, allocations: 0 / 1.136 GB, free: 25.42 MB / 0.7292 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01584/1.287, allocations: 3.254 MB / 1.139 GB, free: 23.59 MB / 0.7292 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001814/1.288, allocations: 170.2 kB / 1.139 GB, free: 23.35 MB / 0.7292 GB 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/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: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 -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/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: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_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