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.008196/0.008196, allocations: 100.5 kB / 15.87 MB, free: 5.867 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.001358/0.001358, allocations: 192.7 kB / 16.79 MB, free: 5.809 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.98/1.98, allocations: 222.9 MB / 240.5 MB, free: 4.566 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.003695/0.003695, allocations: 282.8 kB / 290.9 MB, free: 2.184 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.817/1.817, allocations: 169.2 MB / 0.4984 GB, free: 14.17 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00328/0.00328, allocations: 93.02 kB / 0.5951 GB, free: 28.3 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3984/0.4017, allocations: 86.99 MB / 0.6801 GB, free: 1.176 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Utilities.IO.Files.Examples.JSONWriter): time 0.009923/0.4118, allocations: 1.682 MB / 0.6817 GB, free: 15.49 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.001985/0.4138, allocations: 0.5408 MB / 0.6823 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001673/0.414, allocations: 4 kB / 0.6823 GB, free: 14.95 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003784/0.4144, allocations: 23.84 kB / 0.6823 GB, free: 14.92 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005233/0.415, allocations: 51.75 kB / 0.6823 GB, free: 14.87 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003597/0.4154, allocations: 65.39 kB / 0.6824 GB, free: 14.81 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004408/0.4159, allocations: 127.5 kB / 0.6825 GB, free: 14.68 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003865/0.4163, allocations: 48.11 kB / 0.6826 GB, free: 14.64 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003136/0.4166, allocations: 52.59 kB / 0.6826 GB, free: 14.59 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002848/0.4169, allocations: 63.69 kB / 0.6827 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.603e-05/0.417, allocations: 4 kB / 0.6827 GB, free: 14.52 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001171/0.4171, allocations: 20.7 kB / 0.6827 GB, free: 14.5 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001752/0.4173, allocations: 40.52 kB / 0.6827 GB, free: 14.46 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000164/0.4175, allocations: 59.55 kB / 0.6828 GB, free: 14.4 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002991/0.4178, allocations: 101.3 kB / 0.6829 GB, free: 14.3 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.068e-05/0.4178, allocations: 0 / 0.6829 GB, free: 14.3 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.4179, allocations: 0 / 0.6829 GB, free: 14.3 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.4179, allocations: 0 / 0.6829 GB, free: 14.3 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.001599/0.4195, allocations: 479.1 kB / 0.6833 GB, free: 13.79 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.208e-05/0.4196, allocations: 12.03 kB / 0.6834 GB, free: 13.78 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.977e-05/0.4197, allocations: 16.75 kB / 0.6834 GB, free: 13.76 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007429/0.4205, allocations: 237.4 kB / 0.6836 GB, free: 13.49 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.165e-05/0.4205, allocations: 8.375 kB / 0.6836 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.253e-05/0.4205, allocations: 4.375 kB / 0.6836 GB, free: 13.48 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005582/0.4211, allocations: 109.9 kB / 0.6837 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.4211, allocations: 0 / 0.6837 GB, free: 13.37 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.4212, allocations: 12 kB / 0.6837 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.799e-06/0.4212, allocations: 0 / 0.6837 GB, free: 13.36 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004307/0.4217, allocations: 67.92 kB / 0.6838 GB, free: 13.29 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001296/0.423, allocations: 380.5 kB / 0.6842 GB, free: 12.87 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002621/0.4233, allocations: 42.61 kB / 0.6842 GB, free: 12.82 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.4235, allocations: 24.84 kB / 0.6842 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.221e-05/0.4235, allocations: 0 / 0.6842 GB, free: 12.79 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006365/0.4242, allocations: 105 kB / 0.6843 GB, free: 12.67 MB / 494.1 MB Notification: Performance of pre-optimization done (n=3): time 2.134e-06/0.4242, allocations: 0 / 0.6843 GB, free: 12.67 MB / 494.1 MB Notification: Performance of matching and sorting (n=3): time 0.0008084/0.425, allocations: 121.4 kB / 0.6844 GB, free: 12.54 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001295/0.4252, allocations: 77.11 kB / 0.6845 GB, free: 12.45 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005677/0.4258, allocations: 257 kB / 0.6848 GB, free: 12.19 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 3.622e-05/0.4258, allocations: 29.7 kB / 0.6848 GB, free: 12.16 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001819/0.426, allocations: 128 kB / 0.6849 GB, free: 12.03 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.787e-05/0.4261, allocations: 7.906 kB / 0.6849 GB, free: 12.02 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.071e-05/0.4262, allocations: 21.7 kB / 0.6849 GB, free: 11.99 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002725/0.4264, allocations: 326.8 kB / 0.6852 GB, free: 11.66 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001728/0.4266, allocations: 23.91 kB / 0.6853 GB, free: 11.64 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002085/0.4269, allocations: 55.34 kB / 0.6853 GB, free: 11.57 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003711/0.4272, allocations: 62.53 kB / 0.6854 GB, free: 11.5 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.877e-06/0.4273, allocations: 0 / 0.6854 GB, free: 11.5 MB / 494.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0005137/0.4278, allocations: 113.4 kB / 0.6855 GB, free: 11.39 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.849e-05/0.4279, allocations: 5.875 kB / 0.6855 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.4279, allocations: 0 / 0.6855 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.238e-05/0.4279, allocations: 7.875 kB / 0.6855 GB, free: 11.38 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000202/0.4281, allocations: 11.98 kB / 0.6855 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.892e-05/0.4282, allocations: 4 kB / 0.6855 GB, free: 11.36 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001478/0.4283, allocations: 16.02 kB / 0.6855 GB, free: 11.34 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.326e-05/0.4284, allocations: 4 kB / 0.6855 GB, free: 11.34 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.0002342/0.4286, allocations: 130.5 kB / 0.6857 GB, free: 11.2 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.534e-05/0.4287, allocations: 19.72 kB / 0.6857 GB, free: 11.18 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.465e-05/0.4288, allocations: 17.23 kB / 0.6857 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.4288, allocations: 3.938 kB / 0.6857 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.143e-05/0.4288, allocations: 0 / 0.6857 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.693e-06/0.4289, allocations: 0 / 0.6857 GB, free: 11.16 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004093/0.4293, allocations: 217.6 kB / 0.6859 GB, free: 10.9 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.4293, allocations: 4 kB / 0.6859 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001407/0.4295, allocations: 15.98 kB / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.618e-06/0.4295, allocations: 0 / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.563e-05/0.4295, allocations: 0 / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.777e-06/0.4295, allocations: 3.938 kB / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.4295, allocations: 0 / 0.6859 GB, free: 10.88 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005586/0.4301, allocations: 129.1 kB / 0.6861 GB, free: 10.73 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001133/0.4302, allocations: 88.92 kB / 0.6861 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.317e-05/0.4303, allocations: 0 / 0.6861 GB, free: 10.62 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000148/0.4305, allocations: 15.92 kB / 0.6862 GB, free: 10.61 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.959e-05/0.4306, allocations: 7.984 kB / 0.6862 GB, free: 10.6 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.282e-05/0.4307, allocations: 12 kB / 0.6862 GB, free: 10.59 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.000373/0.431, allocations: 184.5 kB / 0.6863 GB, free: 10.41 MB / 494.1 MB Notification: Performance of sort global known variables: time 8.62e-07/0.4311, allocations: 0 / 0.6863 GB, free: 10.41 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.0004058/0.4315, allocations: 28 kB / 0.6864 GB, free: 10.38 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.0004649/0.432, allocations: 120 kB / 0.6865 GB, free: 10.26 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000472/0.4324, allocations: 63.88 kB / 0.6865 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 5.41e-06/0.4325, allocations: 0 / 0.6865 GB, free: 10.2 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001774/0.4327, allocations: 23.97 kB / 0.6866 GB, free: 10.18 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005344/0.4332, allocations: 46.45 kB / 0.6866 GB, free: 10.13 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001141/0.4344, allocations: 351.7 kB / 0.6869 GB, free: 9.754 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007081/0.4351, allocations: 0.7238 MB / 0.6877 GB, free: 9.004 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.415e-05/0.4352, allocations: 19.38 kB / 0.6877 GB, free: 8.984 MB / 494.1 MB Notification: Performance of SimCode: time 6.12e-07/0.4352, allocations: 0 / 0.6877 GB, free: 8.984 MB / 494.1 MB Notification: Performance of Templates: time 0.00831/0.4435, allocations: 2.108 MB / 0.6897 GB, free: 6.895 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