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/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 9.1.1-maint.9.1.x/package.mo", uses=false) 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008462/0.0008462, allocations: 84.38 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.000956/0.0009559, 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 4.0.0+maint.om/package.mo): time 1.299/1.299, allocations: 223.3 MB / 240 MB, free: 5.398 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.348/2.348, allocations: 390.4 MB / 0.6655 GB, free: 2.938 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003016/0.0003016, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.606/0.6064, allocations: 142.3 MB / 0.9538 GB, free: 8.078 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001747/0.6081, allocations: 1.329 MB / 0.9551 GB, free: 7.031 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0008168/0.609, allocations: 0.5184 MB / 0.9556 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.852e-05/0.6091, allocations: 2.281 kB / 0.9556 GB, free: 6.617 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.6093, allocations: 20.27 kB / 0.9557 GB, free: 6.602 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0002376/0.6095, allocations: 60.23 kB / 0.9557 GB, free: 6.559 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001599/0.6097, allocations: 52.41 kB / 0.9558 GB, free: 6.523 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001791/0.6099, allocations: 117.6 kB / 0.9559 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001466/0.61, allocations: 35.69 kB / 0.9559 GB, free: 6.43 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000118/0.6102, allocations: 47 kB / 0.956 GB, free: 6.402 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001021/0.6103, allocations: 48.17 kB / 0.956 GB, free: 6.371 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 2.354e-05/0.6103, allocations: 8.062 kB / 0.956 GB, free: 6.367 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 5.682e-05/0.6104, allocations: 13.66 kB / 0.956 GB, free: 6.363 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 7.308e-05/0.6105, allocations: 34.58 kB / 0.9561 GB, free: 6.344 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.236e-05/0.6105, allocations: 48.08 kB / 0.9561 GB, free: 6.297 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001396/0.6106, allocations: 96.03 kB / 0.9562 GB, free: 6.234 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.979e-06/0.6107, allocations: 4 kB / 0.9562 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.332e-06/0.6107, allocations: 0 / 0.9562 GB, free: 6.23 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 6.262e-06/0.6107, allocations: 1.25 kB / 0.9562 GB, free: 6.23 MB / 0.7169 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.0005194/0.6112, allocations: 448.8 kB / 0.9566 GB, free: 5.793 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.6112, allocations: 14.2 kB / 0.9567 GB, free: 5.789 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.43e-05/0.6113, allocations: 36.72 kB / 0.9567 GB, free: 5.746 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.055e-05/0.6114, allocations: 19.98 kB / 0.9567 GB, free: 5.734 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002386/0.6116, allocations: 228.8 kB / 0.9569 GB, free: 5.488 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.298e-05/0.6116, allocations: 7.562 kB / 0.9569 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.269e-05/0.6116, allocations: 3.312 kB / 0.9569 GB, free: 5.484 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002863/0.6119, allocations: 122.4 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.008e-05/0.612, allocations: 0.9375 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.393e-05/0.612, allocations: 1.344 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.601e-06/0.612, allocations: 1.219 kB / 0.9571 GB, free: 5.406 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002277/0.6122, allocations: 84.7 kB / 0.9571 GB, free: 5.371 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005462/0.6128, allocations: 394.7 kB / 0.9575 GB, free: 5 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001333/0.6129, allocations: 51.7 kB / 0.9576 GB, free: 4.961 MB / 0.7169 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001054/0.613, allocations: 41.69 kB / 0.9576 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.558e-05/0.6131, allocations: 0 / 0.9576 GB, free: 4.938 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002423/0.6133, allocations: 105 kB / 0.9577 GB, free: 4.848 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.122e-06/0.6133, allocations: 4 kB / 0.9577 GB, free: 4.844 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004223/0.6137, allocations: 143.5 kB / 0.9578 GB, free: 4.766 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.862e-05/0.6138, allocations: 78.52 kB / 0.9579 GB, free: 4.672 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002521/0.614, allocations: 259.2 kB / 0.9582 GB, free: 4.492 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.402e-05/0.6141, allocations: 25.7 kB / 0.9582 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 5.931e-05/0.6141, allocations: 125.1 kB / 0.9583 GB, free: 4.344 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.514e-05/0.6141, allocations: 5.625 kB / 0.9583 GB, free: 4.34 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.6142, allocations: 4 kB / 0.9583 GB, free: 4.336 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 5.848e-05/0.6142, allocations: 330.5 kB / 0.9586 GB, free: 4.008 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000106/0.6143, allocations: 31.83 kB / 0.9587 GB, free: 3.996 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001063/0.6144, allocations: 58.78 kB / 0.9587 GB, free: 3.949 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001074/0.6146, allocations: 37.06 kB / 0.9588 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.6146, allocations: 0 / 0.9588 GB, free: 3.934 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002603/0.6148, allocations: 119.9 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.6149, allocations: 5.5 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.6149, allocations: 1.344 kB / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.247e-05/0.6149, allocations: 0 / 0.9589 GB, free: 3.863 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001097/0.615, allocations: 24.86 kB / 0.9589 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.922e-06/0.615, allocations: 0 / 0.9589 GB, free: 3.852 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.131e-05/0.6151, allocations: 23.14 kB / 0.9589 GB, free: 3.84 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.458e-06/0.6151, allocations: 1.375 kB / 0.9589 GB, free: 3.84 MB / 0.7169 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 8.531e-05/0.6152, allocations: 132.7 kB / 0.959 GB, free: 3.711 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.488e-05/0.6153, allocations: 15.44 kB / 0.9591 GB, free: 3.703 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.511e-05/0.6153, allocations: 27.02 kB / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.6153, allocations: 1.312 kB / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.6153, allocations: 0 / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.685e-06/0.6153, allocations: 0 / 0.9591 GB, free: 3.688 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000128/0.6155, allocations: 216.2 kB / 0.9593 GB, free: 3.453 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.6155, allocations: 3.984 kB / 0.9593 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.982e-05/0.6155, allocations: 10.78 kB / 0.9593 GB, free: 3.449 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.6156, allocations: 5.453 kB / 0.9593 GB, free: 3.445 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.126e-06/0.6156, allocations: 8 kB / 0.9593 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.6156, allocations: 0 / 0.9593 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.234e-06/0.6156, allocations: 0.9375 kB / 0.9593 GB, free: 3.438 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002558/0.6158, allocations: 142 kB / 0.9595 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.592e-05/0.6159, allocations: 96.77 kB / 0.9596 GB, free: 3.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.487e-05/0.6159, allocations: 4.875 kB / 0.9596 GB, free: 3.219 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.039e-05/0.616, allocations: 13.92 kB / 0.9596 GB, free: 3.215 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.855e-05/0.6161, allocations: 6.625 kB / 0.9596 GB, free: 3.211 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.311e-05/0.6161, allocations: 12.27 kB / 0.9596 GB, free: 3.203 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001444/0.6162, allocations: 189.8 kB / 0.9598 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.2e-07/0.6162, allocations: 1.062 kB / 0.9598 GB, free: 3.078 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002299/0.6165, allocations: 24.8 kB / 0.9598 GB, free: 3.07 MB / 0.7169 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.0005121/0.617, allocations: 0.6978 MB / 0.9605 GB, free: 2.422 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002531/0.6173, allocations: 64.64 kB / 0.9605 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.6173, allocations: 1.062 kB / 0.9605 GB, free: 2.402 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.000109/0.6174, allocations: 38.75 kB / 0.9606 GB, free: 2.387 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.6177, allocations: 41.5 kB / 0.9606 GB, free: 2.367 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001296/0.619, allocations: 0.9348 MB / 0.9615 GB, free: 1.691 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001286/0.6191, allocations: 0.7174 MB / 0.9622 GB, free: 0.9766 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.42e-05/0.6192, allocations: 17.77 kB / 0.9622 GB, free: 0.9688 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.049e-05/0.6192, allocations: 42.45 kB / 0.9623 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of SimCode: time 2.51e-07/0.6193, allocations: 0 / 0.9623 GB, free: 0.9336 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01287/0.6321, allocations: 3.219 MB / 0.9654 GB, free: 15.4 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000149/0.6323, allocations: 185.2 kB / 0.9656 GB, free: 15.16 MB / 0.7325 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 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: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 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: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_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