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.001275/0.001275, allocations: 99.7 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.001496/0.001496, 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 1.315/1.315, allocations: 223.2 MB / 239.9 MB, free: 5.445 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.247/2.247, allocations: 390.3 MB / 0.6653 GB, free: 3.008 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0004058/0.0004061, allocations: 8 kB / 0.8146 GB, free: 14.22 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6108/0.6112, allocations: 142.3 MB / 0.9536 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.001472/0.6127, allocations: 1.315 MB / 0.9549 GB, free: 7.113 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.0006156/0.6133, allocations: 0.5076 MB / 0.9554 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.148e-05/0.6134, allocations: 2.625 kB / 0.9554 GB, free: 6.711 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.6136, allocations: 27.09 kB / 0.9554 GB, free: 6.688 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0001881/0.6138, allocations: 57.28 kB / 0.9555 GB, free: 6.648 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001104/0.6139, allocations: 52.25 kB / 0.9555 GB, free: 6.613 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0001383/0.614, allocations: 94.53 kB / 0.9556 GB, free: 6.551 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000118/0.6141, allocations: 36.33 kB / 0.9556 GB, free: 6.527 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 8.813e-05/0.6142, allocations: 41.14 kB / 0.9557 GB, free: 6.504 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 7.43e-05/0.6143, allocations: 47.48 kB / 0.9557 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 1.767e-05/0.6143, allocations: 3.562 kB / 0.9557 GB, free: 6.473 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 4.452e-05/0.6144, allocations: 11.97 kB / 0.9557 GB, free: 6.469 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 5.877e-05/0.6145, allocations: 30.28 kB / 0.9558 GB, free: 6.453 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 3.014e-05/0.6145, allocations: 47.39 kB / 0.9558 GB, free: 6.406 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0001167/0.6146, allocations: 108.1 kB / 0.9559 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.6146, allocations: 0 / 0.9559 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.703e-06/0.6146, allocations: 1.156 kB / 0.9559 GB, free: 6.332 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 3.807e-06/0.6146, allocations: 0 / 0.9559 GB, free: 6.332 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.0004614/0.6151, allocations: 449.4 kB / 0.9563 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of prepare preOptimizeDAE: time 3.389e-05/0.6151, allocations: 12.56 kB / 0.9563 GB, free: 5.891 MB / 0.7169 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.385e-05/0.6152, allocations: 37.78 kB / 0.9564 GB, free: 5.848 MB / 0.7169 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.702e-05/0.6152, allocations: 24.61 kB / 0.9564 GB, free: 5.832 MB / 0.7169 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001976/0.6154, allocations: 229.2 kB / 0.9566 GB, free: 5.586 MB / 0.7169 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.154e-06/0.6155, allocations: 6.469 kB / 0.9566 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.397e-05/0.6155, allocations: 3.469 kB / 0.9566 GB, free: 5.582 MB / 0.7169 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002535/0.6157, allocations: 114.8 kB / 0.9567 GB, free: 5.512 MB / 0.7169 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.472e-06/0.6157, allocations: 4 kB / 0.9568 GB, free: 5.508 MB / 0.7169 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.187e-05/0.6158, allocations: 5.062 kB / 0.9568 GB, free: 5.504 MB / 0.7169 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.6158, allocations: 6.578 kB / 0.9568 GB, free: 5.5 MB / 0.7169 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002504/0.616, allocations: 84.33 kB / 0.9568 GB, free: 5.465 MB / 0.7169 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004725/0.6165, allocations: 382.7 kB / 0.9572 GB, free: 5.105 MB / 0.7169 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001314/0.6167, allocations: 51.17 kB / 0.9573 GB, free: 5.066 MB / 0.7169 GB Notification: Performance of preOpt evalFunc (simulation): time 1.26e-05/0.6167, allocations: 5.438 kB / 0.9573 GB, free: 5.062 MB / 0.7169 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002257/0.6169, allocations: 104.6 kB / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of pre-optimization done (n=3): time 1.173e-06/0.6169, allocations: 0 / 0.9574 GB, free: 4.973 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3): time 0.0004061/0.6173, allocations: 136.2 kB / 0.9575 GB, free: 4.902 MB / 0.7169 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.874e-05/0.6174, allocations: 85.03 kB / 0.9576 GB, free: 4.801 MB / 0.7169 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002029/0.6176, allocations: 259.5 kB / 0.9578 GB, free: 4.621 MB / 0.7169 GB Notification: Performance of collectPreVariables (initialization): time 1.154e-05/0.6176, allocations: 25.7 kB / 0.9578 GB, free: 4.59 MB / 0.7169 GB Notification: Performance of collectInitialEqns (initialization): time 4.945e-05/0.6176, allocations: 128.6 kB / 0.958 GB, free: 4.469 MB / 0.7169 GB Notification: Performance of collectInitialBindings (initialization): time 1.267e-05/0.6177, allocations: 5.656 kB / 0.958 GB, free: 4.465 MB / 0.7169 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.458e-06/0.6177, allocations: 8 kB / 0.958 GB, free: 4.457 MB / 0.7169 GB Notification: Performance of setup shared object (initialization): time 4.579e-05/0.6177, allocations: 324.3 kB / 0.9583 GB, free: 4.137 MB / 0.7169 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000117/0.6178, allocations: 31.59 kB / 0.9583 GB, free: 4.125 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001165/0.618, allocations: 58.38 kB / 0.9584 GB, free: 4.078 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.000114/0.6181, allocations: 37.14 kB / 0.9584 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.834e-06/0.6181, allocations: 0 / 0.9584 GB, free: 4.062 MB / 0.7169 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002661/0.6184, allocations: 118.8 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 1.08e-05/0.6184, allocations: 5.406 kB / 0.9585 GB, free: 3.992 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.967e-06/0.6184, allocations: 5.906 kB / 0.9585 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.094e-05/0.6184, allocations: 2.094 kB / 0.9585 GB, free: 3.988 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001047/0.6185, allocations: 17.98 kB / 0.9586 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.899e-06/0.6185, allocations: 1.312 kB / 0.9586 GB, free: 3.98 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.378e-05/0.6186, allocations: 22.02 kB / 0.9586 GB, free: 3.969 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.6187, allocations: 2.562 kB / 0.9586 GB, free: 3.969 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 7.239e-05/0.6187, allocations: 136.3 kB / 0.9587 GB, free: 3.836 MB / 0.7169 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.342e-05/0.6188, allocations: 16.06 kB / 0.9587 GB, free: 3.828 MB / 0.7169 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.89e-05/0.6188, allocations: 18.73 kB / 0.9587 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.973e-06/0.6188, allocations: 0 / 0.9587 GB, free: 3.82 MB / 0.7169 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.367e-06/0.6188, allocations: 5.312 kB / 0.9587 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.054e-06/0.6188, allocations: 0 / 0.9587 GB, free: 3.816 MB / 0.7169 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001241/0.6189, allocations: 215.7 kB / 0.959 GB, free: 3.582 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.619, allocations: 3.953 kB / 0.959 GB, free: 3.578 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.544e-05/0.619, allocations: 18.98 kB / 0.959 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.703e-06/0.6191, allocations: 0 / 0.959 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.003e-06/0.6191, allocations: 1.375 kB / 0.959 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.6191, allocations: 0 / 0.959 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.82e-07/0.6191, allocations: 0 / 0.959 GB, free: 3.57 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002678/0.6193, allocations: 150.7 kB / 0.9591 GB, free: 3.457 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 3.531e-05/0.6194, allocations: 93 kB / 0.9592 GB, free: 3.352 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.365e-05/0.6194, allocations: 9.359 kB / 0.9592 GB, free: 3.344 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.786e-05/0.6195, allocations: 13.61 kB / 0.9592 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.448e-05/0.6196, allocations: 2.75 kB / 0.9592 GB, free: 3.34 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.979e-05/0.6196, allocations: 12.12 kB / 0.9592 GB, free: 3.332 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.0001331/0.6197, allocations: 189.4 kB / 0.9594 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of sort global known variables: time 1.4e-07/0.6197, allocations: 1.219 kB / 0.9594 GB, free: 3.207 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.0002215/0.62, allocations: 25.12 kB / 0.9594 GB, free: 3.199 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.0005298/0.6205, allocations: 0.6954 MB / 0.9601 GB, free: 2.555 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.0002734/0.6208, allocations: 69.28 kB / 0.9602 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 2.424e-06/0.6208, allocations: 192 / 0.9602 GB, free: 2.531 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.0001213/0.6209, allocations: 39.25 kB / 0.9602 GB, free: 2.516 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002289/0.6211, allocations: 34.09 kB / 0.9603 GB, free: 2.5 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001325/0.6225, allocations: 1.227 MB / 0.9615 GB, free: 1.523 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001338/0.6226, allocations: 0.7254 MB / 0.9622 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 6.469e-05/0.6227, allocations: 14.58 kB / 0.9622 GB, free: 0.7969 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.921e-05/0.6228, allocations: 46.3 kB / 0.9622 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of SimCode: time 2.31e-07/0.6228, allocations: 0 / 0.9622 GB, free: 0.7578 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01235/0.6351, allocations: 3.189 MB / 0.9653 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001596/0.6353, allocations: 177.8 kB / 0.9655 GB, free: 15.01 MB / 0.7325 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 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: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 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: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_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