Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Utilities.IO.Files.Examples.JSONWriter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo) Running command: "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_9_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 9.1.1-maint.9.1.x/package.mo): time 2.497/2.497, allocations: 390.3 MB / 405.3 MB, free: 13.49 MB / 314.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001186/0.001186, allocations: 187.3 kB / 498.1 MB, free: 5.711 MB / 394.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.622/1.622, allocations: 223.1 MB / 0.7948 GB, free: 18.8 MB / 0.5573 GB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008755/0.0008755, allocations: 96.3 kB / 0.9346 GB, free: 7.141 MB / 0.6823 GB Notification: Performance of FrontEnd - loaded program: time 0.0003953/0.0003953, allocations: 9.469 kB / 1.084 GB, free: 212.5 MB / 0.8073 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2874/0.2878, allocations: 142.4 MB / 1.223 GB, free: 89.49 MB / 0.8073 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.1868/0.4747, allocations: 151.2 MB / 1.371 GB, free: 2.117 MB / 0.8698 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003266/0.4751, allocations: 87.92 kB / 1.371 GB, free: 2.031 MB / 0.8698 GB Notification: Performance of FrontEnd - DAE generated: time 0.01041/0.4855, allocations: 3.349 MB / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of FrontEnd: time 1.983e-06/0.4856, allocations: 0 / 1.374 GB, free: 14.68 MB / 0.8855 GB Notification: Performance of Transformations before backend: time 2.116e-05/0.4856, allocations: 4 kB / 1.374 GB, free: 14.67 MB / 0.8855 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.0007068/0.4863, allocations: 466.5 kB / 1.374 GB, free: 14.17 MB / 0.8855 GB Notification: Performance of prepare preOptimizeDAE: time 5.014e-05/0.4864, allocations: 12.03 kB / 1.374 GB, free: 14.16 MB / 0.8855 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.982e-05/0.4865, allocations: 38.5 kB / 1.374 GB, free: 14.11 MB / 0.8855 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.492e-05/0.4865, allocations: 23.77 kB / 1.374 GB, free: 14.09 MB / 0.8855 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003458/0.4869, allocations: 228.4 kB / 1.375 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.118e-05/0.4869, allocations: 0 / 1.375 GB, free: 13.82 MB / 0.8855 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.829e-05/0.4869, allocations: 8 kB / 1.375 GB, free: 13.81 MB / 0.8855 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003135/0.4873, allocations: 113.5 kB / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.778e-06/0.4873, allocations: 0 / 1.375 GB, free: 13.7 MB / 0.8855 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.257e-05/0.4873, allocations: 8 kB / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.144e-06/0.4873, allocations: 0 / 1.375 GB, free: 13.69 MB / 0.8855 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002552/0.4876, allocations: 79.88 kB / 1.375 GB, free: 13.61 MB / 0.8855 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007385/0.4883, allocations: 392.5 kB / 1.375 GB, free: 13.18 MB / 0.8855 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001467/0.4885, allocations: 46.52 kB / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt evalFunc (simulation): time 1.756e-05/0.4885, allocations: 0 / 1.375 GB, free: 13.12 MB / 0.8855 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000254/0.4888, allocations: 113.1 kB / 1.375 GB, free: 13 MB / 0.8855 GB Notification: Performance of pre-optimization done (n=3): time 1.062e-06/0.4888, allocations: 3.938 kB / 1.375 GB, free: 12.99 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3): time 0.0005132/0.4893, allocations: 145.5 kB / 1.376 GB, free: 12.84 MB / 0.8855 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.127e-05/0.4894, allocations: 77.11 kB / 1.376 GB, free: 12.75 MB / 0.8855 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002538/0.4896, allocations: 224.2 kB / 1.376 GB, free: 12.52 MB / 0.8855 GB Notification: Performance of collectPreVariables (initialization): time 2.326e-05/0.4897, allocations: 25.7 kB / 1.376 GB, free: 12.49 MB / 0.8855 GB Notification: Performance of collectInitialEqns (initialization): time 8.618e-05/0.4898, allocations: 132 kB / 1.376 GB, free: 12.36 MB / 0.8855 GB Notification: Performance of collectInitialBindings (initialization): time 2.288e-05/0.4898, allocations: 11.91 kB / 1.376 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.809e-06/0.4898, allocations: 0 / 1.376 GB, free: 12.35 MB / 0.8855 GB Notification: Performance of setup shared object (initialization): time 0.0001355/0.4899, allocations: 326.8 kB / 1.376 GB, free: 12.02 MB / 0.8855 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.4901, allocations: 27.98 kB / 1.376 GB, free: 11.99 MB / 0.8855 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001252/0.4902, allocations: 59.39 kB / 1.376 GB, free: 11.92 MB / 0.8855 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001252/0.4903, allocations: 43.94 kB / 1.376 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.713e-06/0.4903, allocations: 0 / 1.376 GB, free: 11.88 MB / 0.8855 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0003049/0.4907, allocations: 121.4 kB / 1.377 GB, free: 11.75 MB / 0.8855 GB Notification: Performance of prepare postOptimizeDAE: time 1.918e-05/0.4907, allocations: 11.94 kB / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.671e-06/0.4907, allocations: 0 / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.223e-05/0.4907, allocations: 0 / 1.377 GB, free: 11.74 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001269/0.4909, allocations: 15.98 kB / 1.377 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.55e-06/0.4909, allocations: 0 / 1.377 GB, free: 11.73 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.491, allocations: 27.86 kB / 1.377 GB, free: 11.7 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.297e-06/0.491, allocations: 0 / 1.377 GB, free: 11.7 MB / 0.8855 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 0.0001297/0.4911, allocations: 129.8 kB / 1.377 GB, free: 11.56 MB / 0.8855 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.17e-05/0.4912, allocations: 19.77 kB / 1.377 GB, free: 11.54 MB / 0.8855 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.454e-05/0.4912, allocations: 21.23 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.4912, allocations: 0 / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.905e-06/0.4912, allocations: 4 kB / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.4913, allocations: 0 / 1.377 GB, free: 11.52 MB / 0.8855 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000199/0.4915, allocations: 213.6 kB / 1.377 GB, free: 11.26 MB / 0.8855 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.045e-06/0.4915, allocations: 4 kB / 1.377 GB, free: 11.25 MB / 0.8855 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.341e-05/0.4916, allocations: 23.92 kB / 1.377 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.4916, allocations: 0 / 1.377 GB, free: 11.23 MB / 0.8855 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.33e-05/0.4916, allocations: 7.953 kB / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.4916, allocations: 0 / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.4916, allocations: 0 / 1.377 GB, free: 11.22 MB / 0.8855 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003106/0.4919, allocations: 132.9 kB / 1.377 GB, free: 11.07 MB / 0.8855 GB Notification: Performance of postOpt removeConstants (simulation): time 7.458e-05/0.492, allocations: 104.8 kB / 1.377 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.173e-05/0.4921, allocations: 0 / 1.377 GB, free: 10.95 MB / 0.8855 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.898e-05/0.4922, allocations: 19.94 kB / 1.377 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.183e-05/0.4922, allocations: 7.984 kB / 1.377 GB, free: 10.93 MB / 0.8855 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.4923, allocations: 4 kB / 1.377 GB, free: 10.92 MB / 0.8855 GB Notification: Performance of sorting global known variables: time 0.0001995/0.4925, allocations: 184.5 kB / 1.377 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of sort global known variables: time 1.4e-07/0.4925, allocations: 0 / 1.377 GB, free: 10.74 MB / 0.8855 GB Notification: Performance of remove unused functions: time 0.0002446/0.4927, allocations: 28.03 kB / 1.377 GB, free: 10.71 MB / 0.8855 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.0008358/0.4936, allocations: 0.6939 MB / 1.378 GB, free: 9.988 MB / 0.8855 GB Notification: Performance of simCode: created initialization part: time 0.0003103/0.4939, allocations: 72 kB / 1.378 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of simCode: created event and clocks part: time 4.699e-06/0.4939, allocations: 0 / 1.378 GB, free: 9.918 MB / 0.8855 GB Notification: Performance of simCode: created simulation system equations: time 0.0001166/0.494, allocations: 40.09 kB / 1.378 GB, free: 9.879 MB / 0.8855 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002735/0.4943, allocations: 39.59 kB / 1.378 GB, free: 9.844 MB / 0.8855 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001793/0.4961, allocations: 1.221 MB / 1.379 GB, free: 8.562 MB / 0.8855 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.4964, allocations: 0.7238 MB / 1.38 GB, free: 7.812 MB / 0.8855 GB Notification: Performance of simCode: alias equations: time 9.019e-05/0.4965, allocations: 28.47 kB / 1.38 GB, free: 7.785 MB / 0.8855 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.926e-05/0.4966, allocations: 43.36 kB / 1.38 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of SimCode: time 4.01e-07/0.4966, allocations: 0 / 1.38 GB, free: 7.742 MB / 0.8855 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02028/0.5169, allocations: 3.231 MB / 1.383 GB, free: 4.648 MB / 0.8855 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002794/0.5173, allocations: 182.2 kB / 1.384 GB, free: 4.402 MB / 0.8855 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 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.o Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.c In file included from Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./Buildings_9_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 9.1.1-maint.9.1.x/Resources/C-Sources" -c -o Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./Buildings_9_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_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./Buildings_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.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_9_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1