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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) 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) 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 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(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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001122/0.001122, allocations: 100.2 kB / 15.05 MB, free: 1.105 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001636/0.001636, allocations: 177.3 kB / 15.95 MB, free: 216 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.251/3.251, allocations: 205.4 MB / 222.1 MB, free: 5.664 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 3.281/3.281, allocations: 292.6 MB / 0.5497 GB, free: 14.62 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001022/0.001023, allocations: 15.34 kB / 0.6737 GB, free: 26.24 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5268/0.5278, allocations: 116.3 MB / 0.7872 GB, free: 11.86 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.00363/0.5316, allocations: 1.325 MB / 0.7885 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0017/0.5333, allocations: 0.5429 MB / 0.7891 GB, free: 9.973 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001278/0.5335, allocations: 4 kB / 0.7891 GB, free: 9.969 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.000306/0.5338, allocations: 27.78 kB / 0.7891 GB, free: 9.941 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0004304/0.5343, allocations: 55.84 kB / 0.7891 GB, free: 9.887 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002544/0.5345, allocations: 51.94 kB / 0.7892 GB, free: 9.836 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0002834/0.5348, allocations: 91.75 kB / 0.7893 GB, free: 9.746 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002499/0.5351, allocations: 37.47 kB / 0.7893 GB, free: 9.707 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000199/0.5353, allocations: 47.77 kB / 0.7894 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001591/0.5355, allocations: 47.77 kB / 0.7894 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.7e-05/0.5355, allocations: 0 / 0.7894 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 7.789e-05/0.5356, allocations: 11.94 kB / 0.7894 GB, free: 9.602 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.5358, allocations: 31.91 kB / 0.7894 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 6.681e-05/0.5358, allocations: 45.64 kB / 0.7895 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0002691/0.5361, allocations: 108 kB / 0.7896 GB, free: 9.414 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.09e-06/0.5361, allocations: 3.938 kB / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of FrontEnd: time 3.927e-06/0.5362, allocations: 0 / 0.7896 GB, free: 9.41 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 6.793e-06/0.5362, allocations: 0 / 0.7896 GB, free: 9.41 MB / 0.6075 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.00103/0.5372, allocations: 454.5 kB / 0.79 GB, free: 8.918 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 6.928e-05/0.5373, allocations: 12.03 kB / 0.79 GB, free: 8.906 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.186e-05/0.5374, allocations: 38.56 kB / 0.7901 GB, free: 8.859 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.969e-05/0.5375, allocations: 15.81 kB / 0.7901 GB, free: 8.844 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005352/0.538, allocations: 235.6 kB / 0.7903 GB, free: 8.57 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.37e-05/0.538, allocations: 4 kB / 0.7903 GB, free: 8.566 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 2.834e-05/0.5381, allocations: 4 kB / 0.7903 GB, free: 8.562 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004909/0.5386, allocations: 113.6 kB / 0.7904 GB, free: 8.445 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.348e-05/0.5386, allocations: 8 kB / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.93e-05/0.5386, allocations: 0 / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.756e-06/0.5387, allocations: 0 / 0.7904 GB, free: 8.438 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003944/0.5391, allocations: 75.94 kB / 0.7905 GB, free: 8.363 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009777/0.5401, allocations: 392.4 kB / 0.7909 GB, free: 7.93 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002376/0.5403, allocations: 50.55 kB / 0.7909 GB, free: 7.871 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 2.827e-05/0.5404, allocations: 7.891 kB / 0.7909 GB, free: 7.863 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004412/0.5408, allocations: 105.1 kB / 0.791 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.723e-05/0.5408, allocations: 0 / 0.791 GB, free: 7.742 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0008584/0.5417, allocations: 153.4 kB / 0.7912 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.159e-05/0.5418, allocations: 77.11 kB / 0.7913 GB, free: 7.492 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004946/0.5423, allocations: 253 kB / 0.7915 GB, free: 7.23 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 3.167e-05/0.5424, allocations: 25.7 kB / 0.7915 GB, free: 7.199 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001481/0.5425, allocations: 132 kB / 0.7917 GB, free: 7.066 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 3.325e-05/0.5426, allocations: 7.906 kB / 0.7917 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 6.342e-06/0.5426, allocations: 0 / 0.7917 GB, free: 7.059 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0002246/0.5428, allocations: 334.8 kB / 0.792 GB, free: 6.723 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001952/0.543, allocations: 27.97 kB / 0.792 GB, free: 6.695 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002335/0.5433, allocations: 63.44 kB / 0.7921 GB, free: 6.621 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002094/0.5435, allocations: 31.97 kB / 0.7921 GB, free: 6.59 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.5435, allocations: 4 kB / 0.7921 GB, free: 6.586 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004958/0.544, allocations: 121.4 kB / 0.7922 GB, free: 6.461 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 2.326e-05/0.5441, allocations: 4 kB / 0.7922 GB, free: 6.457 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.09e-05/0.5441, allocations: 4.094 kB / 0.7922 GB, free: 6.453 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.926e-05/0.5441, allocations: 4 kB / 0.7922 GB, free: 6.449 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001903/0.5443, allocations: 15.98 kB / 0.7922 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.228e-05/0.5444, allocations: 0 / 0.7922 GB, free: 6.434 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001596/0.5445, allocations: 23.83 kB / 0.7923 GB, free: 6.41 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.431e-05/0.5446, allocations: 0 / 0.7923 GB, free: 6.41 MB / 0.6075 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.0002005/0.5448, allocations: 133.8 kB / 0.7924 GB, free: 6.27 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.57e-05/0.5449, allocations: 19.77 kB / 0.7924 GB, free: 6.25 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.9e-05/0.5449, allocations: 17.23 kB / 0.7924 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.5449, allocations: 0 / 0.7924 GB, free: 6.234 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.255e-06/0.545, allocations: 4 kB / 0.7924 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.909e-06/0.545, allocations: 0 / 0.7924 GB, free: 6.23 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003501/0.5453, allocations: 221.5 kB / 0.7926 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.5453, allocations: 0 / 0.7926 GB, free: 5.965 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.5455, allocations: 15.98 kB / 0.7927 GB, free: 5.949 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.5455, allocations: 4 kB / 0.7927 GB, free: 5.945 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.025e-05/0.5455, allocations: 3.953 kB / 0.7927 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.5455, allocations: 0 / 0.7927 GB, free: 5.941 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/0.5456, allocations: 3.984 kB / 0.7927 GB, free: 5.938 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004947/0.5461, allocations: 140.8 kB / 0.7928 GB, free: 5.781 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000158/0.5462, allocations: 96.91 kB / 0.7929 GB, free: 5.668 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.913e-05/0.5463, allocations: 3.938 kB / 0.7929 GB, free: 5.664 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.5464, allocations: 19.94 kB / 0.7929 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.779e-05/0.5465, allocations: 0 / 0.7929 GB, free: 5.645 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.779e-05/0.5466, allocations: 8 kB / 0.7929 GB, free: 5.637 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0003425/0.5469, allocations: 196.5 kB / 0.7931 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.61e-07/0.547, allocations: 0 / 0.7931 GB, free: 5.449 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0004353/0.5474, allocations: 19.91 kB / 0.7931 GB, free: 5.43 MB / 0.6075 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.001366/0.5488, allocations: 0.6851 MB / 0.7938 GB, free: 4.719 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0005092/0.5493, allocations: 76.06 kB / 0.7939 GB, free: 4.645 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.5493, allocations: 4 kB / 0.7939 GB, free: 4.641 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001967/0.5496, allocations: 36.14 kB / 0.7939 GB, free: 4.605 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004328/0.55, allocations: 49.55 kB / 0.794 GB, free: 4.566 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003136/0.5531, allocations: 1.208 MB / 0.7951 GB, free: 3.305 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000977/0.5542, allocations: 0.7238 MB / 0.7958 GB, free: 2.555 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.0001902/0.5544, allocations: 20.53 kB / 0.7959 GB, free: 2.535 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001681/0.5546, allocations: 43.42 kB / 0.7959 GB, free: 2.492 MB / 0.6075 GB Notification: Performance of SimCode: time 2.986e-06/0.5546, allocations: 3.938 kB / 0.7959 GB, free: 2.488 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03847/0.5931, allocations: 3.176 MB / 0.799 GB, free: 15.45 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003955/0.5936, allocations: 176.8 kB / 0.7992 GB, free: 15.21 MB / 0.6231 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: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/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: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 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