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.001234/0.001234, allocations: 99.55 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.001415/0.001415, 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.384/1.384, allocations: 223.2 MB / 239.9 MB, free: 5.359 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.998/0.998, allocations: 143.3 MB / 434.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003439/0.0003439, allocations: 8 kB / 0.5159 GB, free: 11.21 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1723/0.1726, allocations: 83.42 MB / 0.5974 GB, free: 7.734 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001909/0.1746, allocations: 1.319 MB / 0.5986 GB, free: 6.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0007768/0.1754, allocations: 0.507 MB / 0.5991 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 5.906e-05/0.1754, allocations: 0 / 0.5991 GB, free: 5.895 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.000153/0.1756, allocations: 23.84 kB / 0.5992 GB, free: 5.871 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002208/0.1758, allocations: 59.86 kB / 0.5992 GB, free: 5.812 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001234/0.176, allocations: 55.86 kB / 0.5993 GB, free: 5.758 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.1761, allocations: 87.77 kB / 0.5994 GB, free: 5.672 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001274/0.1763, allocations: 45.45 kB / 0.5994 GB, free: 5.625 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 9.604e-05/0.1764, allocations: 35.84 kB / 0.5994 GB, free: 5.59 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 7.591e-05/0.1764, allocations: 39.78 kB / 0.5995 GB, free: 5.551 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 1.831e-05/0.1765, allocations: 4 kB / 0.5995 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 4.183e-05/0.1765, allocations: 15.94 kB / 0.5995 GB, free: 5.531 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 6.618e-05/0.1766, allocations: 35.89 kB / 0.5995 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 3.16e-05/0.1766, allocations: 41.64 kB / 0.5996 GB, free: 5.449 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001437/0.1768, allocations: 115.9 kB / 0.5997 GB, free: 5.336 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 1.593e-06/0.1768, allocations: 3.938 kB / 0.5997 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.262e-06/0.1768, allocations: 0 / 0.5997 GB, free: 5.332 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.188e-06/0.1768, allocations: 0 / 0.5997 GB, free: 5.332 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.0005618/0.1774, allocations: 450.6 kB / 0.6001 GB, free: 4.844 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 4.04e-05/0.1774, allocations: 12.03 kB / 0.6001 GB, free: 4.832 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.698e-05/0.1775, allocations: 42.55 kB / 0.6002 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.118e-05/0.1775, allocations: 15.81 kB / 0.6002 GB, free: 4.766 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002552/0.1778, allocations: 227.6 kB / 0.6004 GB, free: 4.5 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.016e-05/0.1778, allocations: 8 kB / 0.6004 GB, free: 4.492 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.174e-05/0.1778, allocations: 4 kB / 0.6004 GB, free: 4.488 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00028/0.1781, allocations: 105.6 kB / 0.6005 GB, free: 4.379 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.005e-06/0.1781, allocations: 7.938 kB / 0.6005 GB, free: 4.371 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.695e-05/0.1781, allocations: 15.92 kB / 0.6005 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1782, allocations: 0 / 0.6005 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002397/0.1784, allocations: 79.94 kB / 0.6006 GB, free: 4.277 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005908/0.179, allocations: 396.4 kB / 0.601 GB, free: 3.84 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001422/0.1792, allocations: 58.44 kB / 0.601 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.139e-05/0.1792, allocations: 0 / 0.601 GB, free: 3.773 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002613/0.1794, allocations: 101.2 kB / 0.6011 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.052e-06/0.1795, allocations: 0 / 0.6011 GB, free: 3.656 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.000445/0.1799, allocations: 141.4 kB / 0.6013 GB, free: 3.512 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.614e-05/0.18, allocations: 85.05 kB / 0.6014 GB, free: 3.41 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002577/0.1802, allocations: 249 kB / 0.6016 GB, free: 3.16 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.308e-05/0.1803, allocations: 29.7 kB / 0.6016 GB, free: 3.125 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.812e-05/0.1804, allocations: 128 kB / 0.6017 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 2.252e-05/0.1804, allocations: 11.89 kB / 0.6018 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.549e-06/0.1804, allocations: 0 / 0.6018 GB, free: 2.984 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001171/0.1805, allocations: 326.8 kB / 0.6021 GB, free: 2.656 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1806, allocations: 31.97 kB / 0.6021 GB, free: 2.625 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001235/0.1808, allocations: 59.41 kB / 0.6022 GB, free: 2.555 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001235/0.1809, allocations: 27.98 kB / 0.6022 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.1809, allocations: 0 / 0.6022 GB, free: 2.527 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.000284/0.1812, allocations: 125.4 kB / 0.6023 GB, free: 2.398 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.1812, allocations: 4 kB / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.799e-06/0.1812, allocations: 96 / 0.6023 GB, free: 2.395 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.1813, allocations: 8 kB / 0.6023 GB, free: 2.387 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.1814, allocations: 11.98 kB / 0.6023 GB, free: 2.375 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.956e-06/0.1814, allocations: 15.92 kB / 0.6023 GB, free: 2.359 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.318e-05/0.1815, allocations: 15.91 kB / 0.6024 GB, free: 2.344 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.1815, allocations: 3.984 kB / 0.6024 GB, free: 2.34 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 0.0001035/0.1816, allocations: 129.8 kB / 0.6025 GB, free: 2.203 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.703e-05/0.1816, allocations: 23.75 kB / 0.6025 GB, free: 2.18 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.04e-05/0.1817, allocations: 13.25 kB / 0.6025 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.1817, allocations: 0 / 0.6025 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.617e-06/0.1817, allocations: 0 / 0.6025 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.547e-06/0.1817, allocations: 0 / 0.6025 GB, free: 2.164 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001704/0.1819, allocations: 221.5 kB / 0.6027 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.91e-07/0.1819, allocations: 0 / 0.6027 GB, free: 1.898 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.22e-05/0.182, allocations: 15.98 kB / 0.6027 GB, free: 1.883 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.182, allocations: 4 kB / 0.6027 GB, free: 1.879 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.072e-05/0.182, allocations: 7.953 kB / 0.6028 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.243e-06/0.182, allocations: 0 / 0.6028 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.182, allocations: 0 / 0.6028 GB, free: 1.871 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002886/0.1823, allocations: 140.8 kB / 0.6029 GB, free: 1.715 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.724e-05/0.1824, allocations: 104.8 kB / 0.603 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.168e-05/0.1824, allocations: 0 / 0.603 GB, free: 1.594 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.096e-05/0.1825, allocations: 15.94 kB / 0.603 GB, free: 1.578 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.151e-05/0.1826, allocations: 7.984 kB / 0.603 GB, free: 1.57 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.168e-05/0.1826, allocations: 4 kB / 0.603 GB, free: 1.566 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001716/0.1828, allocations: 192.5 kB / 0.6032 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.6e-07/0.1828, allocations: 0 / 0.6032 GB, free: 1.379 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002234/0.183, allocations: 23.91 kB / 0.6032 GB, free: 1.355 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.0006655/0.1837, allocations: 0.6941 MB / 0.6039 GB, free: 0.6406 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0002802/0.184, allocations: 71.88 kB / 0.604 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.184, allocations: 0 / 0.604 GB, free: 0.5703 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001184/0.1841, allocations: 40.16 kB / 0.604 GB, free: 0.5312 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002321/0.1843, allocations: 42.23 kB / 0.604 GB, free: 0.4922 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2827/0.4671, allocations: 1.203 MB / 0.6052 GB, free: 40.22 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003252/0.4675, allocations: 0.7224 MB / 0.6059 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0001693/0.4676, allocations: 20.12 kB / 0.6059 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.619e-05/0.4678, allocations: 43.72 kB / 0.606 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of SimCode: time 1.914e-06/0.4678, allocations: 0.9688 kB / 0.606 GB, free: 39.52 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01478/0.4825, allocations: 3.241 MB / 0.6092 GB, free: 39.34 MB / 0.4981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000141/0.4827, allocations: 181.7 kB / 0.6093 GB, free: 39.1 MB / 0.4981 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 -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: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 -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: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 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