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: translateModel(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000881/0.000881, allocations: 100.6 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.000935/0.0009352, allocations: 177.3 kB / 15.94 MB, free: 228 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.294/1.294, allocations: 223.2 MB / 239.9 MB, free: 5.293 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildSysPro 3.5.0-master/package.mo): time 0.9579/0.9579, allocations: 143.3 MB / 434.3 MB, free: 13.67 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003084/0.0003085, allocations: 8 kB / 0.5158 GB, free: 11.25 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.17/0.1703, allocations: 83.4 MB / 0.5973 GB, free: 7.789 MB / 0.4981 GB Notification: Performance of NFInst.instantiate(BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter): time 0.001869/0.1722, allocations: 1.323 MB / 0.5986 GB, free: 6.457 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.0008564/0.1731, allocations: 0.4953 MB / 0.5991 GB, free: 5.957 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001167/0.1733, allocations: 4 kB / 0.5991 GB, free: 5.953 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.0001666/0.1734, allocations: 27.84 kB / 0.5991 GB, free: 5.926 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0002596/0.1737, allocations: 59.84 kB / 0.5991 GB, free: 5.867 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001682/0.1739, allocations: 51.88 kB / 0.5992 GB, free: 5.816 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.000197/0.1741, allocations: 91.81 kB / 0.5993 GB, free: 5.727 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001503/0.1742, allocations: 37.47 kB / 0.5993 GB, free: 5.688 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001227/0.1744, allocations: 47.77 kB / 0.5994 GB, free: 5.641 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0001009/0.1745, allocations: 39.78 kB / 0.5994 GB, free: 5.602 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 2.313e-05/0.1745, allocations: 4 kB / 0.5994 GB, free: 5.598 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 5.722e-05/0.1746, allocations: 15.98 kB / 0.5994 GB, free: 5.582 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 7.019e-05/0.1747, allocations: 35.83 kB / 0.5994 GB, free: 5.547 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 4.193e-05/0.1747, allocations: 45.64 kB / 0.5995 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0001658/0.1749, allocations: 104 kB / 0.5996 GB, free: 5.395 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.454e-06/0.1749, allocations: 3.938 kB / 0.5996 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.492e-06/0.1749, allocations: 0 / 0.5996 GB, free: 5.391 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 4.969e-06/0.1749, allocations: 0 / 0.5996 GB, free: 5.391 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.0006686/0.1756, allocations: 458.5 kB / 0.6 GB, free: 4.895 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.557e-05/0.1756, allocations: 12.03 kB / 0.6 GB, free: 4.883 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.532e-05/0.1757, allocations: 15.81 kB / 0.6001 GB, free: 4.867 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002785/0.176, allocations: 227.7 kB / 0.6003 GB, free: 4.602 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.289e-05/0.176, allocations: 8 kB / 0.6003 GB, free: 4.594 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.445e-05/0.176, allocations: 8 kB / 0.6003 GB, free: 4.586 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.1763, allocations: 113.6 kB / 0.6004 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.947e-06/0.1763, allocations: 0 / 0.6004 GB, free: 4.469 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.204e-05/0.1764, allocations: 7.984 kB / 0.6004 GB, free: 4.461 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.1764, allocations: 7.875 kB / 0.6004 GB, free: 4.453 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002431/0.1766, allocations: 79.94 kB / 0.6005 GB, free: 4.375 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006123/0.1773, allocations: 396.4 kB / 0.6009 GB, free: 3.938 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000143/0.1774, allocations: 46.55 kB / 0.6009 GB, free: 3.883 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 1.687e-05/0.1774, allocations: 3.953 kB / 0.6009 GB, free: 3.879 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002559/0.1777, allocations: 105.1 kB / 0.601 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=3): time 1.272e-06/0.1777, allocations: 0 / 0.601 GB, free: 3.758 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3): time 0.0004795/0.1782, allocations: 145.4 kB / 0.6012 GB, free: 3.609 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.382e-05/0.1783, allocations: 77.11 kB / 0.6012 GB, free: 3.516 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002673/0.1785, allocations: 253 kB / 0.6015 GB, free: 3.262 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.048e-05/0.1786, allocations: 29.7 kB / 0.6015 GB, free: 3.227 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 8.128e-05/0.1786, allocations: 132 kB / 0.6016 GB, free: 3.094 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 1.99e-05/0.1787, allocations: 11.88 kB / 0.6016 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.348e-06/0.1787, allocations: 0 / 0.6016 GB, free: 3.082 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001357/0.1788, allocations: 326.8 kB / 0.6019 GB, free: 2.754 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001198/0.1789, allocations: 31.97 kB / 0.602 GB, free: 2.723 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.1791, allocations: 63.34 kB / 0.602 GB, free: 2.648 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001145/0.1793, allocations: 28.02 kB / 0.6021 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.1793, allocations: 0 / 0.6021 GB, free: 2.621 MB / 0.4981 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002964/0.1796, allocations: 125.4 kB / 0.6022 GB, free: 2.492 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.645e-05/0.1796, allocations: 6.188 kB / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.1796, allocations: 0 / 0.6022 GB, free: 2.488 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.719e-05/0.1796, allocations: 7.984 kB / 0.6022 GB, free: 2.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001189/0.1797, allocations: 15.98 kB / 0.6022 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.041e-06/0.1798, allocations: 0 / 0.6022 GB, free: 2.465 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.811e-05/0.1799, allocations: 23.97 kB / 0.6022 GB, free: 2.441 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.035e-05/0.1799, allocations: 3.984 kB / 0.6022 GB, free: 2.438 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.0001001/0.18, allocations: 123.9 kB / 0.6024 GB, free: 2.309 MB / 0.4981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.782e-05/0.18, allocations: 23.75 kB / 0.6024 GB, free: 2.285 MB / 0.4981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.786e-05/0.1801, allocations: 17.25 kB / 0.6024 GB, free: 2.266 MB / 0.4981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.204e-06/0.1801, allocations: 3.938 kB / 0.6024 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.188e-06/0.1801, allocations: 0 / 0.6024 GB, free: 2.262 MB / 0.4981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.294e-06/0.1801, allocations: 4 kB / 0.6024 GB, free: 2.258 MB / 0.4981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001791/0.1803, allocations: 217.6 kB / 0.6026 GB, free: 1.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.864e-06/0.1803, allocations: 3.938 kB / 0.6026 GB, free: 1.992 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.468e-05/0.1804, allocations: 15.98 kB / 0.6026 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 3.176e-06/0.1804, allocations: 0 / 0.6026 GB, free: 1.977 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.217e-06/0.1804, allocations: 3.953 kB / 0.6026 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.1804, allocations: 0 / 0.6026 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.41e-07/0.1804, allocations: 0 / 0.6026 GB, free: 1.973 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002938/0.1807, allocations: 136.9 kB / 0.6028 GB, free: 1.82 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 6.469e-05/0.1808, allocations: 96.91 kB / 0.6029 GB, free: 1.707 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.222e-05/0.1808, allocations: 3.938 kB / 0.6029 GB, free: 1.703 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.731e-05/0.1809, allocations: 19.94 kB / 0.6029 GB, free: 1.684 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.134e-05/0.181, allocations: 7.984 kB / 0.6029 GB, free: 1.676 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.405e-05/0.181, allocations: 8 kB / 0.6029 GB, free: 1.668 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0001663/0.1812, allocations: 188.4 kB / 0.6031 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of sort global known variables: time 1.8e-07/0.1812, allocations: 0 / 0.6031 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.0002277/0.1814, allocations: 27.84 kB / 0.6031 GB, free: 1.457 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.0002337/0.1816, allocations: 130.4 kB / 0.6032 GB, free: 1.328 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.0003532/0.182, allocations: 63.95 kB / 0.6033 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.495e-06/0.182, allocations: 0 / 0.6033 GB, free: 1.266 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001217/0.1821, allocations: 39.91 kB / 0.6033 GB, free: 1.227 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.1824, allocations: 48.09 kB / 0.6034 GB, free: 1.184 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005332/0.1829, allocations: 306.1 kB / 0.6037 GB, free: 0.8477 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003403/0.1833, allocations: 0.7238 MB / 0.6044 GB, free: 100 kB / 0.4981 GB Notification: Performance of simCode: alias equations: time 6.936e-05/0.1834, allocations: 24.41 kB / 0.6044 GB, free: 76 kB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.661e-05/0.1834, allocations: 15.44 kB / 0.6044 GB, free: 60 kB / 0.4981 GB Notification: Performance of SimCode: time 2.71e-07/0.1834, allocations: 0 / 0.6044 GB, free: 60 kB / 0.4981 GB Notification: Performance of Templates: time 0.2473/0.4307, allocations: 1.583 MB / 0.606 GB, free: 40.14 MB / 0.4981 GB make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile Environment - environmentSimulation: make -j1 -f BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter.makefile clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -c -o BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter.o BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter.c clang -Os -fPIC -falign-functions -mfpmath=sse -fno-dollars-in-identifiers -I"/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/c" -I. -DOPENMODELICA_XML_FROM_FILE_AT_RUNTIME -DOMC_MODEL_PREFIX=BuildSysPro_BuildSysPro_IBPSA_Utilities_IO_Files_Examples_JSONWriter -DOMC_NUM_MIXED_SYSTEMS=0 -DOMC_NUM_LINEAR_SYSTEMS=0 -DOMC_NUM_NONLINEAR_SYSTEMS=0 -DOMC_NDELAY_EXPRESSIONS=0 -DOMC_NVAR_STRING=0 -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:7: ./BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter_includes.h:4:11: fatal error: 'jsonWriterFree.c' file not found #include ^~~~~~~~~~~~~~~~~~ 1 error generated. make: *** [: BuildSysPro_BuildSysPro.IBPSA.Utilities.IO.Files.Examples.JSONWriter_functions.o] Error 1