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.001169/0.001169, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001245/0.001245, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.829/1.829, allocations: 205.4 MB / 222.1 MB, free: 5.648 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 1.797/1.797, allocations: 292.7 MB / 0.5499 GB, free: 14.58 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.0006/0.0006, allocations: 13.62 kB / 0.6738 GB, free: 26.11 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2745, allocations: 116.3 MB / 0.7874 GB, free: 11.88 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001951/0.2765, allocations: 1.336 MB / 0.7887 GB, free: 10.52 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0008232/0.2774, allocations: 0.5546 MB / 0.7892 GB, free: 9.961 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.246e-05/0.2775, allocations: 4 kB / 0.7893 GB, free: 9.957 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0001637/0.2776, allocations: 19.88 kB / 0.7893 GB, free: 9.938 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002183/0.2779, allocations: 55.73 kB / 0.7893 GB, free: 9.883 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.278, allocations: 51.92 kB / 0.7894 GB, free: 9.832 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001692/0.2782, allocations: 119.5 kB / 0.7895 GB, free: 9.715 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001321/0.2783, allocations: 37.47 kB / 0.7895 GB, free: 9.676 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001019/0.2784, allocations: 51.77 kB / 0.7896 GB, free: 9.625 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 9.656e-05/0.2785, allocations: 43.72 kB / 0.7896 GB, free: 9.582 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.876e-05/0.2786, allocations: 4 kB / 0.7896 GB, free: 9.578 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 5.085e-05/0.2786, allocations: 27.91 kB / 0.7896 GB, free: 9.551 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 6.725e-05/0.2787, allocations: 31.91 kB / 0.7897 GB, free: 9.52 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 3.779e-05/0.2787, allocations: 49.58 kB / 0.7897 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001358/0.2789, allocations: 100 kB / 0.7898 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2789, allocations: 0 / 0.7898 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.603e-06/0.2789, allocations: 0 / 0.7898 GB, free: 9.367 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.39e-06/0.2789, allocations: 0 / 0.7898 GB, free: 9.367 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.0005305/0.2795, allocations: 454.5 kB / 0.7902 GB, free: 8.875 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.636e-05/0.2795, allocations: 12.03 kB / 0.7903 GB, free: 8.863 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.041e-05/0.2795, allocations: 38.56 kB / 0.7903 GB, free: 8.816 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.029e-05/0.2796, allocations: 19.8 kB / 0.7903 GB, free: 8.797 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002463/0.2798, allocations: 227.6 kB / 0.7905 GB, free: 8.531 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.337e-05/0.2799, allocations: 4 kB / 0.7905 GB, free: 8.527 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.477e-05/0.2799, allocations: 4 kB / 0.7905 GB, free: 8.523 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002781/0.2802, allocations: 113.6 kB / 0.7906 GB, free: 8.406 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.993e-06/0.2802, allocations: 4 kB / 0.7907 GB, free: 8.402 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.455e-05/0.2802, allocations: 8 kB / 0.7907 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2802, allocations: 0 / 0.7907 GB, free: 8.395 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002218/0.2804, allocations: 75.88 kB / 0.7907 GB, free: 8.32 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005603/0.281, allocations: 392.5 kB / 0.7911 GB, free: 7.887 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001286/0.2812, allocations: 50.48 kB / 0.7912 GB, free: 7.828 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001044/0.2813, allocations: 40.84 kB / 0.7912 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.759e-05/0.2813, allocations: 0 / 0.7912 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002497/0.2816, allocations: 109.1 kB / 0.7913 GB, free: 7.66 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 2.605e-06/0.2816, allocations: 3.984 kB / 0.7913 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004112/0.282, allocations: 141.4 kB / 0.7914 GB, free: 7.512 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.712e-05/0.282, allocations: 77.11 kB / 0.7915 GB, free: 7.418 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002395/0.2823, allocations: 257 kB / 0.7918 GB, free: 7.152 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.2823, allocations: 29.7 kB / 0.7918 GB, free: 7.117 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 8.004e-05/0.2824, allocations: 132 kB / 0.7919 GB, free: 6.984 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.2824, allocations: 7.844 kB / 0.7919 GB, free: 6.977 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.969e-06/0.2824, allocations: 4 kB / 0.7919 GB, free: 6.973 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001103/0.2825, allocations: 326.8 kB / 0.7922 GB, free: 6.645 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001088/0.2827, allocations: 35.97 kB / 0.7923 GB, free: 6.609 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001152/0.2828, allocations: 51.41 kB / 0.7923 GB, free: 6.547 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001104/0.2829, allocations: 40 kB / 0.7924 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2829, allocations: 0 / 0.7924 GB, free: 6.508 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002581/0.2832, allocations: 117.4 kB / 0.7925 GB, free: 6.387 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.753e-05/0.2832, allocations: 15.92 kB / 0.7925 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.248e-06/0.2832, allocations: 0 / 0.7925 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.186e-05/0.2832, allocations: 0 / 0.7925 GB, free: 6.371 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001136/0.2834, allocations: 15.98 kB / 0.7925 GB, free: 6.355 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.86e-06/0.2834, allocations: 3.938 kB / 0.7925 GB, free: 6.352 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.803e-05/0.2835, allocations: 23.95 kB / 0.7925 GB, free: 6.328 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.794e-06/0.2835, allocations: 0 / 0.7925 GB, free: 6.328 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.0001065/0.2836, allocations: 129.8 kB / 0.7926 GB, free: 6.191 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.421e-05/0.2836, allocations: 19.77 kB / 0.7927 GB, free: 6.172 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.572e-05/0.2837, allocations: 13.25 kB / 0.7927 GB, free: 6.16 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.2837, allocations: 7.984 kB / 0.7927 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.178e-06/0.2837, allocations: 0 / 0.7927 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-06/0.2837, allocations: 0 / 0.7927 GB, free: 6.152 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001737/0.2839, allocations: 221.5 kB / 0.7929 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2839, allocations: 0 / 0.7929 GB, free: 5.887 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.155e-05/0.284, allocations: 15.98 kB / 0.7929 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.284, allocations: 0 / 0.7929 GB, free: 5.871 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.284, allocations: 7.953 kB / 0.7929 GB, free: 5.863 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.284, allocations: 4 kB / 0.7929 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.62e-07/0.284, allocations: 0 / 0.7929 GB, free: 5.859 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002685/0.2843, allocations: 136.8 kB / 0.7931 GB, free: 5.707 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.709e-05/0.2844, allocations: 96.91 kB / 0.7931 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.2844, allocations: 0 / 0.7931 GB, free: 5.594 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.31e-05/0.2845, allocations: 23.94 kB / 0.7932 GB, free: 5.57 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.735e-05/0.2845, allocations: 7.984 kB / 0.7932 GB, free: 5.562 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.179e-05/0.2846, allocations: 4 kB / 0.7932 GB, free: 5.559 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001705/0.2847, allocations: 188.5 kB / 0.7934 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of sort global known variables: time 1.774e-06/0.2847, allocations: 0 / 0.7934 GB, free: 5.379 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002258/0.285, allocations: 27.84 kB / 0.7934 GB, free: 5.352 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.0006867/0.2857, allocations: 0.6933 MB / 0.7941 GB, free: 4.637 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002728/0.286, allocations: 76 kB / 0.7941 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.286, allocations: 0 / 0.7941 GB, free: 4.562 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001105/0.2861, allocations: 39.91 kB / 0.7942 GB, free: 4.523 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003052/0.2864, allocations: 42.45 kB / 0.7942 GB, free: 4.488 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001478/0.2879, allocations: 0.926 MB / 0.7951 GB, free: 3.512 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002558/0.2882, allocations: 0.7199 MB / 0.7958 GB, free: 2.766 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 6.823e-05/0.2882, allocations: 24.47 kB / 0.7958 GB, free: 2.742 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.082e-05/0.2883, allocations: 47.41 kB / 0.7959 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of SimCode: time 2.4e-07/0.2883, allocations: 0 / 0.7959 GB, free: 2.695 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01513/0.3035, allocations: 3.196 MB / 0.799 GB, free: 15.64 MB / 0.6231 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002056/0.3037, allocations: 185.4 kB / 0.7992 GB, free: 15.4 MB / 0.6231 GB Error: Error building simulator. Build log: clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -Wno-parentheses-equality -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:144: ./gc/omc_gc.h:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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 -Wno-parentheses-equality -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:219:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:223: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