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/Complex 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) 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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 IBPSA with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.00144/0.001439, allocations: 182 kB / 15.76 MB, free: 6.363 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IBPSA 4.0.0-master/package.mo): time 0.4978/0.4978, allocations: 91.98 MB / 108.5 MB, free: 13.07 MB / 90.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.621/1.621, allocations: 223.1 MB / 354.3 MB, free: 12.21 MB / 282.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001058/0.001058, allocations: 108.2 kB / 427.4 MB, free: 3.945 MB / 346.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003784/0.0003784, allocations: 8 kB / 0.4983 GB, free: 42.22 MB / 362.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1575/0.1579, allocations: 72.31 MB / 0.5689 GB, free: 1.844 MB / 394.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4887/0.6466, allocations: 103.5 MB / 0.67 GB, free: 0.9844 MB / 458.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002794/0.647, allocations: 79.95 kB / 0.67 GB, free: 0.9062 MB / 458.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01014/0.6571, allocations: 3.339 MB / 0.6733 GB, free: 13.58 MB / 474.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.6572, allocations: 0 / 0.6733 GB, free: 13.58 MB / 474.7 MB Notification: Performance of Transformations before backend: time 2.563e-05/0.6572, allocations: 4 kB / 0.6733 GB, free: 13.57 MB / 474.7 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.0007439/0.658, allocations: 467.1 kB / 0.6737 GB, free: 13.07 MB / 474.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.258e-05/0.658, allocations: 12.03 kB / 0.6738 GB, free: 13.06 MB / 474.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.211e-05/0.6581, allocations: 46.53 kB / 0.6738 GB, free: 13 MB / 474.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.287e-05/0.6582, allocations: 23.77 kB / 0.6738 GB, free: 12.98 MB / 474.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003366/0.6585, allocations: 227.6 kB / 0.674 GB, free: 12.71 MB / 474.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.393e-05/0.6586, allocations: 8 kB / 0.6741 GB, free: 12.71 MB / 474.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.475e-05/0.6586, allocations: 0 / 0.6741 GB, free: 12.71 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003015/0.6589, allocations: 105.6 kB / 0.6742 GB, free: 12.6 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.092e-05/0.6589, allocations: 3.938 kB / 0.6742 GB, free: 12.59 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.98e-05/0.659, allocations: 15.92 kB / 0.6742 GB, free: 12.58 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.659, allocations: 3.953 kB / 0.6742 GB, free: 12.57 MB / 474.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002457/0.6592, allocations: 79.94 kB / 0.6743 GB, free: 12.5 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.6599, allocations: 400.4 kB / 0.6746 GB, free: 12.05 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001621/0.6601, allocations: 54.48 kB / 0.6747 GB, free: 11.99 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.995e-05/0.6601, allocations: 0 / 0.6747 GB, free: 11.99 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002604/0.6604, allocations: 102.3 kB / 0.6748 GB, free: 11.88 MB / 474.7 MB Notification: Performance of pre-optimization done (n=3): time 1.523e-06/0.6604, allocations: 0 / 0.6748 GB, free: 11.88 MB / 474.7 MB Notification: Performance of matching and sorting (n=3): time 0.000508/0.6609, allocations: 149.4 kB / 0.6749 GB, free: 11.72 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.065e-05/0.661, allocations: 77.11 kB / 0.675 GB, free: 11.63 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002827/0.6613, allocations: 224.2 kB / 0.6752 GB, free: 11.4 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 2.258e-05/0.6613, allocations: 25.7 kB / 0.6752 GB, free: 11.37 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.809e-05/0.6614, allocations: 124 kB / 0.6754 GB, free: 11.25 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.891e-05/0.6614, allocations: 15.83 kB / 0.6754 GB, free: 11.23 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.499e-06/0.6615, allocations: 0 / 0.6754 GB, free: 11.23 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001216/0.6616, allocations: 330.8 kB / 0.6757 GB, free: 10.9 MB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001166/0.6617, allocations: 31.97 kB / 0.6757 GB, free: 10.87 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001249/0.6618, allocations: 55.41 kB / 0.6758 GB, free: 10.8 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001185/0.662, allocations: 35.94 kB / 0.6758 GB, free: 10.77 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.662, allocations: 0 / 0.6758 GB, free: 10.77 MB / 474.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002982/0.6623, allocations: 117.4 kB / 0.6759 GB, free: 10.64 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.6623, allocations: 8 kB / 0.6759 GB, free: 10.64 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.546e-06/0.6623, allocations: 8.078 kB / 0.6759 GB, free: 10.63 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.408e-05/0.6623, allocations: 3.938 kB / 0.6759 GB, free: 10.62 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001167/0.6625, allocations: 16.27 kB / 0.676 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.6625, allocations: 0 / 0.676 GB, free: 10.61 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001/0.6626, allocations: 19.89 kB / 0.676 GB, free: 10.59 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.697e-06/0.6626, allocations: 0 / 0.676 GB, free: 10.59 MB / 474.7 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.0001291/0.6627, allocations: 140.2 kB / 0.6761 GB, free: 10.45 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.436e-05/0.6628, allocations: 19.8 kB / 0.6761 GB, free: 10.43 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.6628, allocations: 17.25 kB / 0.6761 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.215e-06/0.6628, allocations: 0 / 0.6761 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.6628, allocations: 0 / 0.6761 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.6629, allocations: 3.984 kB / 0.6761 GB, free: 10.41 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001882/0.663, allocations: 217.5 kB / 0.6764 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.6631, allocations: 3.953 kB / 0.6764 GB, free: 10.14 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.592e-05/0.6631, allocations: 11.98 kB / 0.6764 GB, free: 10.13 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.666e-06/0.6632, allocations: 4 kB / 0.6764 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.155e-06/0.6632, allocations: 4 kB / 0.6764 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.753e-06/0.6632, allocations: 0 / 0.6764 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.996e-06/0.6632, allocations: 3.984 kB / 0.6764 GB, free: 10.12 MB / 474.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003239/0.6635, allocations: 144.8 kB / 0.6765 GB, free: 9.957 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.44e-05/0.6636, allocations: 100.9 kB / 0.6766 GB, free: 9.84 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.321e-05/0.6636, allocations: 0 / 0.6766 GB, free: 9.84 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.41e-05/0.6637, allocations: 15.98 kB / 0.6766 GB, free: 9.824 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.445e-05/0.6638, allocations: 4 kB / 0.6766 GB, free: 9.82 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.671e-05/0.6638, allocations: 11.98 kB / 0.6766 GB, free: 9.809 MB / 474.7 MB Notification: Performance of sorting global known variables: time 0.0001771/0.664, allocations: 180.5 kB / 0.6768 GB, free: 9.633 MB / 474.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.664, allocations: 0 / 0.6768 GB, free: 9.633 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.0002217/0.6642, allocations: 27.84 kB / 0.6768 GB, free: 9.605 MB / 474.7 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.000702/0.665, allocations: 0.6926 MB / 0.6775 GB, free: 8.883 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.0002861/0.6653, allocations: 67.94 kB / 0.6776 GB, free: 8.816 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 2.525e-06/0.6653, allocations: 0 / 0.6776 GB, free: 8.816 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000118/0.6654, allocations: 44.09 kB / 0.6776 GB, free: 8.773 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002618/0.6657, allocations: 40.39 kB / 0.6777 GB, free: 8.738 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001683/0.6674, allocations: 1.22 MB / 0.6789 GB, free: 7.457 MB / 474.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.6677, allocations: 0.7238 MB / 0.6796 GB, free: 6.707 MB / 474.7 MB Notification: Performance of simCode: alias equations: time 8.019e-05/0.6678, allocations: 20.48 kB / 0.6796 GB, free: 6.688 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.467e-05/0.6679, allocations: 51.41 kB / 0.6796 GB, free: 6.637 MB / 474.7 MB Notification: Performance of SimCode: time 4.71e-07/0.6679, allocations: 0 / 0.6796 GB, free: 6.637 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01537/0.6833, allocations: 3.23 MB / 0.6828 GB, free: 3.531 MB / 474.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003187/0.6836, allocations: 177.5 kB / 0.683 GB, free: 3.289 MB / 474.7 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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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:222:28: warning: expression result unused [-Wunused-value] GC_register_displacement(0); ^ ./gc/omc_gc.h:226: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