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.165/2.165, allocations: 387.1 MB / 399.7 MB, free: 9.492 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.001089/0.001089, allocations: 171.7 kB / 492.3 MB, free: 0.625 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.511/1.511, allocations: 221.3 MB / 0.7871 GB, free: 12.91 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.0008614/0.0008612, allocations: 97 kB / 0.9267 GB, free: 13.96 MB / 0.698 GB Notification: Performance of FrontEnd - loaded program: time 4.3e-05/4.329e-05, allocations: 4 kB / 1.073 GB, free: 180.3 MB / 0.7605 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.325/0.3251, allocations: 142.3 MB / 1.212 GB, free: 38.44 MB / 0.7605 GB Notification: Performance of FrontEnd - scodeFlatten: time 0.8953/1.22, allocations: 151.1 MB / 1.36 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002008/1.221, allocations: 78.25 kB / 1.36 GB, free: 18.96 MB / 0.823 GB Notification: Performance of FrontEnd - DAE generated: time 0.008293/1.229, allocations: 3.329 MB / 1.363 GB, free: 34.48 MB / 0.8386 GB Notification: Performance of FrontEnd: time 1.262e-06/1.229, allocations: 0 / 1.363 GB, free: 34.48 MB / 0.8386 GB Notification: Performance of Transformations before backend: time 1.708e-05/1.229, allocations: 11.53 kB / 1.363 GB, free: 34.48 MB / 0.8386 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.000382/1.229, allocations: 441.9 kB / 1.364 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of prepare preOptimizeDAE: time 3.529e-05/1.229, allocations: 7.812 kB / 1.364 GB, free: 34.09 MB / 0.8386 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.094e-05/1.23, allocations: 44.81 kB / 1.364 GB, free: 34.05 MB / 0.8386 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.109e-05/1.23, allocations: 15.41 kB / 1.364 GB, free: 34.04 MB / 0.8386 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002187/1.23, allocations: 236.4 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.003e-05/1.23, allocations: 3.906 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.322e-05/1.23, allocations: 3.562 kB / 1.364 GB, free: 33.82 MB / 0.8386 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001597/1.23, allocations: 89.14 kB / 1.364 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.977e-06/1.23, allocations: 0 / 1.364 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.708e-05/1.23, allocations: 3.844 kB / 1.364 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.687e-06/1.23, allocations: 0 / 1.364 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.34e-05/1.23, allocations: 31.75 kB / 1.364 GB, free: 33.79 MB / 0.8386 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004831/1.231, allocations: 387.3 kB / 1.365 GB, free: 33.5 MB / 0.8386 GB Notification: Performance of preOpt comSubExp (simulation): time 4.715e-05/1.231, allocations: 32.81 kB / 1.365 GB, free: 33.48 MB / 0.8386 GB Notification: Performance of preOpt resolveLoops (simulation): time 2.715e-05/1.231, allocations: 20.41 kB / 1.365 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt evalFunc (simulation): time 1.575e-05/1.231, allocations: 3.828 kB / 1.365 GB, free: 33.46 MB / 0.8386 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001048/1.231, allocations: 84.58 kB / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of pre-optimization done (n=3): time 1.112e-06/1.231, allocations: 0 / 1.365 GB, free: 33.39 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3): time 0.0001313/1.231, allocations: 65.95 kB / 1.365 GB, free: 33.35 MB / 0.8386 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.626e-05/1.231, allocations: 77.11 kB / 1.365 GB, free: 33.26 MB / 0.8386 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001669/1.231, allocations: 222.1 kB / 1.365 GB, free: 33.16 MB / 0.8386 GB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/1.231, allocations: 28.33 kB / 1.365 GB, free: 33.12 MB / 0.8386 GB Notification: Performance of collectInitialEqns (initialization): time 4.605e-05/1.231, allocations: 127.8 kB / 1.365 GB, free: 33.04 MB / 0.8386 GB Notification: Performance of collectInitialBindings (initialization): time 1.441e-05/1.231, allocations: 11.09 kB / 1.365 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.536e-06/1.231, allocations: 0 / 1.365 GB, free: 33.03 MB / 0.8386 GB Notification: Performance of setup shared object (initialization): time 4.958e-05/1.231, allocations: 327.4 kB / 1.366 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of preBalanceInitialSystem (initialization): time 2.205e-05/1.231, allocations: 7.281 kB / 1.366 GB, free: 32.72 MB / 0.8386 GB Notification: Performance of partitionIndependentBlocks (initialization): time 2.836e-05/1.231, allocations: 41.09 kB / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of analyzeInitialSystem (initialization): time 2.678e-05/1.231, allocations: 14.25 kB / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-06/1.231, allocations: 0 / 1.366 GB, free: 32.68 MB / 0.8386 GB Notification: Performance of matching and sorting (n=3) (initialization): time 9.155e-05/1.232, allocations: 74.23 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of prepare postOptimizeDAE: time 1.225e-05/1.232, allocations: 6.578 kB / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.997e-06/1.232, allocations: 0 / 1.366 GB, free: 32.63 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/1.232, allocations: 8.031 kB / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001025/1.232, allocations: 14.53 kB / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.34e-06/1.232, allocations: 0 / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.535e-05/1.232, allocations: 17.17 kB / 1.366 GB, free: 32.62 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.985e-06/1.232, allocations: 0 / 1.366 GB, free: 32.62 MB / 0.8386 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 4.446e-05/1.232, allocations: 112 kB / 1.366 GB, free: 32.52 MB / 0.8386 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.271e-05/1.232, allocations: 23.48 kB / 1.366 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.79e-05/1.232, allocations: 15.31 kB / 1.366 GB, free: 32.5 MB / 0.8386 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.493e-06/1.232, allocations: 7.719 kB / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.118e-06/1.232, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.475e-06/1.232, allocations: 0 / 1.366 GB, free: 32.49 MB / 0.8386 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001106/1.232, allocations: 220.3 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/1.232, allocations: 0 / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.703e-05/1.232, allocations: 18.41 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/1.232, allocations: 2.766 kB / 1.366 GB, free: 32.3 MB / 0.8386 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.874e-06/1.232, allocations: 11.14 kB / 1.366 GB, free: 32.29 MB / 0.8386 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/1.232, allocations: 7.938 kB / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/1.232, allocations: 0 / 1.366 GB, free: 32.28 MB / 0.8386 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.706e-05/1.232, allocations: 92.84 kB / 1.366 GB, free: 32.21 MB / 0.8386 GB Notification: Performance of postOpt removeConstants (simulation): time 4.122e-05/1.232, allocations: 94.75 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.955e-05/1.232, allocations: 3.969 kB / 1.366 GB, free: 32.11 MB / 0.8386 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.515e-05/1.232, allocations: 18.39 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/1.232, allocations: 9.766 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.928e-05/1.233, allocations: 6.781 kB / 1.366 GB, free: 32.1 MB / 0.8386 GB Notification: Performance of sorting global known variables: time 0.0001197/1.233, allocations: 176.2 kB / 1.367 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of sort global known variables: time 1.8e-07/1.233, allocations: 0 / 1.367 GB, free: 32.02 MB / 0.8386 GB Notification: Performance of remove unused functions: time 0.0001937/1.233, allocations: 25.47 kB / 1.367 GB, free: 32.02 MB / 0.8386 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.0004082/1.233, allocations: 0.6569 MB / 1.367 GB, free: 31.41 MB / 0.8386 GB Notification: Performance of simCode: created initialization part: time 8.692e-05/1.233, allocations: 18.25 kB / 1.367 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/1.233, allocations: 3.812 kB / 1.367 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created simulation system equations: time 2.893e-05/1.233, allocations: 14.33 kB / 1.367 GB, free: 31.4 MB / 0.8386 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002026/1.234, allocations: 38.8 kB / 1.367 GB, free: 31.39 MB / 0.8386 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004165/1.234, allocations: 243.7 kB / 1.367 GB, free: 31.25 MB / 0.8386 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/1.234, allocations: 0.7206 MB / 1.368 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: alias equations: time 6.457e-05/1.234, allocations: 19.52 kB / 1.368 GB, free: 30.55 MB / 0.8386 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.048e-05/1.234, allocations: 43.88 kB / 1.368 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of SimCode: time 2.61e-07/1.234, allocations: 4 kB / 1.368 GB, free: 30.54 MB / 0.8386 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01289/1.247, allocations: 3.224 MB / 1.371 GB, free: 30.19 MB / 0.8386 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000127/1.247, allocations: 152.2 kB / 1.372 GB, free: 29.97 MB / 0.8386 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 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: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 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: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_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