Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter") translateModel(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.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.0008471/0.0008473, allocations: 99.34 kB / 16.02 MB, free: 76 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.0009998/0.0009997, allocations: 184.2 kB / 16.92 MB, free: 6.895 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 223.3 MB / 241 MB, free: 5.324 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001724/0.001724, allocations: 282.8 kB / 292.3 MB, free: 1.859 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9494/0.9494, allocations: 169.5 MB / 0.501 GB, free: 14.07 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004213/0.0004214, allocations: 11.44 kB / 0.5993 GB, free: 28.12 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1871/0.1875, allocations: 88.55 MB / 0.6858 GB, free: 15.05 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.001976/0.1895, allocations: 1.345 MB / 0.6871 GB, free: 13.7 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008018/0.1904, allocations: 0.5322 MB / 0.6876 GB, free: 13.16 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.045e-05/0.1904, allocations: 7.938 kB / 0.6876 GB, free: 13.15 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001751/0.1906, allocations: 16.42 kB / 0.6876 GB, free: 13.14 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002327/0.1909, allocations: 56.84 kB / 0.6877 GB, free: 13.08 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001369/0.191, allocations: 63.86 kB / 0.6877 GB, free: 13.02 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001723/0.1912, allocations: 129 kB / 0.6879 GB, free: 12.89 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.1914, allocations: 54.16 kB / 0.6879 GB, free: 12.84 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001061/0.1915, allocations: 43.78 kB / 0.688 GB, free: 12.8 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.978e-05/0.1916, allocations: 47.77 kB / 0.688 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 1.934e-05/0.1916, allocations: 0 / 0.688 GB, free: 12.75 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.358e-05/0.1917, allocations: 23.92 kB / 0.688 GB, free: 12.73 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 8.376e-05/0.1918, allocations: 39.83 kB / 0.6881 GB, free: 12.69 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 7.336e-05/0.1919, allocations: 73.33 kB / 0.6881 GB, free: 12.61 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001412/0.192, allocations: 104.2 kB / 0.6882 GB, free: 12.51 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.192, allocations: 0 / 0.6882 GB, free: 12.51 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.192, allocations: 0.625 kB / 0.6882 GB, free: 12.51 MB / 494.1 MB Notification: Performance of Transformations before backend: time 5.11e-06/0.192, allocations: 4.531 kB / 0.6882 GB, free: 12.51 MB / 494.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.0005665/0.1926, allocations: 449 kB / 0.6887 GB, free: 12.02 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.763e-05/0.1927, allocations: 12.72 kB / 0.6887 GB, free: 12.01 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.02e-05/0.1927, allocations: 20.66 kB / 0.6887 GB, free: 11.99 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002347/0.193, allocations: 235.8 kB / 0.6889 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.11e-05/0.193, allocations: 4.375 kB / 0.6889 GB, free: 11.72 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.427e-05/0.193, allocations: 4.375 kB / 0.6889 GB, free: 11.71 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002762/0.1933, allocations: 120.1 kB / 0.689 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.014e-06/0.1933, allocations: 0 / 0.689 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.952e-05/0.1933, allocations: 4 kB / 0.6891 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.529e-06/0.1933, allocations: 0 / 0.6891 GB, free: 11.59 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002488/0.1936, allocations: 86.38 kB / 0.6891 GB, free: 11.51 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005637/0.1942, allocations: 392.3 kB / 0.6895 GB, free: 11.08 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001382/0.1943, allocations: 47.41 kB / 0.6896 GB, free: 11.02 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001137/0.1944, allocations: 36.89 kB / 0.6896 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.412e-05/0.1945, allocations: 0 / 0.6896 GB, free: 10.98 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002621/0.1947, allocations: 113.1 kB / 0.6897 GB, free: 10.86 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 1.322e-06/0.1947, allocations: 3.938 kB / 0.6897 GB, free: 10.85 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0004489/0.1952, allocations: 145.3 kB / 0.6898 GB, free: 10.7 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.708e-05/0.1953, allocations: 81.09 kB / 0.6899 GB, free: 10.61 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002398/0.1955, allocations: 253 kB / 0.6902 GB, free: 10.36 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 1.888e-05/0.1955, allocations: 25.7 kB / 0.6902 GB, free: 10.32 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.609e-05/0.1956, allocations: 136 kB / 0.6903 GB, free: 10.19 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.592e-05/0.1956, allocations: 3.906 kB / 0.6903 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.565e-05/0.1957, allocations: 13.72 kB / 0.6903 GB, free: 10.16 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.1958, allocations: 326.8 kB / 0.6906 GB, free: 9.836 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1959, allocations: 31.97 kB / 0.6907 GB, free: 9.805 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001212/0.1961, allocations: 55.41 kB / 0.6907 GB, free: 9.738 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002288/0.1963, allocations: 90.48 kB / 0.6908 GB, free: 9.641 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.994e-06/0.1963, allocations: 0 / 0.6908 GB, free: 9.641 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002777/0.1966, allocations: 117.4 kB / 0.6909 GB, free: 9.52 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1966, allocations: 7.984 kB / 0.6909 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1966, allocations: 0 / 0.6909 GB, free: 9.512 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.552e-05/0.1966, allocations: 7.938 kB / 0.6909 GB, free: 9.504 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001081/0.1968, allocations: 16.08 kB / 0.691 GB, free: 9.488 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.794e-06/0.1968, allocations: 4 kB / 0.691 GB, free: 9.484 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.929e-05/0.1969, allocations: 23.83 kB / 0.691 GB, free: 9.461 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.095e-05/0.1969, allocations: 4 kB / 0.691 GB, free: 9.457 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001058/0.197, allocations: 130.4 kB / 0.6911 GB, free: 9.32 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.464e-05/0.197, allocations: 15.81 kB / 0.6911 GB, free: 9.305 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.65e-05/0.1971, allocations: 17.25 kB / 0.6911 GB, free: 9.285 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.196e-06/0.1971, allocations: 11.88 kB / 0.6911 GB, free: 9.273 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.1971, allocations: 3.984 kB / 0.6912 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.1971, allocations: 0 / 0.6912 GB, free: 9.27 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001613/0.1973, allocations: 213.6 kB / 0.6914 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.162e-06/0.1973, allocations: 0 / 0.6914 GB, free: 9.012 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.663e-05/0.1974, allocations: 15.98 kB / 0.6914 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.542e-06/0.1974, allocations: 0 / 0.6914 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.073e-06/0.1974, allocations: 0 / 0.6914 GB, free: 8.996 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.1974, allocations: 3.938 kB / 0.6914 GB, free: 8.992 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1974, allocations: 4 kB / 0.6914 GB, free: 8.988 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002931/0.1977, allocations: 136.9 kB / 0.6915 GB, free: 8.836 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.687e-05/0.1978, allocations: 96.84 kB / 0.6916 GB, free: 8.723 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.055e-05/0.1978, allocations: 4 kB / 0.6916 GB, free: 8.719 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.771e-05/0.1979, allocations: 19.92 kB / 0.6916 GB, free: 8.699 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.007e-05/0.1979, allocations: 7.984 kB / 0.6916 GB, free: 8.691 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.037e-05/0.198, allocations: 4 kB / 0.6916 GB, free: 8.688 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0001611/0.1981, allocations: 188.5 kB / 0.6918 GB, free: 8.5 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1981, allocations: 0 / 0.6918 GB, free: 8.5 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0002078/0.1984, allocations: 31.84 kB / 0.6918 GB, free: 8.469 MB / 494.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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002211/0.1986, allocations: 119.2 kB / 0.692 GB, free: 8.352 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0003009/0.1989, allocations: 75.94 kB / 0.692 GB, free: 8.277 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.1989, allocations: 0 / 0.692 GB, free: 8.277 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001214/0.199, allocations: 44.09 kB / 0.6921 GB, free: 8.234 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002845/0.1993, allocations: 36.39 kB / 0.6921 GB, free: 8.199 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005263/0.1999, allocations: 363.8 kB / 0.6925 GB, free: 7.812 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002691/0.2001, allocations: 0.716 MB / 0.6932 GB, free: 7.07 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.928e-05/0.2002, allocations: 15.44 kB / 0.6932 GB, free: 7.055 MB / 494.1 MB Notification: Performance of SimCode: time 3.2e-07/0.2002, allocations: 4 kB / 0.6932 GB, free: 7.051 MB / 494.1 MB Notification: Performance of Templates: time 0.00429/0.2045, allocations: 2.095 MB / 0.6952 GB, free: 4.977 MB / 494.1 MB make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f BuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriter.makefile clang++ -std=c++14 NOTFOUND -Winvalid-pch -O2 -g -DNDEBUG -fPIC -std=c++11 -DBOOST_ALL_DYN_LINK -DUSE_DGESV -DUSE_LOGGER -DOMC_BUILD -DUSE_THREAD -DSUNDIALS_MAJOR_VERSION=5 -DSUNDIALS_MINOR_VERSION=4 -DPMC_USE_SUNDIALS -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/bin/../include/omc/cpp/" -I. "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -I"." -I"." -I"/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/include/omc/sundials" "-I/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildingSystems_BuildingSystems.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1