Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_8_Buildings.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo", uses=false) Using package Buildings with version 8.1.4 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter") translateModel(Buildings.Utilities.IO.Files.Examples.JSONWriter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Buildings_8_Buildings.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.001662/0.001662, allocations: 96.14 kB / 15.87 MB, free: 16 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.001686/0.001686, allocations: 195 kB / 16.79 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.717/1.717, allocations: 205.1 MB / 222.6 MB, free: 4.996 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 8.1.4-maint.8.1.x/package.mo): time 2.019/2.019, allocations: 292.3 MB / 0.5491 GB, free: 13.7 MB / 462.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 64.12 kB / 0.6715 GB, free: 26.44 MB / 0.5294 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3191/0.3207, allocations: 114.5 MB / 0.7833 GB, free: 14.05 MB / 0.6075 GB Notification: Performance of NFInst.instantiate(Buildings.Utilities.IO.Files.Examples.JSONWriter): time 0.003385/0.3242, allocations: 1.702 MB / 0.785 GB, free: 12.32 MB / 0.6075 GB Notification: Performance of NFInst.instExpressions: time 0.0009464/0.3251, allocations: 0.5855 MB / 0.7856 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.384e-05/0.3252, allocations: 4 kB / 0.7856 GB, free: 11.73 MB / 0.6075 GB Notification: Performance of NFTyping.typeComponents: time 0.0002144/0.3255, allocations: 15.86 kB / 0.7856 GB, free: 11.71 MB / 0.6075 GB Notification: Performance of NFTyping.typeBindings: time 0.0002519/0.3257, allocations: 63.73 kB / 0.7856 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of NFTyping.typeClassSections: time 0.0001519/0.3259, allocations: 51.94 kB / 0.7857 GB, free: 11.6 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.0001826/0.3261, allocations: 123.6 kB / 0.7858 GB, free: 11.48 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0001792/0.3263, allocations: 53.44 kB / 0.7859 GB, free: 11.42 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001178/0.3264, allocations: 51.73 kB / 0.7859 GB, free: 11.37 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000114/0.3265, allocations: 63.69 kB / 0.786 GB, free: 11.31 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.3266, allocations: 4 kB / 0.786 GB, free: 11.3 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 6.645e-05/0.3266, allocations: 19.98 kB / 0.786 GB, free: 11.29 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.3268, allocations: 39.89 kB / 0.786 GB, free: 11.25 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 7.767e-05/0.3268, allocations: 59.55 kB / 0.7861 GB, free: 11.19 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.0001649/0.327, allocations: 108 kB / 0.7862 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.327, allocations: 0 / 0.7862 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.072e-06/0.327, allocations: 0 / 0.7862 GB, free: 11.08 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.841e-06/0.327, allocations: 0 / 0.7862 GB, free: 11.08 MB / 0.6075 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.0007562/0.3278, allocations: 470.6 kB / 0.7866 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.853e-05/0.3279, allocations: 8.031 kB / 0.7866 GB, free: 10.57 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.912e-05/0.3279, allocations: 20.75 kB / 0.7867 GB, free: 10.55 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002735/0.3282, allocations: 224.9 kB / 0.7869 GB, free: 10.29 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.3282, allocations: 8.312 kB / 0.7869 GB, free: 10.28 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.3283, allocations: 8.375 kB / 0.7869 GB, free: 10.27 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003036/0.3286, allocations: 109.9 kB / 0.787 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.975e-06/0.3286, allocations: 0 / 0.787 GB, free: 10.16 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.604e-05/0.3286, allocations: 8 kB / 0.787 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.069e-06/0.3286, allocations: 0 / 0.787 GB, free: 10.15 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002292/0.3289, allocations: 59.94 kB / 0.7871 GB, free: 10.09 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006187/0.3295, allocations: 392.4 kB / 0.7874 GB, free: 9.66 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0001479/0.3297, allocations: 38.55 kB / 0.7875 GB, free: 9.613 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000111/0.3298, allocations: 40.83 kB / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 1.637e-05/0.3298, allocations: 0 / 0.7875 GB, free: 9.57 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002989/0.3301, allocations: 93.03 kB / 0.7876 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=3): time 1.012e-06/0.3301, allocations: 0 / 0.7876 GB, free: 9.461 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3): time 0.0004905/0.3306, allocations: 133.5 kB / 0.7877 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3307, allocations: 77.11 kB / 0.7878 GB, free: 9.23 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002684/0.331, allocations: 253 kB / 0.788 GB, free: 8.969 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.331, allocations: 25.7 kB / 0.7881 GB, free: 8.938 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 9.047e-05/0.3311, allocations: 132 kB / 0.7882 GB, free: 8.805 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 2.459e-05/0.3311, allocations: 11.89 kB / 0.7882 GB, free: 8.793 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 3.692e-05/0.3312, allocations: 13.66 kB / 0.7882 GB, free: 8.773 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001432/0.3313, allocations: 338.8 kB / 0.7885 GB, free: 8.434 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001152/0.3314, allocations: 23.97 kB / 0.7886 GB, free: 8.41 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001192/0.3316, allocations: 47.41 kB / 0.7886 GB, free: 8.352 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002164/0.3318, allocations: 70.56 kB / 0.7887 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.797e-06/0.3318, allocations: 0 / 0.7887 GB, free: 8.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0002872/0.3321, allocations: 105.3 kB / 0.7888 GB, free: 8.164 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.761e-05/0.3321, allocations: 12.09 kB / 0.7888 GB, free: 8.152 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.394e-06/0.3321, allocations: 3.984 kB / 0.7888 GB, free: 8.148 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.539e-05/0.3321, allocations: 3.938 kB / 0.7888 GB, free: 8.145 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.3323, allocations: 11.98 kB / 0.7888 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.387e-06/0.3323, allocations: 4 kB / 0.7888 GB, free: 8.129 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.109e-05/0.3324, allocations: 11.89 kB / 0.7888 GB, free: 8.117 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.3324, allocations: 4 kB / 0.7888 GB, free: 8.113 MB / 0.6075 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001163/0.3325, allocations: 125.8 kB / 0.7889 GB, free: 7.98 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.795e-05/0.3326, allocations: 19.81 kB / 0.789 GB, free: 7.961 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.844e-05/0.3326, allocations: 17.25 kB / 0.789 GB, free: 7.945 MB / 0.6075 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.207e-06/0.3326, allocations: 3.938 kB / 0.789 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.698e-06/0.3326, allocations: 0 / 0.789 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.568e-06/0.3326, allocations: 3.984 kB / 0.789 GB, free: 7.938 MB / 0.6075 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001833/0.3328, allocations: 217.5 kB / 0.7892 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.3328, allocations: 0 / 0.7892 GB, free: 7.676 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.133e-05/0.3329, allocations: 11.98 kB / 0.7892 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.613e-06/0.3329, allocations: 0 / 0.7892 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.285e-06/0.3329, allocations: 0 / 0.7892 GB, free: 7.664 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.186e-06/0.3329, allocations: 7.938 kB / 0.7892 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.333, allocations: 0 / 0.7892 GB, free: 7.656 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002924/0.3332, allocations: 124.8 kB / 0.7893 GB, free: 7.516 MB / 0.6075 GB Notification: Performance of postOpt removeConstants (simulation): time 5.597e-05/0.3333, allocations: 92.91 kB / 0.7894 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.3e-05/0.3333, allocations: 0 / 0.7894 GB, free: 7.406 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.696e-05/0.3334, allocations: 19.92 kB / 0.7894 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.909e-05/0.3335, allocations: 0 / 0.7894 GB, free: 7.387 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.542e-05/0.3335, allocations: 11.92 kB / 0.7895 GB, free: 7.375 MB / 0.6075 GB Notification: Performance of sorting global known variables: time 0.0001817/0.3337, allocations: 188.5 kB / 0.7896 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of sort global known variables: time 2.21e-07/0.3337, allocations: 0 / 0.7896 GB, free: 7.195 MB / 0.6075 GB Notification: Performance of remove unused functions: time 0.0002191/0.3339, allocations: 23.91 kB / 0.7897 GB, free: 7.172 MB / 0.6075 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 (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.0003309/0.3343, allocations: 125.7 kB / 0.7898 GB, free: 7.047 MB / 0.6075 GB Notification: Performance of simCode: created initialization part: time 0.0002897/0.3346, allocations: 59.88 kB / 0.7898 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of simCode: created event and clocks part: time 2.345e-06/0.3346, allocations: 0 / 0.7898 GB, free: 6.988 MB / 0.6075 GB Notification: Performance of simCode: created simulation system equations: time 0.0001163/0.3347, allocations: 28.16 kB / 0.7899 GB, free: 6.961 MB / 0.6075 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003209/0.335, allocations: 47.95 kB / 0.7899 GB, free: 6.918 MB / 0.6075 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006151/0.3357, allocations: 355.6 kB / 0.7902 GB, free: 6.539 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002968/0.336, allocations: 0.7197 MB / 0.7909 GB, free: 5.793 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.484e-05/0.336, allocations: 15.44 kB / 0.791 GB, free: 5.777 MB / 0.6075 GB Notification: Performance of SimCode: time 2.31e-07/0.336, allocations: 4 kB / 0.791 GB, free: 5.773 MB / 0.6075 GB Notification: Performance of Templates: time 0.004628/0.3407, allocations: 2.108 MB / 0.793 GB, free: 3.68 MB / 0.6075 GB make -j1 -f Buildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriter.makefile make -j1 -f Buildings_8_Buildings.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/Buildings 8.1.4-maint.8.1.x/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/Buildings 8.1.4-maint.8.1.x/Resources/C-Sources" -DMEASURETIME_PROFILEBLOCKS -DUSE_LOGGER -c -o OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.cpp clang: error: no such file or directory: 'NOTFOUND' make: *** [: OMCppBuildings_8_Buildings.Utilities.IO.Files.Examples.JSONWriterCalcHelperMain.o] Error 1