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.001091/0.001091, allocations: 92 kB / 15.06 MB, free: 1.098 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.001449/0.001449, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.306/1.306, allocations: 223.3 MB / 240 MB, free: 5.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.0.0-master/package.mo): time 2.39/2.39, allocations: 409.4 MB / 0.684 GB, free: 0.9609 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.0003162/0.0003163, allocations: 8 kB / 0.8378 GB, free: 6.504 MB / 0.6856 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5441/0.5444, allocations: 146.8 MB / 0.9811 GB, free: 6.25 MB / 0.7325 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001705/0.5461, allocations: 1.323 MB / 0.9824 GB, free: 4.922 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.0007266/0.5469, allocations: 0.5147 MB / 0.9829 GB, free: 4.398 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 7.671e-05/0.547, allocations: 7.938 kB / 0.9829 GB, free: 4.391 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0001502/0.5471, allocations: 27.84 kB / 0.983 GB, free: 4.363 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.0002131/0.5473, allocations: 51.7 kB / 0.983 GB, free: 4.312 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001286/0.5475, allocations: 59.86 kB / 0.9831 GB, free: 4.254 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.0001578/0.5476, allocations: 119.5 kB / 0.9832 GB, free: 4.137 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.5478, allocations: 37.47 kB / 0.9832 GB, free: 4.098 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 9.751e-05/0.5479, allocations: 47.83 kB / 0.9833 GB, free: 4.051 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 9.49e-05/0.548, allocations: 47.7 kB / 0.9833 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 2.063e-05/0.548, allocations: 4 kB / 0.9833 GB, free: 4 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 4.464e-05/0.5481, allocations: 12 kB / 0.9833 GB, free: 3.988 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 7.03e-05/0.5482, allocations: 39.83 kB / 0.9834 GB, free: 3.949 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 3.625e-05/0.5482, allocations: 45.64 kB / 0.9834 GB, free: 3.898 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.5483, allocations: 94.06 kB / 0.9835 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.5484, allocations: 0 / 0.9835 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of FrontEnd: time 1.433e-06/0.5484, allocations: 0 / 0.9835 GB, free: 3.809 MB / 0.7325 GB Notification: Performance of Transformations before backend: time 4.067e-06/0.5484, allocations: 4 kB / 0.9835 GB, free: 3.805 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.0005288/0.5489, allocations: 462.5 kB / 0.9839 GB, free: 3.305 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.5489, allocations: 8.031 kB / 0.984 GB, free: 3.297 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.121e-05/0.549, allocations: 42.55 kB / 0.984 GB, free: 3.246 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.801e-05/0.549, allocations: 15.81 kB / 0.984 GB, free: 3.23 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002256/0.5493, allocations: 231.7 kB / 0.9842 GB, free: 2.961 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.838e-06/0.5493, allocations: 4 kB / 0.9842 GB, free: 2.957 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.368e-05/0.5493, allocations: 4 kB / 0.9842 GB, free: 2.953 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000271/0.5496, allocations: 116.2 kB / 0.9843 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.893e-06/0.5496, allocations: 0 / 0.9843 GB, free: 2.836 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.285e-05/0.5496, allocations: 8 kB / 0.9844 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.917e-06/0.5496, allocations: 0 / 0.9844 GB, free: 2.828 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002291/0.5499, allocations: 79.92 kB / 0.9844 GB, free: 2.75 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005341/0.5504, allocations: 392.5 kB / 0.9848 GB, free: 2.316 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001279/0.5506, allocations: 42.55 kB / 0.9848 GB, free: 2.266 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.5507, allocations: 40.89 kB / 0.9849 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 1.508e-05/0.5507, allocations: 0 / 0.9849 GB, free: 2.223 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002327/0.5509, allocations: 117 kB / 0.985 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=3): time 1.092e-06/0.5509, allocations: 0 / 0.985 GB, free: 2.09 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3): time 0.0004022/0.5513, allocations: 137.4 kB / 0.9851 GB, free: 1.949 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.872e-05/0.5514, allocations: 77.11 kB / 0.9852 GB, free: 1.855 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002399/0.5516, allocations: 264.8 kB / 0.9855 GB, free: 1.59 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 1.733e-05/0.5517, allocations: 29.7 kB / 0.9855 GB, free: 1.555 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 7.234e-05/0.5517, allocations: 124.1 kB / 0.9856 GB, free: 1.43 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 1.398e-05/0.5518, allocations: 7.906 kB / 0.9856 GB, free: 1.422 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.17e-06/0.5518, allocations: 4 kB / 0.9856 GB, free: 1.418 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 9.849e-05/0.5519, allocations: 326.8 kB / 0.9859 GB, free: 1.09 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001162/0.552, allocations: 35.91 kB / 0.986 GB, free: 1.055 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001156/0.5521, allocations: 63.34 kB / 0.986 GB, free: 0.9805 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001209/0.5523, allocations: 40 kB / 0.9861 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.204e-06/0.5523, allocations: 0 / 0.9861 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002655/0.5525, allocations: 113.4 kB / 0.9862 GB, free: 0.8242 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.285e-05/0.5526, allocations: 12.09 kB / 0.9862 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.747e-06/0.5526, allocations: 0 / 0.9862 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.5526, allocations: 0 / 0.9862 GB, free: 0.8125 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001036/0.5527, allocations: 15.98 kB / 0.9862 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.459e-06/0.5527, allocations: 0 / 0.9862 GB, free: 0.7969 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.968e-05/0.5528, allocations: 23.83 kB / 0.9862 GB, free: 0.7734 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.956e-06/0.5528, allocations: 3.953 kB / 0.9862 GB, free: 0.7695 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 9.286e-05/0.5529, allocations: 133.8 kB / 0.9863 GB, free: 0.6289 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.553, allocations: 15.81 kB / 0.9864 GB, free: 0.6133 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.068e-05/0.553, allocations: 17.23 kB / 0.9864 GB, free: 0.6016 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.402e-06/0.553, allocations: 7.938 kB / 0.9864 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.553, allocations: 0 / 0.9864 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.553, allocations: 0 / 0.9864 GB, free: 0.5938 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001515/0.5532, allocations: 213.5 kB / 0.9866 GB, free: 344 kB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.01e-07/0.5532, allocations: 0 / 0.9866 GB, free: 344 kB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.438e-05/0.5533, allocations: 23.98 kB / 0.9866 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.5533, allocations: 0 / 0.9866 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.163e-06/0.5533, allocations: 0 / 0.9866 GB, free: 320 kB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.765e-06/0.5533, allocations: 4 kB / 0.9866 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.5533, allocations: 0 / 0.9866 GB, free: 316 kB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002697/0.5536, allocations: 149 kB / 0.9868 GB, free: 148 kB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 5.501e-05/0.5536, allocations: 96.83 kB / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.136e-05/0.5537, allocations: 0 / 0.9869 GB, free: 32 kB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.5538, allocations: 15.98 kB / 0.9869 GB, free: 16 kB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.371e-05/0.5538, allocations: 11.98 kB / 0.9869 GB, free: 4 kB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.303e-05/0.5538, allocations: 4 kB / 0.9869 GB, free: 0 / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000173/0.554, allocations: 192.4 kB / 0.9871 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.31e-07/0.554, allocations: 0 / 0.9871 GB, free: 15.81 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0002262/0.5543, allocations: 20 kB / 0.9871 GB, free: 15.79 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.0006139/0.5549, allocations: 0.6944 MB / 0.9878 GB, free: 15.07 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.0002637/0.5552, allocations: 75.88 kB / 0.9878 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.5552, allocations: 4.188 kB / 0.9878 GB, free: 14.99 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0001089/0.5553, allocations: 31.97 kB / 0.9879 GB, free: 14.96 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002658/0.5556, allocations: 37.94 kB / 0.9879 GB, free: 14.92 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001404/0.557, allocations: 0.9294 MB / 0.9888 GB, free: 13.94 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002421/0.5572, allocations: 0.7199 MB / 0.9895 GB, free: 13.19 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 6.219e-05/0.5573, allocations: 16.48 kB / 0.9895 GB, free: 13.18 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.281e-05/0.5574, allocations: 47.41 kB / 0.9896 GB, free: 13.13 MB / 0.7481 GB Notification: Performance of SimCode: time 2.4e-07/0.5574, allocations: 4 kB / 0.9896 GB, free: 13.12 MB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01261/0.57, allocations: 3.218 MB / 0.9927 GB, free: 10.07 MB / 0.7481 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001451/0.5702, allocations: 183.5 kB / 0.9929 GB, free: 9.828 MB / 0.7481 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 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: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 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: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_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