Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IBPSA_latest_IBPSA.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/IBPSA 4.0.0-master/package.mo", uses=false) Using package IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="IBPSA_latest_IBPSA_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.001765/0.001765, allocations: 96.27 kB / 15.69 MB, free: 480 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002285/0.002285, allocations: 179.1 kB / 16.57 MB, free: 6.859 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.457/2.457, allocations: 223.2 MB / 240.5 MB, free: 5.449 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 1.208/1.208, allocations: 113.7 MB / 405.3 MB, free: 4.715 MB / 334.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0006369/0.0006371, allocations: 8 kB / 493 MB, free: 8.652 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3126/0.3133, allocations: 77.11 MB / 0.5567 GB, free: 11.74 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.00356/0.3169, allocations: 1.313 MB / 0.558 GB, free: 10.42 MB / 430.1 MB Notification: Performance of NFInst.instExpressions: time 0.001508/0.3185, allocations: 0.5031 MB / 0.5585 GB, free: 9.914 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001301/0.3187, allocations: 0 / 0.5585 GB, free: 9.914 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003124/0.319, allocations: 23.84 kB / 0.5585 GB, free: 9.891 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004289/0.3194, allocations: 63.86 kB / 0.5586 GB, free: 9.828 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000238/0.3197, allocations: 55.86 kB / 0.5586 GB, free: 9.773 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002594/0.32, allocations: 87.77 kB / 0.5587 GB, free: 9.688 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002549/0.3202, allocations: 37.45 kB / 0.5588 GB, free: 9.645 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001579/0.3204, allocations: 47.78 kB / 0.5588 GB, free: 9.598 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000166/0.3206, allocations: 47.7 kB / 0.5588 GB, free: 9.551 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 2.811e-05/0.3206, allocations: 4 kB / 0.5588 GB, free: 9.547 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.644e-05/0.3207, allocations: 8 kB / 0.5589 GB, free: 9.539 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001144/0.3208, allocations: 39.89 kB / 0.5589 GB, free: 9.5 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 6.472e-05/0.3209, allocations: 41.58 kB / 0.5589 GB, free: 9.453 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002525/0.3212, allocations: 104 kB / 0.559 GB, free: 9.352 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.727e-06/0.3212, allocations: 0 / 0.559 GB, free: 9.352 MB / 430.1 MB Notification: Performance of FrontEnd: time 2.234e-06/0.3212, allocations: 0 / 0.559 GB, free: 9.352 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.3212, allocations: 0 / 0.559 GB, free: 9.352 MB / 430.1 MB 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.0009479/0.3222, allocations: 454.6 kB / 0.5595 GB, free: 8.859 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.375e-05/0.3223, allocations: 8.031 kB / 0.5595 GB, free: 8.852 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.806e-05/0.3224, allocations: 42.55 kB / 0.5595 GB, free: 8.801 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.742e-05/0.3224, allocations: 19.72 kB / 0.5595 GB, free: 8.781 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004662/0.3229, allocations: 227.7 kB / 0.5597 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.709e-05/0.323, allocations: 0 / 0.5597 GB, free: 8.516 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.562e-05/0.323, allocations: 12 kB / 0.5598 GB, free: 8.504 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004737/0.3235, allocations: 109.6 kB / 0.5599 GB, free: 8.391 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.456e-05/0.3235, allocations: 0 / 0.5599 GB, free: 8.391 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.13e-05/0.3236, allocations: 8 kB / 0.5599 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.3236, allocations: 0 / 0.5599 GB, free: 8.383 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003699/0.324, allocations: 79.92 kB / 0.5599 GB, free: 8.305 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.3251, allocations: 400.4 kB / 0.5603 GB, free: 7.863 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002076/0.3254, allocations: 46.5 kB / 0.5604 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.173e-05/0.3254, allocations: 0 / 0.5604 GB, free: 7.809 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004196/0.3258, allocations: 109.1 kB / 0.5605 GB, free: 7.684 MB / 430.1 MB Notification: Performance of pre-optimization done (n=3): time 1.613e-06/0.3258, allocations: 0 / 0.5605 GB, free: 7.684 MB / 430.1 MB Notification: Performance of matching and sorting (n=3): time 0.0007213/0.3266, allocations: 149.4 kB / 0.5606 GB, free: 7.531 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001197/0.3267, allocations: 77.11 kB / 0.5607 GB, free: 7.438 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004108/0.3271, allocations: 253 kB / 0.5609 GB, free: 7.184 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.448e-05/0.3272, allocations: 33.7 kB / 0.561 GB, free: 7.145 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001545/0.3274, allocations: 128 kB / 0.5611 GB, free: 7.016 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.68e-05/0.3274, allocations: 7.891 kB / 0.5611 GB, free: 7.008 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.711e-06/0.3274, allocations: 0 / 0.5611 GB, free: 7.008 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0002367/0.3276, allocations: 334.8 kB / 0.5614 GB, free: 6.672 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001695/0.3278, allocations: 31.98 kB / 0.5614 GB, free: 6.641 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001837/0.328, allocations: 55.41 kB / 0.5615 GB, free: 6.574 MB / 430.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001892/0.3282, allocations: 36 kB / 0.5615 GB, free: 6.539 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.146e-06/0.3282, allocations: 0 / 0.5615 GB, free: 6.539 MB / 430.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0004552/0.3287, allocations: 117.4 kB / 0.5616 GB, free: 6.418 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.521e-05/0.3288, allocations: 4 kB / 0.5617 GB, free: 6.414 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.12e-05/0.3288, allocations: 4 kB / 0.5617 GB, free: 6.41 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.111e-05/0.3288, allocations: 3.938 kB / 0.5617 GB, free: 6.406 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001804/0.329, allocations: 23.92 kB / 0.5617 GB, free: 6.383 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.995e-06/0.329, allocations: 4.062 kB / 0.5617 GB, free: 6.379 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001423/0.3292, allocations: 15.98 kB / 0.5617 GB, free: 6.363 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.303e-05/0.3292, allocations: 0 / 0.5617 GB, free: 6.363 MB / 430.1 MB 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.0001893/0.3294, allocations: 129.8 kB / 0.5618 GB, free: 6.227 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.568e-05/0.3295, allocations: 23.72 kB / 0.5618 GB, free: 6.203 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.801e-05/0.3295, allocations: 17.23 kB / 0.5619 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.3295, allocations: 0 / 0.5619 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.3295, allocations: 0 / 0.5619 GB, free: 6.184 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.008e-06/0.3296, allocations: 8 kB / 0.5619 GB, free: 6.176 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003152/0.3299, allocations: 217.5 kB / 0.5621 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.3299, allocations: 0 / 0.5621 GB, free: 5.914 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001137/0.33, allocations: 15.98 kB / 0.5621 GB, free: 5.898 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.775e-06/0.33, allocations: 3.938 kB / 0.5621 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.177e-05/0.33, allocations: 0 / 0.5621 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.793e-06/0.3301, allocations: 0 / 0.5621 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.3301, allocations: 0 / 0.5621 GB, free: 5.895 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004629/0.3305, allocations: 144.8 kB / 0.5622 GB, free: 5.734 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000113/0.3307, allocations: 100.8 kB / 0.5623 GB, free: 5.617 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.886e-05/0.3307, allocations: 8 kB / 0.5623 GB, free: 5.609 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001251/0.3308, allocations: 11.98 kB / 0.5624 GB, free: 5.598 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.289e-05/0.331, allocations: 11.98 kB / 0.5624 GB, free: 5.586 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.71e-05/0.331, allocations: 4 kB / 0.5624 GB, free: 5.582 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002736/0.3313, allocations: 184.5 kB / 0.5625 GB, free: 5.402 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.3313, allocations: 4 kB / 0.5625 GB, free: 5.398 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0003914/0.3317, allocations: 20 kB / 0.5626 GB, free: 5.379 MB / 430.1 MB 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.001347/0.333, allocations: 0.7042 MB / 0.5633 GB, free: 4.656 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0004825/0.3335, allocations: 67.95 kB / 0.5633 GB, free: 4.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.877e-06/0.3336, allocations: 0 / 0.5633 GB, free: 4.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001849/0.3338, allocations: 35.97 kB / 0.5634 GB, free: 4.555 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000427/0.3342, allocations: 37.25 kB / 0.5634 GB, free: 4.52 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003008/0.3372, allocations: 1.212 MB / 0.5646 GB, free: 3.25 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008642/0.3381, allocations: 0.7277 MB / 0.5653 GB, free: 2.496 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0001189/0.3382, allocations: 12.55 kB / 0.5653 GB, free: 2.484 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001229/0.3384, allocations: 47.41 kB / 0.5653 GB, free: 2.438 MB / 430.1 MB Notification: Performance of SimCode: time 9.82e-07/0.3384, allocations: 0 / 0.5653 GB, free: 2.438 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2187/0.5571, allocations: 3.186 MB / 0.5685 GB, free: 15.41 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0004103/0.5577, allocations: 180.9 kB / 0.5686 GB, free: 15.16 MB / 446.1 MB 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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./IBPSA_latest_IBPSA_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/IBPSA 4.0.0-master/Resources/C-Sources" -c -o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./IBPSA_latest_IBPSA_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 IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: In file included from ./IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_includes.h:5: In file included from /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/Resources/C-Sources/jsonWriterInit.c:8: /home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.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: *** [: IBPSA_latest_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1