Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo", uses=false) Using package Buildings with version 10.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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 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_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="Buildings_latest_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.00128/0.00128, 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.001448/0.001448, 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 4.0.0+maint.om/package.mo): time 2.314/2.314, allocations: 223.2 MB / 239.9 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 4.071/4.071, allocations: 409.2 MB / 0.6838 GB, free: 0.9414 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0006089/0.0006089, allocations: 12 kB / 0.8375 GB, free: 6.566 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 1.245/1.246, allocations: 146.8 MB / 0.9809 GB, free: 6.32 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003008/1.249, allocations: 1.323 MB / 0.9822 GB, free: 4.992 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.001222/1.25, allocations: 0.507 MB / 0.9827 GB, free: 4.48 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000106/1.25, allocations: 7.938 kB / 0.9827 GB, free: 4.473 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0002208/1.25, allocations: 19.91 kB / 0.9827 GB, free: 4.453 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0003464/1.251, allocations: 59.84 kB / 0.9827 GB, free: 4.395 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0002158/1.251, allocations: 55.81 kB / 0.9828 GB, free: 4.34 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0002533/1.251, allocations: 87.81 kB / 0.9829 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0002097/1.251, allocations: 37.47 kB / 0.9829 GB, free: 4.215 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001613/1.252, allocations: 51.77 kB / 0.983 GB, free: 4.164 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001303/1.252, allocations: 43.77 kB / 0.983 GB, free: 4.121 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.752e-05/1.252, allocations: 4 kB / 0.983 GB, free: 4.117 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 7.043e-05/1.252, allocations: 8 kB / 0.983 GB, free: 4.109 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.0001003/1.252, allocations: 35.84 kB / 0.983 GB, free: 4.074 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 6.346e-05/1.252, allocations: 49.58 kB / 0.9831 GB, free: 4.02 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.000247/1.252, allocations: 102 kB / 0.9832 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 3.227e-06/1.252, allocations: 0 / 0.9832 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of FrontEnd: time 2.454e-06/1.252, allocations: 0 / 0.9832 GB, free: 3.922 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.879e-06/1.252, allocations: 0 / 0.9832 GB, free: 3.922 MB / 0.7325 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.0008908/1.253, allocations: 459.6 kB / 0.9836 GB, free: 3.426 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 6.088e-05/1.253, allocations: 12.03 kB / 0.9836 GB, free: 3.414 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.68e-05/1.253, allocations: 34.56 kB / 0.9837 GB, free: 3.371 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.111e-05/1.253, allocations: 15.81 kB / 0.9837 GB, free: 3.355 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003909/1.254, allocations: 231.6 kB / 0.9839 GB, free: 3.086 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.548e-05/1.254, allocations: 4 kB / 0.9839 GB, free: 3.082 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.945e-05/1.254, allocations: 4 kB / 0.9839 GB, free: 3.078 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004249/1.254, allocations: 125.6 kB / 0.984 GB, free: 2.949 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/1.254, allocations: 3.938 kB / 0.984 GB, free: 2.945 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.306e-05/1.254, allocations: 7.984 kB / 0.984 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.153e-06/1.254, allocations: 0 / 0.984 GB, free: 2.938 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003777/1.255, allocations: 79.94 kB / 0.9841 GB, free: 2.859 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008441/1.256, allocations: 380.5 kB / 0.9845 GB, free: 2.438 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002121/1.256, allocations: 54.48 kB / 0.9845 GB, free: 2.375 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.786e-05/1.256, allocations: 4.062 kB / 0.9845 GB, free: 2.371 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003929/1.256, allocations: 105.1 kB / 0.9846 GB, free: 2.25 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.443e-06/1.256, allocations: 4 kB / 0.9846 GB, free: 2.246 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.000663/1.257, allocations: 141.4 kB / 0.9848 GB, free: 2.102 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.664e-05/1.257, allocations: 77.11 kB / 0.9849 GB, free: 2.008 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/1.258, allocations: 256.9 kB / 0.9851 GB, free: 1.75 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 3.223e-05/1.258, allocations: 29.7 kB / 0.9851 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.000108/1.258, allocations: 124.1 kB / 0.9852 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 2.514e-05/1.258, allocations: 7.906 kB / 0.9853 GB, free: 1.582 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.871e-06/1.258, allocations: 4 kB / 0.9853 GB, free: 1.578 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001615/1.258, allocations: 330.8 kB / 0.9856 GB, free: 1.246 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/1.258, allocations: 31.97 kB / 0.9856 GB, free: 1.215 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001818/1.258, allocations: 55.41 kB / 0.9857 GB, free: 1.148 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001718/1.258, allocations: 39.91 kB / 0.9857 GB, free: 1.109 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.457e-06/1.258, allocations: 4.031 kB / 0.9857 GB, free: 1.105 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004343/1.259, allocations: 113.4 kB / 0.9858 GB, free: 0.9883 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.783e-05/1.259, allocations: 13.19 kB / 0.9858 GB, free: 0.9766 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.426e-06/1.259, allocations: 4 kB / 0.9858 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.967e-05/1.259, allocations: 0 / 0.9858 GB, free: 0.9727 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/1.259, allocations: 19.92 kB / 0.9858 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.285e-06/1.259, allocations: 0 / 0.9858 GB, free: 0.9531 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001514/1.259, allocations: 23.83 kB / 0.9859 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/1.259, allocations: 0 / 0.9859 GB, free: 0.9297 MB / 0.7325 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.0001604/1.26, allocations: 137.8 kB / 0.986 GB, free: 0.7852 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.613e-05/1.26, allocations: 15.81 kB / 0.986 GB, free: 0.7695 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.171e-05/1.26, allocations: 21.23 kB / 0.986 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/1.26, allocations: 0 / 0.986 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.491e-06/1.26, allocations: 0 / 0.986 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.707e-06/1.26, allocations: 0 / 0.986 GB, free: 0.7539 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002581/1.26, allocations: 217.5 kB / 0.9862 GB, free: 0.4922 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/1.26, allocations: 4 kB / 0.9862 GB, free: 500 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001216/1.26, allocations: 19.92 kB / 0.9863 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.534e-06/1.26, allocations: 0 / 0.9863 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/1.26, allocations: 0 / 0.9863 GB, free: 480 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/1.26, allocations: 7.984 kB / 0.9863 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/1.26, allocations: 0 / 0.9863 GB, free: 472 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004422/1.261, allocations: 141.1 kB / 0.9864 GB, free: 312 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 8.685e-05/1.261, allocations: 100.8 kB / 0.9865 GB, free: 192 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.642e-05/1.261, allocations: 0 / 0.9865 GB, free: 192 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000135/1.261, allocations: 15.98 kB / 0.9865 GB, free: 176 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.414e-05/1.261, allocations: 8 kB / 0.9865 GB, free: 168 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.497e-05/1.261, allocations: 7.938 kB / 0.9865 GB, free: 160 kB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.0002903/1.261, allocations: 188.5 kB / 0.9867 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of sort global known variables: time 2e-07/1.261, allocations: 0 / 0.9867 GB, free: 15.97 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0004152/1.262, allocations: 20 kB / 0.9867 GB, free: 15.95 MB / 0.7481 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.001055/1.263, allocations: 0.6932 MB / 0.9874 GB, free: 15.23 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.000419/1.263, allocations: 71.94 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.079e-05/1.263, allocations: 4.188 kB / 0.9875 GB, free: 15.16 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001847/1.264, allocations: 39.91 kB / 0.9875 GB, free: 15.12 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003794/1.264, allocations: 33.94 kB / 0.9875 GB, free: 15.09 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002453/1.266, allocations: 1.223 MB / 0.9887 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/1.267, allocations: 0.7199 MB / 0.9894 GB, free: 13.06 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.000114/1.267, allocations: 20.55 kB / 0.9895 GB, free: 13.04 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001131/1.267, allocations: 39.42 kB / 0.9895 GB, free: 13 MB / 0.7481 GB Notification: Performance of SimCode: time 3.41e-07/1.267, allocations: 0 / 0.9895 GB, free: 13 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02152/1.289, allocations: 3.199 MB / 0.9926 GB, free: 9.949 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002741/1.289, allocations: 189.6 kB / 0.9928 GB, free: 9.703 MB / 0.7481 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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./Buildings_latest_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 10.0.0-master/Resources/C-Sources" -c -o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./Buildings_latest_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_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./Buildings_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/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_latest_Buildings_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1