Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildSysPro_BuildSysPro.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/BuildSysPro 3.5.0-master/package.mo", uses=false) Using package BuildSysPro with version 3.5.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.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(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter,fileNamePrefix="BuildSysPro_BuildSysPro_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.0007992/0.0007993, allocations: 91.84 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.0009402/0.0009402, 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.37/1.37, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 1.043/1.043, allocations: 143.4 MB / 434.4 MB, free: 13.68 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003003/0.0003003, allocations: 12 kB / 0.5161 GB, free: 11.18 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1928/0.1931, allocations: 83.42 MB / 0.5975 GB, free: 7.699 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001756/0.1949, allocations: 1.323 MB / 0.5988 GB, free: 6.363 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007039/0.1956, allocations: 0.5031 MB / 0.5993 GB, free: 5.855 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 6.113e-05/0.1957, allocations: 4 kB / 0.5993 GB, free: 5.852 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001596/0.1959, allocations: 23.84 kB / 0.5994 GB, free: 5.828 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.000211/0.1961, allocations: 51.75 kB / 0.5994 GB, free: 5.777 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001238/0.1962, allocations: 59.92 kB / 0.5995 GB, free: 5.719 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001647/0.1964, allocations: 115.5 kB / 0.5996 GB, free: 5.605 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001295/0.1965, allocations: 37.42 kB / 0.5996 GB, free: 5.566 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001074/0.1966, allocations: 47.77 kB / 0.5997 GB, free: 5.52 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 9.213e-05/0.1967, allocations: 47.78 kB / 0.5997 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.047e-05/0.1968, allocations: 0 / 0.5997 GB, free: 5.473 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.598e-05/0.1968, allocations: 19.92 kB / 0.5997 GB, free: 5.453 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.174e-05/0.1969, allocations: 39.89 kB / 0.5998 GB, free: 5.414 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.379e-05/0.1969, allocations: 41.58 kB / 0.5998 GB, free: 5.367 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001315/0.1971, allocations: 108 kB / 0.5999 GB, free: 5.262 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 5.32e-06/0.1971, allocations: 4 kB / 0.5999 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.643e-06/0.1971, allocations: 0 / 0.5999 GB, free: 5.258 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 3.617e-06/0.1971, allocations: 0 / 0.5999 GB, free: 5.258 MB / 0.4981 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.0005048/0.1976, allocations: 454.5 kB / 0.6003 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.216e-05/0.1977, allocations: 8.031 kB / 0.6003 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.861e-05/0.1977, allocations: 42.56 kB / 0.6004 GB, free: 4.707 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.663e-05/0.1978, allocations: 19.8 kB / 0.6004 GB, free: 4.688 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002133/0.198, allocations: 227.6 kB / 0.6006 GB, free: 4.422 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.181e-05/0.198, allocations: 8 kB / 0.6006 GB, free: 4.414 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.293e-05/0.198, allocations: 11.94 kB / 0.6006 GB, free: 4.402 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002408/0.1983, allocations: 105.6 kB / 0.6007 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.013e-06/0.1983, allocations: 0 / 0.6007 GB, free: 4.293 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.557e-05/0.1983, allocations: 8 kB / 0.6007 GB, free: 4.285 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.4e-06/0.1983, allocations: 4 kB / 0.6008 GB, free: 4.281 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002064/0.1985, allocations: 75.92 kB / 0.6008 GB, free: 4.207 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005057/0.199, allocations: 400.4 kB / 0.6012 GB, free: 3.766 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001229/0.1992, allocations: 46.5 kB / 0.6012 GB, free: 3.711 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 9.897e-05/0.1993, allocations: 40.84 kB / 0.6013 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.42e-05/0.1993, allocations: 0 / 0.6013 GB, free: 3.668 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000234/0.1995, allocations: 113.1 kB / 0.6014 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.022e-06/0.1995, allocations: 0 / 0.6014 GB, free: 3.539 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0003777/0.1999, allocations: 137.4 kB / 0.6015 GB, free: 3.398 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.753e-05/0.2, allocations: 85.09 kB / 0.6016 GB, free: 3.297 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002224/0.2002, allocations: 245 kB / 0.6018 GB, free: 3.051 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.2002, allocations: 33.7 kB / 0.6019 GB, free: 3.012 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 7.346e-05/0.2003, allocations: 136 kB / 0.602 GB, free: 2.875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.247e-05/0.2003, allocations: 3.906 kB / 0.602 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.06e-06/0.2004, allocations: 0 / 0.602 GB, free: 2.871 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 9.322e-05/0.2004, allocations: 330.8 kB / 0.6023 GB, free: 2.539 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 9.853e-05/0.2006, allocations: 31.97 kB / 0.6024 GB, free: 2.508 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001186/0.2007, allocations: 59.41 kB / 0.6024 GB, free: 2.438 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001055/0.2008, allocations: 36 kB / 0.6024 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.764e-06/0.2008, allocations: 0 / 0.6024 GB, free: 2.402 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002508/0.2011, allocations: 125.4 kB / 0.6026 GB, free: 2.273 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.185e-05/0.2011, allocations: 4 kB / 0.6026 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.797e-06/0.2011, allocations: 0 / 0.6026 GB, free: 2.27 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.188e-05/0.2011, allocations: 4 kB / 0.6026 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.616e-05/0.2012, allocations: 15.92 kB / 0.6026 GB, free: 2.25 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.911e-06/0.2012, allocations: 4 kB / 0.6026 GB, free: 2.246 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.211e-05/0.2013, allocations: 19.95 kB / 0.6026 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.378e-06/0.2013, allocations: 4 kB / 0.6026 GB, free: 2.223 MB / 0.4981 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.189e-05/0.2014, allocations: 125.8 kB / 0.6027 GB, free: 2.09 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.34e-05/0.2014, allocations: 19.77 kB / 0.6028 GB, free: 2.07 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.245e-05/0.2015, allocations: 21.23 kB / 0.6028 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.473e-06/0.2015, allocations: 0 / 0.6028 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.976e-06/0.2015, allocations: 0 / 0.6028 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.164e-06/0.2015, allocations: 0 / 0.6028 GB, free: 2.047 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001437/0.2017, allocations: 213.6 kB / 0.603 GB, free: 1.789 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.032e-06/0.2017, allocations: 4 kB / 0.603 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.723e-05/0.2017, allocations: 15.98 kB / 0.603 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.724e-06/0.2018, allocations: 0 / 0.603 GB, free: 1.77 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.115e-06/0.2018, allocations: 7.891 kB / 0.603 GB, free: 1.762 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-06/0.2018, allocations: 3.984 kB / 0.603 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.41e-07/0.2018, allocations: 0 / 0.603 GB, free: 1.758 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002585/0.202, allocations: 145.1 kB / 0.6031 GB, free: 1.598 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 5.355e-05/0.2021, allocations: 96.86 kB / 0.6032 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.032e-05/0.2021, allocations: 7.984 kB / 0.6032 GB, free: 1.477 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.915e-05/0.2022, allocations: 19.94 kB / 0.6033 GB, free: 1.457 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.492e-05/0.2023, allocations: 8 kB / 0.6033 GB, free: 1.449 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.902e-05/0.2023, allocations: 4 kB / 0.6033 GB, free: 1.445 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001455/0.2024, allocations: 184.5 kB / 0.6035 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.3e-07/0.2024, allocations: 0 / 0.6035 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002106/0.2027, allocations: 27.91 kB / 0.6035 GB, free: 1.238 MB / 0.4981 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.0005753/0.2032, allocations: 0.6934 MB / 0.6042 GB, free: 0.5234 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002464/0.2035, allocations: 72 kB / 0.6042 GB, free: 464 kB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2035, allocations: 0 / 0.6042 GB, free: 464 kB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001065/0.2036, allocations: 39.91 kB / 0.6043 GB, free: 424 kB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002465/0.2039, allocations: 43.64 kB / 0.6043 GB, free: 384 kB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2894/0.4933, allocations: 0.9165 MB / 0.6052 GB, free: 40.42 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001498/0.4935, allocations: 0.7183 MB / 0.6059 GB, free: 39.73 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 9.681e-05/0.4936, allocations: 22.89 kB / 0.6059 GB, free: 39.73 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.59e-05/0.4937, allocations: 42.91 kB / 0.606 GB, free: 39.72 MB / 0.4981 GB Notification: Performance of SimCode: time 7.92e-07/0.4937, allocations: 0 / 0.606 GB, free: 39.72 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01303/0.5067, allocations: 3.258 MB / 0.6091 GB, free: 39.55 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001325/0.5069, allocations: 191.1 kB / 0.6093 GB, free: 39.31 MB / 0.4981 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 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter.c:7: In file included from ./BuildSysPro_BuildSysPro_IBPSA_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 -c -o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c In file included from BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:2: In file included from ./BuildSysPro_BuildSysPro_IBPSA_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 BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.c:7: ./BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_includes.h:4:11: fatal error: 'jsonWriterFree.c' file not found #include ^~~~~~~~~~~~~~~~~~ 2 warnings and 1 error generated. make: *** [: BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter_functions.o] Error 1